msm-pcm-routing-v2.c 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define LSM_FUNCTION_TEXT "LSM Function"
  113. static const char * const lsm_port_text[] = {
  114. "None",
  115. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  116. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  117. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  118. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  119. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  120. };
  121. struct msm_pcm_route_bdai_pp_params {
  122. u16 port_id; /* AFE port ID */
  123. unsigned long pp_params_config;
  124. bool mute_on;
  125. int latency;
  126. };
  127. static struct msm_pcm_route_bdai_pp_params
  128. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  129. {HDMI_RX, 0, 0, 0},
  130. {DISPLAY_PORT_RX, 0, 0, 0},
  131. };
  132. /*
  133. * The be_dai_name_table is passed to HAL so that it can specify the
  134. * BE ID for the BE it wants to enable based on the name. Thus there
  135. * is a matching table and structure in HAL that need to be updated
  136. * if any changes to these are made.
  137. */
  138. struct msm_pcm_route_bdai_name {
  139. unsigned int be_id;
  140. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  141. };
  142. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  143. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  144. int fe_id);
  145. static void msm_routing_load_topology(size_t data_size, void *data);
  146. static void msm_routing_unload_topology(uint32_t topology_id);
  147. static int msm_routing_get_bit_width(unsigned int format)
  148. {
  149. int bit_width;
  150. switch (format) {
  151. case SNDRV_PCM_FORMAT_S32_LE:
  152. bit_width = 32;
  153. break;
  154. case SNDRV_PCM_FORMAT_S24_LE:
  155. case SNDRV_PCM_FORMAT_S24_3LE:
  156. bit_width = 24;
  157. break;
  158. case SNDRV_PCM_FORMAT_S16_LE:
  159. default:
  160. bit_width = 16;
  161. }
  162. return bit_width;
  163. }
  164. static bool msm_is_resample_needed(int input_sr, int output_sr)
  165. {
  166. bool rc = false;
  167. if (input_sr != output_sr)
  168. rc = true;
  169. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  170. (rc ? "oh yes" : "not really"),
  171. input_sr, output_sr);
  172. return rc;
  173. }
  174. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  175. int channels)
  176. {
  177. int rc = 0;
  178. switch (topology) {
  179. case SRS_TRUMEDIA_TOPOLOGY_ID:
  180. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  181. msm_dts_srs_tm_init(port_id, copp_idx);
  182. break;
  183. case DS2_ADM_COPP_TOPOLOGY_ID:
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  185. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  186. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  187. is_custom_stereo_on);
  188. if (rc < 0)
  189. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  190. __func__, topology, port_id,
  191. is_custom_stereo_on, rc);
  192. break;
  193. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  194. if (is_ds2_on) {
  195. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  196. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  197. is_custom_stereo_on);
  198. if (rc < 0)
  199. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  200. __func__, topology, port_id, rc);
  201. } else {
  202. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  203. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  204. is_custom_stereo_on);
  205. if (rc < 0)
  206. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  207. __func__, topology, port_id, rc);
  208. }
  209. break;
  210. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  211. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  212. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  213. if (rc < 0)
  214. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  215. __func__, topology, port_id, copp_idx, rc);
  216. break;
  217. default:
  218. /* custom topology specific feature param handlers */
  219. break;
  220. }
  221. }
  222. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  223. {
  224. switch (topology) {
  225. case SRS_TRUMEDIA_TOPOLOGY_ID:
  226. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  227. msm_dts_srs_tm_deinit(port_id);
  228. break;
  229. case DS2_ADM_COPP_TOPOLOGY_ID:
  230. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  231. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  232. msm_ds2_dap_deinit(port_id);
  233. break;
  234. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  235. if (is_ds2_on) {
  236. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  237. msm_ds2_dap_deinit(port_id);
  238. } else {
  239. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_dolby_dap_deinit(port_id);
  241. }
  242. break;
  243. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  244. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  245. msm_qti_pp_asphere_deinit(port_id);
  246. break;
  247. default:
  248. /* custom topology specific feature deinit handlers */
  249. break;
  250. }
  251. }
  252. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  253. int path_type, int perf_mode)
  254. {
  255. int itr = 0, rc = 0;
  256. if ((path_type == ADM_PATH_PLAYBACK) &&
  257. (perf_mode == LEGACY_PCM_MODE) &&
  258. is_custom_stereo_on) {
  259. for (itr = 0; itr < payload.num_copps; itr++) {
  260. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  261. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  262. continue;
  263. }
  264. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  265. payload.port_id[itr],
  266. payload.copp_idx[itr],
  267. payload.session_id,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE);
  272. if (rc < 0)
  273. pr_err("%s: err setting custom stereo\n",
  274. __func__);
  275. }
  276. }
  277. }
  278. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  279. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  280. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  281. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  282. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  283. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  284. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  285. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  286. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  287. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  288. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  289. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_AFE_PCM_RX},
  291. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_TX},
  293. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AUXPCM_RX},
  295. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_TX},
  297. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_VOICE_PLAYBACK_TX},
  299. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE2_PLAYBACK_TX},
  301. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_INCALL_RECORD_RX},
  303. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_TX},
  305. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  306. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  307. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  308. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  309. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  310. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  311. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  312. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  313. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  314. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  315. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  316. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  317. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  318. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  319. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  320. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  321. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  322. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  323. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  327. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_QUAT_MI2S_RX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_TX},
  331. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_SEC_MI2S_RX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_TX},
  335. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_PRI_MI2S_RX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_TX},
  339. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_TERT_MI2S_RX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_TX},
  343. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_AUDIO_I2S_RX},
  345. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_SEC_AUXPCM_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_TX},
  349. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_PRI_SPDIF_RX},
  351. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_SEC_MI2S_RX_SD1},
  353. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_QUIN_MI2S_RX},
  355. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_TX},
  357. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_SENARY_MI2S_TX},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_RX_0},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_TX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_RX_1},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_TX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_RX_2},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_TX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_RX_3},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_TX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_RX_4},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_TX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_RX_5},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_TX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_RX_6},
  385. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_TX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_RX_7},
  389. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_TX_7},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_RX_0},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_TX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_RX_1},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_TX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_RX_2},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_TX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_RX_3},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_TX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_RX_4},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_TX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_RX_5},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_TX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_RX_6},
  417. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_TX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_RX_7},
  421. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_TX_7},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_RX_0},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_TX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_RX_1},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_TX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_RX_2},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_TX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_RX_3},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_TX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_RX_4},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_TX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_RX_5},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_TX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_RX_6},
  449. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_TX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_RX_7},
  453. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_TX_7},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_RX_0},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_TX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_RX_1},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_TX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_RX_2},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_TX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_RX_3},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_TX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_RX_4},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_TX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_RX_5},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_TX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_RX_6},
  481. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_TX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_RX_7},
  485. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_TX_7},
  487. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_RX_0},
  489. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_TX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_RX_1},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_TX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_RX_2},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_TX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_RX_3},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_TX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_RX_4},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_TX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_RX_5},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_TX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_RX_6},
  513. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_TX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_RX_7},
  517. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_TX_7},
  519. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_SEN_TDM_RX_0},
  521. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_TX_0},
  523. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_RX_1},
  525. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_TX_1},
  527. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_RX_2},
  529. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_TX_2},
  531. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_RX_3},
  533. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_TX_3},
  535. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_RX_4},
  537. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_TX_4},
  539. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_RX_5},
  541. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_TX_5},
  543. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_RX_6},
  545. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_TX_6},
  547. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_RX_7},
  549. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_TX_7},
  551. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT_BT_A2DP_RX},
  553. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_USB_AUDIO_RX},
  555. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_TX},
  557. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_DISPLAY_PORT},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT1},
  561. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_TERT_AUXPCM_RX},
  563. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_TX},
  565. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_QUAT_AUXPCM_RX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_TX},
  569. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUIN_AUXPCM_RX},
  571. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_TX},
  573. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_INT0_MI2S_RX},
  575. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_TX},
  577. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT1_MI2S_RX},
  579. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_TX},
  581. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT2_MI2S_RX},
  583. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_TX},
  585. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT3_MI2S_RX},
  587. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_TX},
  589. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT4_MI2S_RX},
  591. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_TX},
  593. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT5_MI2S_RX},
  595. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_TX},
  597. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT6_MI2S_RX},
  599. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_TX},
  601. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_SEN_AUXPCM_RX},
  603. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_TX},
  605. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SENARY_MI2S_RX},
  607. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_WSA_CDC_DMA_RX_0},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_TX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_RX_1},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_TX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_2},
  617. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_VA_CDC_DMA_TX_0},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_1},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_2},
  623. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_RX_CDC_DMA_RX_0},
  625. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_TX_CDC_DMA_TX_0},
  627. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_RX_CDC_DMA_RX_1},
  629. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_TX_CDC_DMA_TX_1},
  631. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_RX_CDC_DMA_RX_2},
  633. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_TX_CDC_DMA_TX_2},
  635. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_RX_CDC_DMA_RX_3},
  637. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_TX_CDC_DMA_TX_3},
  639. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_RX_CDC_DMA_RX_4},
  641. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_TX_CDC_DMA_TX_4},
  643. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_RX_CDC_DMA_RX_5},
  645. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_TX_CDC_DMA_TX_5},
  647. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_RX_CDC_DMA_RX_6},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_7},
  651. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_PRI_SPDIF_TX},
  653. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_SEC_SPDIF_RX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_TX},
  657. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  658. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  659. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  660. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_PRI_META_MI2S_RX},
  662. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_SEC_META_MI2S_RX},
  664. };
  665. /* Track ASM playback & capture sessions of DAI
  666. * Track LSM listen sessions
  667. */
  668. static struct msm_pcm_routing_fdai_data
  669. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  670. /* MULTIMEDIA1 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  673. /* MULTIMEDIA2 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  676. /* MULTIMEDIA3 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA4 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA5 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA6 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA7*/
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA8 */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA9 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* MULTIMEDIA10 */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* MULTIMEDIA11 */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* MULTIMEDIA12 */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* MULTIMEDIA13 */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* MULTIMEDIA14 */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* MULTIMEDIA15 */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* MULTIMEDIA16 */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* MULTIMEDIA17 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* MULTIMEDIA18 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* MULTIMEDIA19 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* MULTIMEDIA20 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* MULTIMEDIA21 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* MULTIMEDIA22 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* MULTIMEDIA26 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* MULTIMEDIA27 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* MULTIMEDIA28 */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* MULTIMEDIA29 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* MULTIMEDIA30 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. /* VOIP */
  752. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  753. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  754. /* AFE_RX */
  755. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  756. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  757. /* AFE_TX */
  758. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  759. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  760. /* VOICE_STUB */
  761. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  762. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  763. /* DTMF_RX */
  764. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  765. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  766. /* QCHAT */
  767. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  768. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  769. /* VOLTE_STUB */
  770. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  771. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  772. /* LSM1 */
  773. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  774. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  775. /* LSM2 */
  776. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  777. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  778. /* LSM3 */
  779. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  780. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  781. /* LSM4 */
  782. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  783. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  784. /* LSM5 */
  785. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  786. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  787. /* LSM6 */
  788. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  789. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  790. /* LSM7 */
  791. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  792. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  793. /* LSM8 */
  794. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  795. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  796. /* VOICE2_STUB */
  797. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  798. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  799. /* VOICEMMODE1 */
  800. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  801. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  802. /* VOICEMMODE2 */
  803. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  804. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  805. };
  806. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  807. [MSM_BACKEND_DAI_MAX];
  808. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  809. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  810. static struct msm_pcm_stream_app_type_cfg
  811. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  812. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  813. /* The caller of this should acquire routing lock */
  814. void msm_pcm_routing_get_bedai_info(int be_idx,
  815. struct msm_pcm_routing_bdai_data *be_dai)
  816. {
  817. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  818. memcpy(be_dai, &msm_bedais[be_idx],
  819. sizeof(struct msm_pcm_routing_bdai_data));
  820. }
  821. /* The caller of this should acquire routing lock */
  822. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  823. struct msm_pcm_routing_fdai_data *fe_dai)
  824. {
  825. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  826. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  827. sizeof(struct msm_pcm_routing_fdai_data));
  828. }
  829. void msm_pcm_routing_acquire_lock(void)
  830. {
  831. mutex_lock(&routing_lock);
  832. }
  833. void msm_pcm_routing_release_lock(void)
  834. {
  835. mutex_unlock(&routing_lock);
  836. }
  837. static int msm_pcm_routing_get_app_type_idx(int app_type)
  838. {
  839. int idx;
  840. pr_debug("%s: app_type: %d\n", __func__, app_type);
  841. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  842. if (app_type_cfg[idx].app_type == app_type)
  843. return idx;
  844. }
  845. pr_info("%s: App type not available, fallback to default\n", __func__);
  846. return 0;
  847. }
  848. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  849. {
  850. int idx;
  851. pr_debug("%s: app_type: %d\n", __func__, app_type);
  852. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  853. if (lsm_app_type_cfg[idx].app_type == app_type)
  854. return idx;
  855. }
  856. pr_debug("%s: App type not available, fallback to default\n", __func__);
  857. return 0;
  858. }
  859. static int get_port_id(int port_id)
  860. {
  861. int ret = port_id;
  862. if (port_id == AFE_LOOPBACK_TX) {
  863. /*
  864. * Return afe_loopback_tx_port_id if set. Else return
  865. * msm_ec_ref_port_id to maintain backward compatibility.
  866. */
  867. if (afe_loopback_tx_port_id != -1)
  868. ret = afe_loopback_tx_port_id;
  869. else
  870. ret = msm_ec_ref_port_id;
  871. }
  872. return ret;
  873. }
  874. static bool is_mm_lsm_fe_id(int fe_id)
  875. {
  876. bool rc = true;
  877. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  878. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  879. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  880. rc = false;
  881. }
  882. return rc;
  883. }
  884. /*
  885. * msm_pcm_routing_send_chmix_cfg:
  886. * send the channel mixer command to mix the input channels
  887. * into output channels.
  888. *
  889. * @fe_id: front end id
  890. * @ip_channel_cnt: input channel count
  891. * @op_channel_cnt: output channel count
  892. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  893. * @session_type: indicates session is of type TX or RX
  894. * @stream_type: indicates either Audio or Listen stream type
  895. */
  896. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  897. int op_channel_cnt, int *ch_wght_coeff,
  898. int session_type, int stream_type)
  899. {
  900. int rc = 0, idx = 0;
  901. int be_index = 0, port_id;
  902. unsigned int session_id = 0;
  903. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  904. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  905. stream_type);
  906. if (!is_mm_lsm_fe_id(fe_id)) {
  907. /* bad ID assigned in machine driver */
  908. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  909. return -EINVAL;
  910. }
  911. if (ch_wght_coeff == NULL) {
  912. pr_err("%s: Null channel weightage coefficients passed\n",
  913. __func__);
  914. return -EINVAL;
  915. }
  916. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  917. port_id = msm_bedais[be_index].port_id;
  918. if (!msm_bedais[be_index].active ||
  919. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  920. continue;
  921. session_id = fe_dai_map[fe_id][session_type].strm_id;
  922. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  923. unsigned long copp =
  924. session_copp_map[fe_id][session_type][be_index];
  925. if (!test_bit(idx, &copp))
  926. continue;
  927. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  928. session_id, ip_channel_cnt,
  929. op_channel_cnt, ch_wght_coeff,
  930. session_type, stream_type);
  931. if (rc < 0)
  932. pr_err("%s: err setting channel mix config\n",
  933. __func__);
  934. }
  935. }
  936. return 0;
  937. }
  938. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  939. /**
  940. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  941. * setting before use case start.
  942. *
  943. * @fe_id: frontend idx
  944. * @type: stream direction type
  945. * @params: parameters of channel mixer setting
  946. *
  947. * Return 0 for success
  948. */
  949. int msm_pcm_routing_set_channel_mixer_cfg(
  950. int fe_id, int type,
  951. struct msm_pcm_channel_mixer *params)
  952. {
  953. int i, j = 0;
  954. channel_mixer_v2[fe_id][type].enable = params->enable;
  955. channel_mixer_v2[fe_id][type].rule = params->rule;
  956. channel_mixer_v2[fe_id][type].input_channel =
  957. params->input_channel;
  958. channel_mixer_v2[fe_id][type].output_channel =
  959. params->output_channel;
  960. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  961. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  962. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  963. params->in_ch_map[i];
  964. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  965. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  966. params->out_ch_map[i];
  967. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  968. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  969. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  970. params->channel_weight[i][j];
  971. channel_mixer_v2[fe_id][type].override_in_ch_map =
  972. params->override_in_ch_map;
  973. channel_mixer_v2[fe_id][type].override_out_ch_map =
  974. params->override_out_ch_map;
  975. return 0;
  976. }
  977. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  978. int msm_pcm_routing_reg_stream_app_type_cfg(
  979. int fedai_id, int session_type, int be_id,
  980. struct msm_pcm_stream_app_type_cfg *cfg_data)
  981. {
  982. int ret = 0;
  983. if (cfg_data == NULL) {
  984. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  985. ret = -EINVAL;
  986. goto done;
  987. }
  988. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  989. __func__, fedai_id, session_type, be_id,
  990. cfg_data->app_type, cfg_data->acdb_dev_id,
  991. cfg_data->sample_rate);
  992. if (!is_mm_lsm_fe_id(fedai_id)) {
  993. pr_err("%s: Invalid machine driver ID %d\n",
  994. __func__, fedai_id);
  995. ret = -EINVAL;
  996. goto done;
  997. }
  998. if (session_type != SESSION_TYPE_RX &&
  999. session_type != SESSION_TYPE_TX) {
  1000. pr_err("%s: Invalid session type %d\n",
  1001. __func__, session_type);
  1002. ret = -EINVAL;
  1003. goto done;
  1004. }
  1005. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1006. pr_err("%s: Received out of bounds be_id %d\n",
  1007. __func__, be_id);
  1008. ret = -EINVAL;
  1009. goto done;
  1010. }
  1011. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1012. /*
  1013. * Store the BE ID of the configuration information set as the latest so
  1014. * the get mixer control knows what to return.
  1015. */
  1016. last_be_id_configured[fedai_id][session_type] = be_id;
  1017. done:
  1018. return ret;
  1019. }
  1020. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1021. /**
  1022. * msm_pcm_routing_get_stream_app_type_cfg
  1023. *
  1024. * Receives fedai_id, session_type, be_id, and populates app_type,
  1025. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1026. * -EINVAL and does not alter passed values.
  1027. *
  1028. * fedai_id - Passed value, front end ID for which app type config is wanted
  1029. * session_type - Passed value, session type for which app type config
  1030. * is wanted
  1031. * be_id - Returned value, back end device id the app type config data is for
  1032. * cfg_data - Returned value, configuration data used by app type config
  1033. */
  1034. int msm_pcm_routing_get_stream_app_type_cfg(
  1035. int fedai_id, int session_type, int *bedai_id,
  1036. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1037. {
  1038. int be_id;
  1039. int ret = 0;
  1040. if (bedai_id == NULL) {
  1041. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1042. ret = -EINVAL;
  1043. goto done;
  1044. } else if (cfg_data == NULL) {
  1045. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1046. ret = -EINVAL;
  1047. goto done;
  1048. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1049. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1050. ret = -EINVAL;
  1051. goto done;
  1052. } else if (session_type != SESSION_TYPE_RX &&
  1053. session_type != SESSION_TYPE_TX) {
  1054. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. }
  1058. be_id = last_be_id_configured[fedai_id][session_type];
  1059. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1060. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. }
  1064. *bedai_id = be_id;
  1065. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1066. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1067. __func__, fedai_id, session_type, *bedai_id,
  1068. cfg_data->app_type, cfg_data->acdb_dev_id,
  1069. cfg_data->sample_rate);
  1070. done:
  1071. return ret;
  1072. }
  1073. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1074. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1075. int cal_index)
  1076. {
  1077. struct list_head *ptr, *next;
  1078. struct cal_block_data *cal_block = NULL;
  1079. pr_debug("%s\n", __func__);
  1080. list_for_each_safe(ptr, next,
  1081. &cal_data[cal_index]->cal_blocks) {
  1082. cal_block = list_entry(ptr,
  1083. struct cal_block_data, list);
  1084. if (cal_utils_is_cal_stale(cal_block))
  1085. continue;
  1086. if (((struct audio_cal_info_adm_top *)cal_block
  1087. ->cal_info)->path == path) {
  1088. return cal_block;
  1089. }
  1090. }
  1091. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1092. return NULL;
  1093. }
  1094. static struct cal_block_data *msm_routing_find_topology(int path,
  1095. int app_type,
  1096. int acdb_id,
  1097. int cal_index,
  1098. bool exact)
  1099. {
  1100. struct list_head *ptr, *next;
  1101. struct cal_block_data *cal_block = NULL;
  1102. struct audio_cal_info_adm_top *cal_info;
  1103. pr_debug("%s\n", __func__);
  1104. list_for_each_safe(ptr, next,
  1105. &cal_data[cal_index]->cal_blocks) {
  1106. cal_block = list_entry(ptr,
  1107. struct cal_block_data, list);
  1108. if (cal_utils_is_cal_stale(cal_block))
  1109. continue;
  1110. cal_info = (struct audio_cal_info_adm_top *)
  1111. cal_block->cal_info;
  1112. if ((cal_info->path == path) &&
  1113. (cal_info->app_type == app_type) &&
  1114. (cal_info->acdb_id == acdb_id)) {
  1115. return cal_block;
  1116. }
  1117. }
  1118. pr_debug("%s: Can't find topology for path %d, app %d, "
  1119. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1120. exact ? "fail" : "defaulting to search by path");
  1121. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1122. cal_index);
  1123. }
  1124. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1125. int acdb_dev_id, int idx,
  1126. bool exact)
  1127. {
  1128. int topology = -EINVAL;
  1129. struct cal_block_data *cal_block = NULL;
  1130. mutex_lock(&cal_data[idx]->lock);
  1131. cal_block = msm_routing_find_topology(session_type, app_type,
  1132. acdb_dev_id, idx, exact);
  1133. if (cal_block != NULL) {
  1134. topology = ((struct audio_cal_info_adm_top *)
  1135. cal_block->cal_info)->topology;
  1136. }
  1137. mutex_unlock(&cal_data[idx]->lock);
  1138. return topology;
  1139. }
  1140. /*
  1141. * Retrieving cal_block will mark cal_block as stale.
  1142. * Hence it cannot be reused or resent unless the flag
  1143. * is reset.
  1144. */
  1145. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1146. int be_id)
  1147. {
  1148. int topology = NULL_COPP_TOPOLOGY;
  1149. int app_type = 0, acdb_dev_id = 0;
  1150. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1151. __func__, fedai_id, session_type, be_id);
  1152. if (cal_data == NULL)
  1153. goto done;
  1154. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1155. acdb_dev_id =
  1156. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1157. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1158. topology = msm_routing_find_topology_on_index(session_type,
  1159. app_type,
  1160. acdb_dev_id,
  1161. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1162. true /*exact*/);
  1163. if (topology < 0) {
  1164. pr_debug("%s: Check for compatible topology\n", __func__);
  1165. topology = msm_routing_find_topology_on_index(session_type,
  1166. app_type,
  1167. acdb_dev_id,
  1168. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1169. false /*exact*/);
  1170. if (topology < 0)
  1171. topology = NULL_COPP_TOPOLOGY;
  1172. }
  1173. done:
  1174. pr_debug("%s: Using topology %d\n", __func__, topology);
  1175. return topology;
  1176. }
  1177. static uint8_t is_be_dai_extproc(int be_dai)
  1178. {
  1179. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1180. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1181. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1182. return 1;
  1183. else
  1184. return 0;
  1185. }
  1186. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1187. int path_type, int perf_mode,
  1188. uint32_t passthr_mode)
  1189. {
  1190. int i, port_type, j, num_copps = 0;
  1191. struct route_payload payload;
  1192. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1193. path_type == ADM_PATH_COMPRESSED_RX) ?
  1194. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1195. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1196. if (!is_be_dai_extproc(i) &&
  1197. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1198. (msm_bedais[i].active) &&
  1199. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1200. int port_id = get_port_id(msm_bedais[i].port_id);
  1201. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1202. unsigned long copp =
  1203. session_copp_map[fedai_id][sess_type][i];
  1204. if (test_bit(j, &copp)) {
  1205. payload.port_id[num_copps] = port_id;
  1206. payload.copp_idx[num_copps] = j;
  1207. payload.app_type[num_copps] =
  1208. fe_dai_app_type_cfg
  1209. [fedai_id][sess_type][i]
  1210. .app_type;
  1211. payload.acdb_dev_id[num_copps] =
  1212. fe_dai_app_type_cfg
  1213. [fedai_id][sess_type][i]
  1214. .acdb_dev_id;
  1215. payload.sample_rate[num_copps] =
  1216. fe_dai_app_type_cfg
  1217. [fedai_id][sess_type][i]
  1218. .sample_rate;
  1219. num_copps++;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. if (num_copps) {
  1225. payload.num_copps = num_copps;
  1226. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1227. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1228. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1229. }
  1230. }
  1231. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1232. int stream_type)
  1233. {
  1234. int i, session_type, path_type, port_type;
  1235. u32 mode = 0;
  1236. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1237. /* bad ID assigned in machine driver */
  1238. pr_err("%s: bad MM ID\n", __func__);
  1239. return;
  1240. }
  1241. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1242. session_type = SESSION_TYPE_RX;
  1243. path_type = ADM_PATH_PLAYBACK;
  1244. port_type = MSM_AFE_PORT_TYPE_RX;
  1245. } else {
  1246. session_type = SESSION_TYPE_TX;
  1247. path_type = ADM_PATH_LIVE_REC;
  1248. port_type = MSM_AFE_PORT_TYPE_TX;
  1249. }
  1250. mutex_lock(&routing_lock);
  1251. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1252. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1253. if (!is_be_dai_extproc(i) &&
  1254. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1255. (msm_bedais[i].active) &&
  1256. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1257. mode = afe_get_port_type(msm_bedais[i].port_id);
  1258. adm_connect_afe_port(mode, dspst_id,
  1259. msm_bedais[i].port_id);
  1260. break;
  1261. }
  1262. }
  1263. mutex_unlock(&routing_lock);
  1264. }
  1265. static bool route_check_fe_id_adm_support(int fe_id)
  1266. {
  1267. bool rc = true;
  1268. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1269. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1270. /* fe id is listen while port is set to afe */
  1271. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1272. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1273. __func__, fe_id, lsm_port_index);
  1274. rc = false;
  1275. }
  1276. }
  1277. return rc;
  1278. }
  1279. /*
  1280. * msm_pcm_routing_get_pp_ch_cnt:
  1281. * Read the processed channel count
  1282. *
  1283. * @fe_id: Front end ID
  1284. * @session_type: Inidicates RX or TX session type
  1285. */
  1286. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1287. {
  1288. struct msm_pcm_stream_app_type_cfg cfg_data;
  1289. int be_id = 0, app_type_idx = 0, app_type = 0;
  1290. int ret = -EINVAL;
  1291. memset(&cfg_data, 0, sizeof(cfg_data));
  1292. if (!is_mm_lsm_fe_id(fe_id)) {
  1293. pr_err("%s: bad MM ID\n", __func__);
  1294. return -EINVAL;
  1295. }
  1296. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1297. &be_id, &cfg_data);
  1298. if (ret) {
  1299. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1300. return ret;
  1301. }
  1302. app_type = cfg_data.app_type;
  1303. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1304. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1305. }
  1306. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1307. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1308. int dspst_id, int stream_type,
  1309. uint32_t passthr_mode)
  1310. {
  1311. int i, j, session_type, path_type, port_type, topology;
  1312. int num_copps = 0;
  1313. struct route_payload payload;
  1314. u32 channels, sample_rate;
  1315. u16 bit_width = 16, be_bit_width;
  1316. bool is_lsm;
  1317. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1318. __func__, fe_id, perf_mode, dspst_id,
  1319. stream_type, passthr_mode);
  1320. if (!is_mm_lsm_fe_id(fe_id)) {
  1321. /* bad ID assigned in machine driver */
  1322. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1323. return -EINVAL;
  1324. }
  1325. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1326. session_type = SESSION_TYPE_RX;
  1327. if (passthr_mode != LEGACY_PCM)
  1328. path_type = ADM_PATH_COMPRESSED_RX;
  1329. else
  1330. path_type = ADM_PATH_PLAYBACK;
  1331. port_type = MSM_AFE_PORT_TYPE_RX;
  1332. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1333. session_type = SESSION_TYPE_TX;
  1334. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1335. path_type = ADM_PATH_COMPRESSED_TX;
  1336. else
  1337. path_type = ADM_PATH_LIVE_REC;
  1338. port_type = MSM_AFE_PORT_TYPE_TX;
  1339. } else {
  1340. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1341. return -EINVAL;
  1342. }
  1343. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1344. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1345. mutex_lock(&routing_lock);
  1346. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1347. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1348. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1349. if (!route_check_fe_id_adm_support(fe_id)) {
  1350. /* ignore adm open if not supported for fe_id */
  1351. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1352. mutex_unlock(&routing_lock);
  1353. return 0;
  1354. }
  1355. payload.num_copps = 0; /* only RX needs to use payload */
  1356. /* re-enable EQ if active */
  1357. msm_qti_pp_send_eq_values(fe_id);
  1358. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1359. if (!is_be_dai_extproc(i) &&
  1360. (afe_get_port_type(msm_bedais[i].port_id) ==
  1361. port_type) &&
  1362. (msm_bedais[i].active) &&
  1363. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1364. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1365. int port_id = get_port_id(msm_bedais[i].port_id);
  1366. /*
  1367. * check if ADM needs to be configured with different
  1368. * channel mapping than backend
  1369. */
  1370. if (!msm_bedais[i].adm_override_ch)
  1371. channels = msm_bedais[i].channel;
  1372. else
  1373. channels = msm_bedais[i].adm_override_ch;
  1374. bit_width = msm_routing_get_bit_width(
  1375. msm_bedais[i].format);
  1376. app_type =
  1377. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1378. if (app_type && is_lsm) {
  1379. app_type_idx =
  1380. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1381. sample_rate =
  1382. fe_dai_app_type_cfg[fe_id][session_type][i]
  1383. .sample_rate;
  1384. bit_width =
  1385. lsm_app_type_cfg[app_type_idx].bit_width;
  1386. } else if (app_type) {
  1387. app_type_idx =
  1388. msm_pcm_routing_get_app_type_idx(
  1389. app_type);
  1390. sample_rate =
  1391. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1392. bit_width =
  1393. app_type_cfg[app_type_idx].bit_width;
  1394. } else {
  1395. sample_rate = msm_bedais[i].sample_rate;
  1396. }
  1397. acdb_dev_id =
  1398. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1399. topology = msm_routing_get_adm_topology(fe_id,
  1400. session_type,
  1401. i);
  1402. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1403. || (passthr_mode ==
  1404. COMPRESSED_PASSTHROUGH_GEN)
  1405. || (passthr_mode ==
  1406. COMPRESSED_PASSTHROUGH_IEC61937))
  1407. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1408. pr_debug("%s: Before adm open topology %d\n", __func__,
  1409. topology);
  1410. be_bit_width = msm_routing_get_bit_width(
  1411. msm_bedais[i].format);
  1412. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1413. == 384000 || msm_bedais[i].sample_rate ==
  1414. 352800) && be_bit_width == 32)
  1415. bit_width = msm_routing_get_bit_width(
  1416. SNDRV_PCM_FORMAT_S32_LE);
  1417. copp_idx =
  1418. adm_open(port_id, path_type, sample_rate,
  1419. channels, topology, perf_mode,
  1420. bit_width, app_type, acdb_dev_id,
  1421. session_type);
  1422. if ((copp_idx < 0) ||
  1423. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1424. pr_err("%s:adm open failed coppid:%d\n",
  1425. __func__, copp_idx);
  1426. mutex_unlock(&routing_lock);
  1427. return -EINVAL;
  1428. }
  1429. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1430. __func__, fe_id, session_type, i);
  1431. set_bit(copp_idx,
  1432. &session_copp_map[fe_id][session_type][i]);
  1433. if (msm_is_resample_needed(
  1434. sample_rate,
  1435. msm_bedais[i].sample_rate))
  1436. adm_copp_mfc_cfg(port_id, copp_idx,
  1437. msm_bedais[i].sample_rate);
  1438. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1439. unsigned long copp =
  1440. session_copp_map[fe_id][session_type][i];
  1441. if (test_bit(j, &copp)) {
  1442. payload.port_id[num_copps] = port_id;
  1443. payload.copp_idx[num_copps] = j;
  1444. payload.app_type[num_copps] =
  1445. fe_dai_app_type_cfg
  1446. [fe_id][session_type][i]
  1447. .app_type;
  1448. payload.acdb_dev_id[num_copps] =
  1449. fe_dai_app_type_cfg
  1450. [fe_id][session_type][i]
  1451. .acdb_dev_id;
  1452. payload.sample_rate[num_copps] =
  1453. fe_dai_app_type_cfg
  1454. [fe_id][session_type][i]
  1455. .sample_rate;
  1456. num_copps++;
  1457. }
  1458. }
  1459. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1460. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1461. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1462. msm_routing_send_device_pp_params(port_id,
  1463. copp_idx, fe_id);
  1464. }
  1465. }
  1466. if (num_copps) {
  1467. payload.num_copps = num_copps;
  1468. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1469. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1470. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1471. }
  1472. mutex_unlock(&routing_lock);
  1473. return 0;
  1474. }
  1475. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1476. {
  1477. u32 session_id;
  1478. switch (val) {
  1479. case MSM_FRONTEND_DAI_QCHAT:
  1480. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1481. break;
  1482. case MSM_FRONTEND_DAI_VOIP:
  1483. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1484. break;
  1485. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1486. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1487. break;
  1488. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1489. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1490. break;
  1491. default:
  1492. session_id = 0;
  1493. }
  1494. pr_debug("%s session_id 0x%x", __func__, session_id);
  1495. return session_id;
  1496. }
  1497. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1498. int dspst_id, int stream_type)
  1499. {
  1500. int copp_idx = 0;
  1501. int sess_type = 0;
  1502. int j = 0, be_id = 0;
  1503. int ret = 0;
  1504. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1505. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1506. return 0;
  1507. }
  1508. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1509. sess_type = SESSION_TYPE_RX;
  1510. else
  1511. sess_type = SESSION_TYPE_TX;
  1512. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1513. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1514. __func__, fe_id, sess_type);
  1515. return 0;
  1516. }
  1517. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1518. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1519. channel_mixer_v2[fe_id][sess_type].input_channel;
  1520. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1521. __func__, sess_type, fe_id,
  1522. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1523. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1524. msm_bedais[be_id].active);
  1525. if ((msm_bedais[be_id].active) &&
  1526. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1527. unsigned long copp =
  1528. session_copp_map[fe_id][sess_type][be_id];
  1529. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1530. if (test_bit(j, &copp)) {
  1531. copp_idx = j;
  1532. break;
  1533. }
  1534. }
  1535. ret = adm_programable_channel_mixer(
  1536. msm_bedais[be_id].port_id,
  1537. copp_idx, dspst_id, sess_type,
  1538. &channel_mixer_v2[fe_id][sess_type], 0);
  1539. }
  1540. return ret;
  1541. }
  1542. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1543. int dspst_id, int stream_type)
  1544. {
  1545. int copp_idx = 0;
  1546. int sess_type = 0;
  1547. int i = 0, j = 0, be_id;
  1548. int ret = 0;
  1549. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1550. dspst_id, stream_type);
  1551. if (ret) {
  1552. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1553. fe_id);
  1554. return ret;
  1555. }
  1556. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1557. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1558. return 0;
  1559. }
  1560. if (!(channel_mixer[fe_id].enable)) {
  1561. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1562. __func__, fe_id);
  1563. return 0;
  1564. }
  1565. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1566. sess_type = SESSION_TYPE_RX;
  1567. else
  1568. sess_type = SESSION_TYPE_TX;
  1569. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1570. ++i) {
  1571. be_id = channel_input[fe_id][i] - 1;
  1572. channel_mixer[fe_id].input_channels[i] =
  1573. msm_bedais[be_id].channel;
  1574. if ((msm_bedais[be_id].active) &&
  1575. test_bit(fe_id,
  1576. &msm_bedais[be_id].fe_sessions[0])) {
  1577. unsigned long copp =
  1578. session_copp_map[fe_id][sess_type][be_id];
  1579. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1580. if (test_bit(j, &copp)) {
  1581. copp_idx = j;
  1582. break;
  1583. }
  1584. }
  1585. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1586. __func__,
  1587. fe_id, be_id, msm_bedais[be_id].channel,
  1588. copp_idx);
  1589. ret = adm_programable_channel_mixer(
  1590. get_port_id(msm_bedais[be_id].port_id),
  1591. copp_idx, dspst_id, sess_type,
  1592. channel_mixer + fe_id, i);
  1593. }
  1594. }
  1595. return ret;
  1596. }
  1597. /**
  1598. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1599. * setting during runtime.
  1600. *
  1601. * @be_id: backend index
  1602. * @session_id: session index
  1603. * @session_type: session type
  1604. * @params: parameters for channel mixer
  1605. *
  1606. * Retuen: 0 for success, else error
  1607. */
  1608. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1609. int session_type,
  1610. struct msm_pcm_channel_mixer *params)
  1611. {
  1612. int rc = 0;
  1613. int port_id, copp_idx = 0;
  1614. be_id--;
  1615. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1616. pr_err("%s: invalid backend id %d\n", __func__,
  1617. be_id);
  1618. return -EINVAL;
  1619. }
  1620. port_id = msm_bedais[be_id].port_id;
  1621. copp_idx = adm_get_default_copp_idx(port_id);
  1622. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1623. __func__, port_id, copp_idx, session_id);
  1624. if ((params->input_channel < 0) ||
  1625. (params->input_channel > ADM_MAX_CHANNELS)) {
  1626. pr_err("%s: invalid input channel %d\n", __func__,
  1627. params->input_channel);
  1628. return -EINVAL;
  1629. }
  1630. if ((params->output_channel < 0) ||
  1631. (params->output_channel > ADM_MAX_CHANNELS)) {
  1632. pr_err("%s: invalid output channel %d\n", __func__,
  1633. params->output_channel);
  1634. return -EINVAL;
  1635. }
  1636. params->input_channels[0] = params->input_channel;
  1637. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1638. __func__, session_type,
  1639. params->override_in_ch_map,
  1640. params->override_out_ch_map,
  1641. msm_bedais[be_id].active);
  1642. rc = adm_programable_channel_mixer(port_id,
  1643. copp_idx,
  1644. session_id,
  1645. session_type,
  1646. params,
  1647. 0);
  1648. if (rc) {
  1649. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1650. rc = -EINVAL;
  1651. }
  1652. return rc;
  1653. }
  1654. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1655. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1656. int dspst_id, int stream_type)
  1657. {
  1658. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1659. struct route_payload payload;
  1660. u32 channels, sample_rate;
  1661. uint16_t bits_per_sample = 16, be_bit_width;
  1662. uint32_t passthr_mode = LEGACY_PCM;
  1663. int ret = 0;
  1664. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1665. /* bad ID assigned in machine driver */
  1666. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1667. return -EINVAL;
  1668. }
  1669. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1670. session_type = SESSION_TYPE_RX;
  1671. path_type = ADM_PATH_PLAYBACK;
  1672. port_type = MSM_AFE_PORT_TYPE_RX;
  1673. } else {
  1674. session_type = SESSION_TYPE_TX;
  1675. path_type = ADM_PATH_LIVE_REC;
  1676. port_type = MSM_AFE_PORT_TYPE_TX;
  1677. }
  1678. mutex_lock(&routing_lock);
  1679. payload.num_copps = 0; /* only RX needs to use payload */
  1680. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1681. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1682. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1683. /* re-enable EQ if active */
  1684. msm_qti_pp_send_eq_values(fedai_id);
  1685. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1686. if (!is_be_dai_extproc(i) &&
  1687. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1688. (msm_bedais[i].active) &&
  1689. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1690. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1691. int port_id = get_port_id(msm_bedais[i].port_id);
  1692. /*
  1693. * check if ADM needs to be configured with different
  1694. * channel mapping than backend
  1695. */
  1696. if (!msm_bedais[i].adm_override_ch)
  1697. channels = msm_bedais[i].channel;
  1698. else
  1699. channels = msm_bedais[i].adm_override_ch;
  1700. bits_per_sample = msm_routing_get_bit_width(
  1701. msm_bedais[i].format);
  1702. app_type =
  1703. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1704. if (app_type) {
  1705. app_type_idx =
  1706. msm_pcm_routing_get_app_type_idx(app_type);
  1707. sample_rate =
  1708. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1709. .sample_rate;
  1710. bits_per_sample =
  1711. app_type_cfg[app_type_idx].bit_width;
  1712. } else
  1713. sample_rate = msm_bedais[i].sample_rate;
  1714. acdb_dev_id =
  1715. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1716. .acdb_dev_id;
  1717. topology = msm_routing_get_adm_topology(fedai_id,
  1718. session_type,
  1719. i);
  1720. be_bit_width = msm_routing_get_bit_width(
  1721. msm_bedais[i].format);
  1722. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1723. 384000 ||msm_bedais[i].sample_rate == 352800)
  1724. && be_bit_width == 32)
  1725. bits_per_sample = msm_routing_get_bit_width(
  1726. SNDRV_PCM_FORMAT_S32_LE);
  1727. copp_idx = adm_open(port_id, path_type,
  1728. sample_rate, channels, topology,
  1729. perf_mode, bits_per_sample,
  1730. app_type, acdb_dev_id,
  1731. session_type);
  1732. if ((copp_idx < 0) ||
  1733. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1734. pr_err("%s: adm open failed copp_idx:%d\n",
  1735. __func__, copp_idx);
  1736. mutex_unlock(&routing_lock);
  1737. return -EINVAL;
  1738. }
  1739. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1740. __func__, fedai_id, session_type, i);
  1741. set_bit(copp_idx,
  1742. &session_copp_map[fedai_id][session_type][i]);
  1743. if (msm_is_resample_needed(
  1744. sample_rate,
  1745. msm_bedais[i].sample_rate))
  1746. adm_copp_mfc_cfg(port_id, copp_idx,
  1747. msm_bedais[i].sample_rate);
  1748. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1749. unsigned long copp =
  1750. session_copp_map[fedai_id][session_type][i];
  1751. if (test_bit(j, &copp)) {
  1752. payload.port_id[num_copps] = port_id;
  1753. payload.copp_idx[num_copps] = j;
  1754. payload.app_type[num_copps] =
  1755. fe_dai_app_type_cfg
  1756. [fedai_id][session_type]
  1757. [i].app_type;
  1758. payload.acdb_dev_id[num_copps] =
  1759. fe_dai_app_type_cfg
  1760. [fedai_id][session_type]
  1761. [i].acdb_dev_id;
  1762. payload.sample_rate[num_copps] =
  1763. fe_dai_app_type_cfg
  1764. [fedai_id][session_type]
  1765. [i].sample_rate;
  1766. num_copps++;
  1767. }
  1768. }
  1769. if (perf_mode == LEGACY_PCM_MODE)
  1770. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1771. topology, channels);
  1772. }
  1773. }
  1774. if (num_copps) {
  1775. payload.num_copps = num_copps;
  1776. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1777. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1778. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1779. }
  1780. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1781. dspst_id, stream_type);
  1782. mutex_unlock(&routing_lock);
  1783. return ret;
  1784. }
  1785. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1786. int dspst_id, int stream_type,
  1787. struct msm_pcm_routing_evt event_info)
  1788. {
  1789. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1790. stream_type)) {
  1791. pr_err("%s: failed to reg phy stream\n", __func__);
  1792. return -EINVAL;
  1793. }
  1794. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1795. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1796. else
  1797. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1798. return 0;
  1799. }
  1800. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1801. {
  1802. int i, port_type, session_type, path_type, topology, port_id;
  1803. struct msm_pcm_routing_fdai_data *fdai;
  1804. if (!is_mm_lsm_fe_id(fedai_id)) {
  1805. /* bad ID assigned in machine driver */
  1806. pr_err("%s: bad MM ID\n", __func__);
  1807. return;
  1808. }
  1809. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1810. port_type = MSM_AFE_PORT_TYPE_RX;
  1811. session_type = SESSION_TYPE_RX;
  1812. path_type = ADM_PATH_PLAYBACK;
  1813. } else {
  1814. port_type = MSM_AFE_PORT_TYPE_TX;
  1815. session_type = SESSION_TYPE_TX;
  1816. path_type = ADM_PATH_LIVE_REC;
  1817. }
  1818. mutex_lock(&routing_lock);
  1819. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1820. if (!is_be_dai_extproc(i) &&
  1821. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1822. (msm_bedais[i].active) &&
  1823. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1824. int idx;
  1825. unsigned long copp =
  1826. session_copp_map[fedai_id][session_type][i];
  1827. fdai = &fe_dai_map[fedai_id][session_type];
  1828. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1829. if (test_bit(idx, &copp))
  1830. break;
  1831. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1832. pr_debug("%s: copp idx is invalid, exiting\n",
  1833. __func__);
  1834. continue;
  1835. }
  1836. port_id = get_port_id(msm_bedais[i].port_id);
  1837. topology = adm_get_topology_for_port_copp_idx(
  1838. port_id, idx);
  1839. msm_routing_unload_topology(topology);
  1840. adm_close(port_id, fdai->perf_mode, idx);
  1841. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1842. __func__, copp, fedai_id, session_type, i);
  1843. clear_bit(idx,
  1844. &session_copp_map[fedai_id][session_type][i]);
  1845. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1846. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1847. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1848. (fdai->passthr_mode == LEGACY_PCM))
  1849. msm_pcm_routing_deinit_pp(port_id, topology);
  1850. }
  1851. }
  1852. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1853. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1854. mutex_unlock(&routing_lock);
  1855. }
  1856. /* Check if FE/BE route is set */
  1857. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1858. {
  1859. bool rc = false;
  1860. if (!is_mm_lsm_fe_id(fe_id)) {
  1861. /* recheck FE ID in the mixer control defined in this file */
  1862. pr_err("%s: bad MM ID\n", __func__);
  1863. return rc;
  1864. }
  1865. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1866. rc = true;
  1867. return rc;
  1868. }
  1869. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1870. {
  1871. int session_type, path_type, topology;
  1872. u32 channels, sample_rate;
  1873. uint16_t bits_per_sample = 16, be_bit_width;
  1874. struct msm_pcm_routing_fdai_data *fdai;
  1875. uint32_t passthr_mode;
  1876. bool is_lsm;
  1877. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1878. if (!is_mm_lsm_fe_id(val)) {
  1879. /* recheck FE ID in the mixer control defined in this file */
  1880. pr_err("%s: bad MM ID\n", __func__);
  1881. return;
  1882. }
  1883. if (!route_check_fe_id_adm_support(val)) {
  1884. /* ignore adm open if not supported for fe_id */
  1885. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1886. if (set)
  1887. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1888. else
  1889. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1890. return;
  1891. }
  1892. session_type =
  1893. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1894. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1895. fdai = &fe_dai_map[val][session_type];
  1896. passthr_mode = fdai->passthr_mode;
  1897. if (session_type == SESSION_TYPE_RX) {
  1898. if (passthr_mode != LEGACY_PCM)
  1899. path_type = ADM_PATH_COMPRESSED_RX;
  1900. else
  1901. path_type = ADM_PATH_PLAYBACK;
  1902. } else {
  1903. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1904. path_type = ADM_PATH_COMPRESSED_TX;
  1905. else
  1906. path_type = ADM_PATH_LIVE_REC;
  1907. }
  1908. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1909. (val <= MSM_FRONTEND_DAI_LSM8);
  1910. mutex_lock(&routing_lock);
  1911. if (set) {
  1912. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1913. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1914. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1915. voc_start_playback(set, msm_bedais[reg].port_id);
  1916. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1917. if (msm_bedais[reg].active && fdai->strm_id !=
  1918. INVALID_SESSION) {
  1919. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1920. int port_id = get_port_id(msm_bedais[reg].port_id);
  1921. /*
  1922. * check if ADM needs to be configured with different
  1923. * channel mapping than backend
  1924. */
  1925. if (!msm_bedais[reg].adm_override_ch)
  1926. channels = msm_bedais[reg].channel;
  1927. else
  1928. channels = msm_bedais[reg].adm_override_ch;
  1929. if (session_type == SESSION_TYPE_TX &&
  1930. fdai->be_srate &&
  1931. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1932. pr_debug("%s: flush strm %d diff BE rates\n",
  1933. __func__, fdai->strm_id);
  1934. if (fdai->event_info.event_func)
  1935. fdai->event_info.event_func(
  1936. MSM_PCM_RT_EVT_BUF_RECFG,
  1937. fdai->event_info.priv_data);
  1938. fdai->be_srate = 0; /* might not need it */
  1939. }
  1940. bits_per_sample = msm_routing_get_bit_width(
  1941. msm_bedais[reg].format);
  1942. app_type =
  1943. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1944. if (app_type && is_lsm) {
  1945. app_type_idx =
  1946. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1947. sample_rate =
  1948. fe_dai_app_type_cfg[val][session_type][reg]
  1949. .sample_rate;
  1950. bits_per_sample =
  1951. lsm_app_type_cfg[app_type_idx].bit_width;
  1952. } else if (app_type) {
  1953. app_type_idx =
  1954. msm_pcm_routing_get_app_type_idx(app_type);
  1955. sample_rate =
  1956. fe_dai_app_type_cfg[val][session_type][reg]
  1957. .sample_rate;
  1958. bits_per_sample =
  1959. app_type_cfg[app_type_idx].bit_width;
  1960. } else
  1961. sample_rate = msm_bedais[reg].sample_rate;
  1962. topology = msm_routing_get_adm_topology(val,
  1963. session_type,
  1964. reg);
  1965. acdb_dev_id =
  1966. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1967. be_bit_width = msm_routing_get_bit_width(
  1968. msm_bedais[reg].format);
  1969. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1970. == 384000 ||msm_bedais[reg].sample_rate ==
  1971. 352800) && be_bit_width == 32)
  1972. bits_per_sample = msm_routing_get_bit_width(
  1973. SNDRV_PCM_FORMAT_S32_LE);
  1974. copp_idx = adm_open(port_id, path_type,
  1975. sample_rate, channels, topology,
  1976. fdai->perf_mode, bits_per_sample,
  1977. app_type, acdb_dev_id,
  1978. session_type);
  1979. if ((copp_idx < 0) ||
  1980. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1981. pr_err("%s: adm open failed\n", __func__);
  1982. mutex_unlock(&routing_lock);
  1983. return;
  1984. }
  1985. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1986. __func__, val, session_type, reg);
  1987. set_bit(copp_idx,
  1988. &session_copp_map[val][session_type][reg]);
  1989. if (msm_is_resample_needed(
  1990. sample_rate,
  1991. msm_bedais[reg].sample_rate))
  1992. adm_copp_mfc_cfg(port_id, copp_idx,
  1993. msm_bedais[reg].sample_rate);
  1994. if (session_type == SESSION_TYPE_RX &&
  1995. fdai->event_info.event_func)
  1996. fdai->event_info.event_func(
  1997. MSM_PCM_RT_EVT_DEVSWITCH,
  1998. fdai->event_info.priv_data);
  1999. msm_pcm_routing_build_matrix(val, session_type,
  2000. path_type,
  2001. fdai->perf_mode,
  2002. passthr_mode);
  2003. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2004. (passthr_mode == LEGACY_PCM))
  2005. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2006. topology, channels);
  2007. }
  2008. } else {
  2009. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2010. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2011. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2012. voc_start_playback(set, msm_bedais[reg].port_id);
  2013. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2014. if (msm_bedais[reg].active && fdai->strm_id !=
  2015. INVALID_SESSION) {
  2016. int idx;
  2017. int port_id;
  2018. unsigned long copp =
  2019. session_copp_map[val][session_type][reg];
  2020. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2021. if (test_bit(idx, &copp))
  2022. break;
  2023. if (idx >= MAX_COPPS_PER_PORT) {
  2024. pr_debug("%s: copp idx is invalid, exiting\n",
  2025. __func__);
  2026. mutex_unlock(&routing_lock);
  2027. return;
  2028. }
  2029. port_id = get_port_id(msm_bedais[reg].port_id);
  2030. topology = adm_get_topology_for_port_copp_idx(port_id,
  2031. idx);
  2032. msm_routing_unload_topology(topology);
  2033. adm_close(port_id, fdai->perf_mode, idx);
  2034. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2035. __func__, copp, val, session_type, reg,
  2036. topology);
  2037. clear_bit(idx,
  2038. &session_copp_map[val][session_type][reg]);
  2039. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2040. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2041. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2042. (passthr_mode == LEGACY_PCM))
  2043. msm_pcm_routing_deinit_pp(port_id, topology);
  2044. msm_pcm_routing_build_matrix(val, session_type,
  2045. path_type,
  2046. fdai->perf_mode,
  2047. passthr_mode);
  2048. }
  2049. }
  2050. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2051. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2052. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2053. mutex_unlock(&routing_lock);
  2054. }
  2055. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2056. struct snd_ctl_elem_value *ucontrol)
  2057. {
  2058. struct soc_mixer_control *mc =
  2059. (struct soc_mixer_control *)kcontrol->private_value;
  2060. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2061. ucontrol->value.integer.value[0] = 1;
  2062. else
  2063. ucontrol->value.integer.value[0] = 0;
  2064. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2065. ucontrol->value.integer.value[0]);
  2066. return 0;
  2067. }
  2068. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2069. struct snd_ctl_elem_value *ucontrol)
  2070. {
  2071. struct snd_soc_dapm_widget *widget =
  2072. snd_soc_dapm_kcontrol_widget(kcontrol);
  2073. struct soc_mixer_control *mc =
  2074. (struct soc_mixer_control *)kcontrol->private_value;
  2075. struct snd_soc_dapm_update *update = NULL;
  2076. if (ucontrol->value.integer.value[0] &&
  2077. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2078. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2079. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2080. update);
  2081. } else if (!ucontrol->value.integer.value[0] &&
  2082. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2083. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2084. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2085. update);
  2086. }
  2087. return 1;
  2088. }
  2089. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2090. struct snd_ctl_elem_value *ucontrol)
  2091. {
  2092. struct soc_mixer_control *mc =
  2093. (struct soc_mixer_control *)kcontrol->private_value;
  2094. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2095. ucontrol->value.integer.value[0] = 1;
  2096. else
  2097. ucontrol->value.integer.value[0] = 0;
  2098. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2099. ucontrol->value.integer.value[0]);
  2100. return 0;
  2101. }
  2102. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2103. struct snd_ctl_elem_value *ucontrol)
  2104. {
  2105. struct snd_soc_dapm_widget *widget =
  2106. snd_soc_dapm_kcontrol_widget(kcontrol);
  2107. struct soc_mixer_control *mc =
  2108. (struct soc_mixer_control *)kcontrol->private_value;
  2109. struct snd_soc_dapm_update *update = NULL;
  2110. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2111. ucontrol->value.integer.value[0]);
  2112. if (ucontrol->value.integer.value[0]) {
  2113. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2114. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2115. snd_soc_dapm_mixer_update_power(widget->dapm,
  2116. kcontrol, 1, update);
  2117. } else if (!ucontrol->value.integer.value[0]) {
  2118. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2119. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2120. snd_soc_dapm_mixer_update_power(widget->dapm,
  2121. kcontrol, 0, update);
  2122. }
  2123. return 1;
  2124. }
  2125. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2126. {
  2127. u32 session_id = 0;
  2128. u16 path_type;
  2129. struct media_format_info voc_be_media_format;
  2130. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2131. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2132. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2133. __func__, val, session_id);
  2134. mutex_lock(&routing_lock);
  2135. if (set)
  2136. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2137. else
  2138. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2139. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2140. afe_get_port_type(msm_bedais[reg].port_id) ==
  2141. MSM_AFE_PORT_TYPE_RX) {
  2142. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2143. __func__, set, msm_bedais[reg].port_id);
  2144. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2145. }
  2146. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2147. MSM_AFE_PORT_TYPE_RX)
  2148. path_type = RX_PATH;
  2149. else
  2150. path_type = TX_PATH;
  2151. if (set) {
  2152. if (msm_bedais[reg].active) {
  2153. voc_set_route_flag(session_id, path_type, 1);
  2154. memset(&voc_be_media_format, 0,
  2155. sizeof(struct media_format_info));
  2156. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2157. voc_be_media_format.num_channels =
  2158. msm_bedais[reg].channel;
  2159. voc_be_media_format.sample_rate =
  2160. msm_bedais[reg].sample_rate;
  2161. voc_be_media_format.bits_per_sample =
  2162. msm_bedais[reg].format;
  2163. /* Defaulting this to 1 for voice call usecases */
  2164. voc_be_media_format.channel_mapping[0] = 1;
  2165. voc_set_device_config(session_id, path_type,
  2166. &voc_be_media_format);
  2167. if (voc_get_route_flag(session_id, TX_PATH) &&
  2168. voc_get_route_flag(session_id, RX_PATH))
  2169. voc_enable_device(session_id);
  2170. } else {
  2171. pr_debug("%s BE is not active\n", __func__);
  2172. }
  2173. } else {
  2174. voc_set_route_flag(session_id, path_type, 0);
  2175. voc_disable_device(session_id);
  2176. }
  2177. mutex_unlock(&routing_lock);
  2178. }
  2179. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2180. struct snd_ctl_elem_value *ucontrol)
  2181. {
  2182. struct soc_mixer_control *mc =
  2183. (struct soc_mixer_control *)kcontrol->private_value;
  2184. mutex_lock(&routing_lock);
  2185. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2186. ucontrol->value.integer.value[0] = 1;
  2187. else
  2188. ucontrol->value.integer.value[0] = 0;
  2189. mutex_unlock(&routing_lock);
  2190. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2191. ucontrol->value.integer.value[0]);
  2192. return 0;
  2193. }
  2194. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2195. struct snd_ctl_elem_value *ucontrol)
  2196. {
  2197. struct snd_soc_dapm_widget *widget =
  2198. snd_soc_dapm_kcontrol_widget(kcontrol);
  2199. struct soc_mixer_control *mc =
  2200. (struct soc_mixer_control *)kcontrol->private_value;
  2201. struct snd_soc_dapm_update *update = NULL;
  2202. if (ucontrol->value.integer.value[0]) {
  2203. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2204. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2205. update);
  2206. } else {
  2207. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2208. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2209. update);
  2210. }
  2211. return 1;
  2212. }
  2213. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2214. struct snd_ctl_elem_value *ucontrol)
  2215. {
  2216. struct soc_mixer_control *mc =
  2217. (struct soc_mixer_control *)kcontrol->private_value;
  2218. mutex_lock(&routing_lock);
  2219. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2220. ucontrol->value.integer.value[0] = 1;
  2221. else
  2222. ucontrol->value.integer.value[0] = 0;
  2223. mutex_unlock(&routing_lock);
  2224. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2225. ucontrol->value.integer.value[0]);
  2226. return 0;
  2227. }
  2228. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2229. struct snd_ctl_elem_value *ucontrol)
  2230. {
  2231. struct snd_soc_dapm_widget *widget =
  2232. snd_soc_dapm_kcontrol_widget(kcontrol);
  2233. struct soc_mixer_control *mc =
  2234. (struct soc_mixer_control *)kcontrol->private_value;
  2235. struct snd_soc_dapm_update *update = NULL;
  2236. if (ucontrol->value.integer.value[0]) {
  2237. mutex_lock(&routing_lock);
  2238. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2239. mutex_unlock(&routing_lock);
  2240. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2241. update);
  2242. } else {
  2243. mutex_lock(&routing_lock);
  2244. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2245. mutex_unlock(&routing_lock);
  2246. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2247. update);
  2248. }
  2249. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2250. ucontrol->value.integer.value[0]);
  2251. return 1;
  2252. }
  2253. /*
  2254. * Return the mapping between port ID and backend ID to enable the AFE callback
  2255. * to determine the acdb_dev_id from the port id
  2256. */
  2257. int msm_pcm_get_be_id_from_port_id(int port_id)
  2258. {
  2259. int i;
  2260. int be_id = -EINVAL;
  2261. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2262. if (msm_bedais[i].port_id == port_id) {
  2263. be_id = i;
  2264. break;
  2265. }
  2266. }
  2267. return be_id;
  2268. }
  2269. /*
  2270. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2271. * correct AFE calibration information by comparing the header information.
  2272. */
  2273. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2274. {
  2275. int acdb_id = -EINVAL;
  2276. int i = 0;
  2277. int session;
  2278. int port_type = afe_get_port_type(port_id);
  2279. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2280. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2281. __func__, port_id, be_id, port_type);
  2282. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2283. session = SESSION_TYPE_TX;
  2284. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2285. session = SESSION_TYPE_RX;
  2286. } else {
  2287. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2288. acdb_id = -EINVAL;
  2289. goto exit;
  2290. }
  2291. if (be_id < 0) {
  2292. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2293. goto exit;
  2294. }
  2295. mutex_lock(&routing_lock);
  2296. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2297. MSM_FRONTEND_DAI_MAX);
  2298. if (i < MSM_FRONTEND_DAI_MAX)
  2299. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2300. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2301. __func__, i, session, be_id, acdb_id);
  2302. mutex_unlock(&routing_lock);
  2303. exit:
  2304. return acdb_id;
  2305. }
  2306. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2307. struct snd_ctl_elem_value *ucontrol)
  2308. {
  2309. ucontrol->value.integer.value[0] = fm_switch_enable;
  2310. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2311. ucontrol->value.integer.value[0]);
  2312. return 0;
  2313. }
  2314. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2315. struct snd_ctl_elem_value *ucontrol)
  2316. {
  2317. struct snd_soc_dapm_widget *widget =
  2318. snd_soc_dapm_kcontrol_widget(kcontrol);
  2319. struct snd_soc_dapm_update *update = NULL;
  2320. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2321. ucontrol->value.integer.value[0]);
  2322. if (ucontrol->value.integer.value[0])
  2323. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2324. update);
  2325. else
  2326. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2327. update);
  2328. fm_switch_enable = ucontrol->value.integer.value[0];
  2329. return 1;
  2330. }
  2331. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2332. struct snd_ctl_elem_value *ucontrol)
  2333. {
  2334. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2335. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2336. ucontrol->value.integer.value[0]);
  2337. return 0;
  2338. }
  2339. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2340. struct snd_ctl_elem_value *ucontrol)
  2341. {
  2342. struct snd_soc_dapm_widget *widget =
  2343. snd_soc_dapm_kcontrol_widget(kcontrol);
  2344. struct snd_soc_dapm_update *update = NULL;
  2345. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2346. ucontrol->value.integer.value[0]);
  2347. if (ucontrol->value.integer.value[0])
  2348. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2349. 1, update);
  2350. else
  2351. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2352. 0, update);
  2353. hfp_switch_enable = ucontrol->value.integer.value[0];
  2354. return 1;
  2355. }
  2356. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2360. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2361. ucontrol->value.integer.value[0]);
  2362. return 0;
  2363. }
  2364. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2365. struct snd_ctl_elem_value *ucontrol)
  2366. {
  2367. struct snd_soc_dapm_widget *widget =
  2368. snd_soc_dapm_kcontrol_widget(kcontrol);
  2369. struct snd_soc_dapm_update *update = NULL;
  2370. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2371. ucontrol->value.integer.value[0]);
  2372. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2373. if (a2dp_switch_enable)
  2374. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2375. 1, update);
  2376. else
  2377. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2378. 0, update);
  2379. return 1;
  2380. }
  2381. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2382. struct snd_ctl_elem_value *ucontrol)
  2383. {
  2384. ucontrol->value.integer.value[0] = sco_switch_enable;
  2385. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2386. ucontrol->value.integer.value[0]);
  2387. return 0;
  2388. }
  2389. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2390. struct snd_ctl_elem_value *ucontrol)
  2391. {
  2392. struct snd_soc_dapm_widget *widget =
  2393. snd_soc_dapm_kcontrol_widget(kcontrol);
  2394. struct snd_soc_dapm_update *update = NULL;
  2395. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2396. ucontrol->value.integer.value[0]);
  2397. sco_switch_enable = ucontrol->value.integer.value[0];
  2398. if (sco_switch_enable)
  2399. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2400. 1, update);
  2401. else
  2402. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2403. 0, update);
  2404. return 1;
  2405. }
  2406. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2407. struct snd_ctl_elem_value *ucontrol)
  2408. {
  2409. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2410. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2411. ucontrol->value.integer.value[0]);
  2412. return 0;
  2413. }
  2414. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2415. struct snd_ctl_elem_value *ucontrol)
  2416. {
  2417. struct snd_soc_dapm_widget *widget =
  2418. snd_soc_dapm_kcontrol_widget(kcontrol);
  2419. struct snd_soc_dapm_update *update = NULL;
  2420. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2421. ucontrol->value.integer.value[0]);
  2422. if (ucontrol->value.integer.value[0])
  2423. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2424. update);
  2425. else
  2426. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2427. update);
  2428. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2429. return 1;
  2430. }
  2431. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2432. struct snd_ctl_elem_value *ucontrol)
  2433. {
  2434. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2435. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2436. ucontrol->value.integer.value[0]);
  2437. return 0;
  2438. }
  2439. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2440. struct snd_ctl_elem_value *ucontrol)
  2441. {
  2442. struct snd_soc_dapm_widget *widget =
  2443. snd_soc_dapm_kcontrol_widget(kcontrol);
  2444. struct snd_soc_dapm_update *update = NULL;
  2445. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2446. ucontrol->value.integer.value[0]);
  2447. if (ucontrol->value.integer.value[0])
  2448. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2449. update);
  2450. else
  2451. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2452. update);
  2453. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2454. return 1;
  2455. }
  2456. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2457. struct snd_ctl_elem_value *ucontrol)
  2458. {
  2459. ucontrol->value.integer.value[0] = usb_switch_enable;
  2460. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2461. ucontrol->value.integer.value[0]);
  2462. return 0;
  2463. }
  2464. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. struct snd_soc_dapm_widget *widget =
  2468. snd_soc_dapm_kcontrol_widget(kcontrol);
  2469. struct snd_soc_dapm_update *update = NULL;
  2470. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2471. ucontrol->value.integer.value[0]);
  2472. if (ucontrol->value.integer.value[0])
  2473. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2474. 1, update);
  2475. else
  2476. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2477. 0, update);
  2478. usb_switch_enable = ucontrol->value.integer.value[0];
  2479. return 1;
  2480. }
  2481. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2482. struct snd_ctl_elem_value *ucontrol)
  2483. {
  2484. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2485. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2486. ucontrol->value.integer.value[0]);
  2487. return 0;
  2488. }
  2489. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2490. struct snd_ctl_elem_value *ucontrol)
  2491. {
  2492. struct snd_soc_dapm_widget *widget =
  2493. snd_soc_dapm_kcontrol_widget(kcontrol);
  2494. struct snd_soc_dapm_update *update = NULL;
  2495. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2496. ucontrol->value.integer.value[0]);
  2497. if (ucontrol->value.integer.value[0])
  2498. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2499. update);
  2500. else
  2501. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2502. update);
  2503. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2504. return 1;
  2505. }
  2506. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2507. struct snd_ctl_elem_value *ucontrol)
  2508. {
  2509. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2510. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2511. ucontrol->value.integer.value[0]);
  2512. return 0;
  2513. }
  2514. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2515. struct snd_ctl_elem_value *ucontrol)
  2516. {
  2517. struct snd_soc_dapm_widget *widget =
  2518. snd_soc_dapm_kcontrol_widget(kcontrol);
  2519. struct snd_soc_dapm_update *update = NULL;
  2520. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2521. ucontrol->value.integer.value[0]);
  2522. if (ucontrol->value.integer.value[0])
  2523. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2524. update);
  2525. else
  2526. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2527. update);
  2528. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2529. return 1;
  2530. }
  2531. static int msm_routing_get_tert_mi2s_switch_mixer(
  2532. struct snd_kcontrol *kcontrol,
  2533. struct snd_ctl_elem_value *ucontrol)
  2534. {
  2535. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2536. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2537. ucontrol->value.integer.value[0]);
  2538. return 0;
  2539. }
  2540. static int msm_routing_put_tert_mi2s_switch_mixer(
  2541. struct snd_kcontrol *kcontrol,
  2542. struct snd_ctl_elem_value *ucontrol)
  2543. {
  2544. struct snd_soc_dapm_widget *widget =
  2545. snd_soc_dapm_kcontrol_widget(kcontrol);
  2546. struct snd_soc_dapm_update *update = NULL;
  2547. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2548. ucontrol->value.integer.value[0]);
  2549. if (ucontrol->value.integer.value[0])
  2550. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2551. update);
  2552. else
  2553. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2554. update);
  2555. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2556. return 1;
  2557. }
  2558. static int msm_routing_get_quat_mi2s_switch_mixer(
  2559. struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2563. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2564. ucontrol->value.integer.value[0]);
  2565. return 0;
  2566. }
  2567. static int msm_routing_put_quat_mi2s_switch_mixer(
  2568. struct snd_kcontrol *kcontrol,
  2569. struct snd_ctl_elem_value *ucontrol)
  2570. {
  2571. struct snd_soc_dapm_widget *widget =
  2572. snd_soc_dapm_kcontrol_widget(kcontrol);
  2573. struct snd_soc_dapm_update *update = NULL;
  2574. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2575. ucontrol->value.integer.value[0]);
  2576. if (ucontrol->value.integer.value[0])
  2577. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2578. update);
  2579. else
  2580. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2581. update);
  2582. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2583. return 1;
  2584. }
  2585. static int msm_routing_get_quin_mi2s_switch_mixer(
  2586. struct snd_kcontrol *kcontrol,
  2587. struct snd_ctl_elem_value *ucontrol)
  2588. {
  2589. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2590. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2591. ucontrol->value.integer.value[0]);
  2592. return 0;
  2593. }
  2594. static int msm_routing_put_quin_mi2s_switch_mixer(
  2595. 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: QUIN MI2S Switch enable %ld\n", __func__,
  2602. ucontrol->value.integer.value[0]);
  2603. if (ucontrol->value.integer.value[0])
  2604. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2605. update);
  2606. else
  2607. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2608. update);
  2609. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2610. return 1;
  2611. }
  2612. static int msm_routing_get_sen_mi2s_switch_mixer(
  2613. struct snd_kcontrol *kcontrol,
  2614. struct snd_ctl_elem_value *ucontrol)
  2615. {
  2616. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2617. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2618. ucontrol->value.integer.value[0]);
  2619. return 0;
  2620. }
  2621. static int msm_routing_put_sen_mi2s_switch_mixer(
  2622. struct snd_kcontrol *kcontrol,
  2623. struct snd_ctl_elem_value *ucontrol)
  2624. {
  2625. struct snd_soc_dapm_widget *widget =
  2626. snd_soc_dapm_kcontrol_widget(kcontrol);
  2627. struct snd_soc_dapm_update *update = NULL;
  2628. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2629. ucontrol->value.integer.value[0]);
  2630. if (ucontrol->value.integer.value[0])
  2631. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2632. update);
  2633. else
  2634. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2635. update);
  2636. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2637. return 1;
  2638. }
  2639. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2640. struct snd_ctl_elem_value *ucontrol)
  2641. {
  2642. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2643. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2644. ucontrol->value.integer.value[0]);
  2645. return 0;
  2646. }
  2647. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2648. struct snd_ctl_elem_value *ucontrol)
  2649. {
  2650. struct snd_soc_dapm_widget *widget =
  2651. snd_soc_dapm_kcontrol_widget(kcontrol);
  2652. struct snd_soc_dapm_update *update = NULL;
  2653. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2654. ucontrol->value.integer.value[0]);
  2655. if (ucontrol->value.integer.value[0])
  2656. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2657. update);
  2658. else
  2659. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2660. update);
  2661. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2662. return 1;
  2663. }
  2664. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2665. struct snd_ctl_elem_value *ucontrol)
  2666. {
  2667. ucontrol->value.integer.value[0] = lsm_port_index;
  2668. return 0;
  2669. }
  2670. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2671. struct snd_ctl_elem_value *ucontrol)
  2672. {
  2673. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2674. int mux = ucontrol->value.enumerated.item[0];
  2675. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2676. if (mux >= e->items) {
  2677. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2678. return -EINVAL;
  2679. }
  2680. pr_debug("%s: LSM enable %ld\n", __func__,
  2681. ucontrol->value.integer.value[0]);
  2682. switch (ucontrol->value.integer.value[0]) {
  2683. case 1:
  2684. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2685. break;
  2686. case 2:
  2687. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2688. break;
  2689. case 3:
  2690. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2691. break;
  2692. case 4:
  2693. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2694. break;
  2695. case 5:
  2696. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2697. break;
  2698. case 6:
  2699. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2700. break;
  2701. case 7:
  2702. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2703. break;
  2704. case 8:
  2705. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2706. break;
  2707. case 9:
  2708. lsm_port = ADM_LSM_PORT_ID;
  2709. break;
  2710. case 10:
  2711. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2712. break;
  2713. case 11:
  2714. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2715. break;
  2716. case 12:
  2717. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2718. break;
  2719. case 13:
  2720. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2721. break;
  2722. case 14:
  2723. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2724. break;
  2725. case 15:
  2726. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2727. break;
  2728. default:
  2729. pr_err("Default lsm port");
  2730. break;
  2731. }
  2732. set_lsm_port(lsm_port);
  2733. lsm_port_index = ucontrol->value.integer.value[0];
  2734. return 0;
  2735. }
  2736. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2737. struct snd_ctl_elem_value *ucontrol)
  2738. {
  2739. int i;
  2740. u16 port_id;
  2741. enum afe_mad_type mad_type;
  2742. pr_debug("%s: enter\n", __func__);
  2743. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2744. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2745. strlen(lsm_port_text[i])))
  2746. break;
  2747. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2748. pr_warn("%s: Invalid id name %s\n", __func__,
  2749. kcontrol->id.name);
  2750. return -EINVAL;
  2751. }
  2752. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2753. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2754. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2755. strlen(lsm_port_text[7])))
  2756. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2757. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2758. strlen(lsm_port_text[8])))
  2759. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2760. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2761. strlen(lsm_port_text[10])))
  2762. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2763. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2764. strlen(lsm_port_text[13])))
  2765. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2766. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2767. strlen(lsm_port_text[14])))
  2768. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2769. mad_type = afe_port_get_mad_type(port_id);
  2770. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2771. mad_type);
  2772. switch (mad_type) {
  2773. case MAD_HW_NONE:
  2774. ucontrol->value.integer.value[0] = MADNONE;
  2775. break;
  2776. case MAD_HW_AUDIO:
  2777. ucontrol->value.integer.value[0] = MADAUDIO;
  2778. break;
  2779. case MAD_HW_BEACON:
  2780. ucontrol->value.integer.value[0] = MADBEACON;
  2781. break;
  2782. case MAD_HW_ULTRASOUND:
  2783. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2784. break;
  2785. case MAD_SW_AUDIO:
  2786. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2787. break;
  2788. default:
  2789. pr_warn("%s: Unknown\n", __func__);
  2790. return -EINVAL;
  2791. }
  2792. return 0;
  2793. }
  2794. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2795. struct snd_ctl_elem_value *ucontrol)
  2796. {
  2797. int i;
  2798. u16 port_id;
  2799. enum afe_mad_type mad_type;
  2800. pr_debug("%s: enter\n", __func__);
  2801. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2802. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2803. strlen(lsm_port_text[i])))
  2804. break;
  2805. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2806. pr_warn("%s: Invalid id name %s\n", __func__,
  2807. kcontrol->id.name);
  2808. return -EINVAL;
  2809. }
  2810. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2811. switch (ucontrol->value.integer.value[0]) {
  2812. case MADNONE:
  2813. mad_type = MAD_HW_NONE;
  2814. break;
  2815. case MADAUDIO:
  2816. mad_type = MAD_HW_AUDIO;
  2817. break;
  2818. case MADBEACON:
  2819. mad_type = MAD_HW_BEACON;
  2820. break;
  2821. case MADULTRASOUND:
  2822. mad_type = MAD_HW_ULTRASOUND;
  2823. break;
  2824. case MADSWAUDIO:
  2825. mad_type = MAD_SW_AUDIO;
  2826. break;
  2827. default:
  2828. pr_warn("%s: Unknown\n", __func__);
  2829. return -EINVAL;
  2830. }
  2831. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2832. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2833. strlen(lsm_port_text[7])))
  2834. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2835. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2836. strlen(lsm_port_text[8])))
  2837. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2838. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2839. strlen(lsm_port_text[10])))
  2840. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2841. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2842. strlen(lsm_port_text[13])))
  2843. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2844. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2845. strlen(lsm_port_text[14])))
  2846. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2847. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2848. mad_type);
  2849. return afe_port_set_mad_type(port_id, mad_type);
  2850. }
  2851. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2852. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2853. adm_override_chs_text);
  2854. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2855. {
  2856. int backend_id;
  2857. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2858. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2859. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2860. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2861. } else {
  2862. pr_err("%s: unsupported backend id: %s",
  2863. __func__, kcontrol->id.name);
  2864. return -EINVAL;
  2865. }
  2866. return backend_id;
  2867. }
  2868. static int msm_routing_adm_channel_config_get(
  2869. struct snd_kcontrol *kcontrol,
  2870. struct snd_ctl_elem_value *ucontrol)
  2871. {
  2872. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2873. if (backend_id >= 0) {
  2874. mutex_lock(&routing_lock);
  2875. ucontrol->value.integer.value[0] =
  2876. msm_bedais[backend_id].adm_override_ch;
  2877. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2878. ucontrol->value.integer.value[0], backend_id);
  2879. mutex_unlock(&routing_lock);
  2880. }
  2881. return 0;
  2882. }
  2883. static int msm_routing_adm_channel_config_put(
  2884. struct snd_kcontrol *kcontrol,
  2885. struct snd_ctl_elem_value *ucontrol)
  2886. {
  2887. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2888. if (backend_id >= 0) {
  2889. mutex_lock(&routing_lock);
  2890. msm_bedais[backend_id].adm_override_ch =
  2891. ucontrol->value.integer.value[0];
  2892. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2893. __func__, backend_id,
  2894. msm_bedais[backend_id].adm_override_ch);
  2895. mutex_unlock(&routing_lock);
  2896. }
  2897. return 0;
  2898. }
  2899. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2900. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2901. msm_routing_adm_channel_config_get,
  2902. msm_routing_adm_channel_config_put),
  2903. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2904. msm_routing_adm_channel_config_get,
  2905. msm_routing_adm_channel_config_put),
  2906. };
  2907. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2908. struct snd_ctl_elem_value *ucontrol)
  2909. {
  2910. mutex_lock(&routing_lock);
  2911. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2912. mutex_unlock(&routing_lock);
  2913. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2914. ucontrol->value.integer.value[0]);
  2915. return 0;
  2916. };
  2917. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2918. struct snd_ctl_elem_value *ucontrol)
  2919. {
  2920. struct aanc_data aanc_info;
  2921. mutex_lock(&routing_lock);
  2922. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2923. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2924. ucontrol->value.integer.value[0]);
  2925. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2926. if (ucontrol->value.integer.value[0] == 0) {
  2927. aanc_info.aanc_active = false;
  2928. aanc_info.aanc_tx_port = 0;
  2929. aanc_info.aanc_rx_port = 0;
  2930. } else {
  2931. aanc_info.aanc_active = true;
  2932. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2933. aanc_info.aanc_tx_port =
  2934. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2935. }
  2936. afe_set_aanc_info(&aanc_info);
  2937. mutex_unlock(&routing_lock);
  2938. return 0;
  2939. };
  2940. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2941. struct snd_ctl_elem_value *ucontrol)
  2942. {
  2943. int idx = 0, shift = 0;
  2944. struct soc_mixer_control *mc =
  2945. (struct soc_mixer_control *)kcontrol->private_value;
  2946. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2947. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2948. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2949. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2950. return -EINVAL;
  2951. }
  2952. if (test_bit(shift,
  2953. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2954. ucontrol->value.integer.value[0] = 1;
  2955. else
  2956. ucontrol->value.integer.value[0] = 0;
  2957. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2958. ucontrol->value.integer.value[0]);
  2959. return 0;
  2960. }
  2961. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2962. struct snd_ctl_elem_value *ucontrol)
  2963. {
  2964. int idx = 0, shift = 0;
  2965. struct soc_mixer_control *mc =
  2966. (struct soc_mixer_control *)kcontrol->private_value;
  2967. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2968. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2969. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2970. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2971. return -EINVAL;
  2972. }
  2973. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2974. __func__, mc->shift, mc->rshift,
  2975. ucontrol->value.integer.value[0], idx, shift);
  2976. if (ucontrol->value.integer.value[0]) {
  2977. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2978. msm_bedais[mc->rshift].port_id);
  2979. set_bit(shift,
  2980. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2981. } else {
  2982. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2983. msm_bedais[mc->rshift].port_id);
  2984. clear_bit(shift,
  2985. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2986. }
  2987. return 1;
  2988. }
  2989. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2990. struct snd_ctl_elem_value *ucontrol)
  2991. {
  2992. u16 fe_id = 0;
  2993. fe_id = ((struct soc_mixer_control *)
  2994. kcontrol->private_value)->shift;
  2995. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2996. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2997. return -EINVAL;
  2998. }
  2999. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3000. return 0;
  3001. }
  3002. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3003. struct snd_ctl_elem_value *ucontrol)
  3004. {
  3005. u16 fe_id = 0;
  3006. fe_id = ((struct soc_mixer_control *)
  3007. kcontrol->private_value)->shift;
  3008. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3009. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3010. return -EINVAL;
  3011. }
  3012. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3013. return 1;
  3014. }
  3015. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3016. struct snd_ctl_elem_value *ucontrol)
  3017. {
  3018. u16 fe_id = 0;
  3019. fe_id = ((struct soc_multi_mixer_control *)
  3020. kcontrol->private_value)->shift;
  3021. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3022. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3023. return -EINVAL;
  3024. }
  3025. ucontrol->value.integer.value[0] =
  3026. channel_mixer[fe_id].output_channel;
  3027. return 0;
  3028. }
  3029. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3030. struct snd_ctl_elem_value *ucontrol)
  3031. {
  3032. u16 fe_id = 0;
  3033. fe_id = ((struct soc_multi_mixer_control *)
  3034. kcontrol->private_value)->shift;
  3035. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3036. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3037. return -EINVAL;
  3038. }
  3039. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3040. fe_id,
  3041. (unsigned int)(ucontrol->value.integer.value[0]));
  3042. channel_mixer[fe_id].output_channel =
  3043. (unsigned int)(ucontrol->value.integer.value[0]);
  3044. return 1;
  3045. }
  3046. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3047. /* If new backend is added, need update this array */
  3048. static const char *const be_name[] = {
  3049. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3050. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3051. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3052. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3053. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3054. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3055. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3056. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3057. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3058. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3059. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3060. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3061. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3062. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3063. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3064. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3065. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3066. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3067. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3068. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3069. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3070. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3071. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3072. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3073. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3074. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3075. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3076. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3077. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3078. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3079. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3080. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3081. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3082. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3083. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3084. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3085. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3086. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3087. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3088. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3089. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3090. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3091. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3092. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3093. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3094. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3095. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3096. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3097. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3098. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3099. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3100. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3101. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3102. "SEC_META_MI2S_RX"
  3103. };
  3104. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3105. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3106. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3107. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3108. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3109. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3110. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3111. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3112. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3113. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3114. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3115. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3116. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3117. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3118. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3119. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3120. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3121. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3122. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3123. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3124. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3126. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3128. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3129. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3130. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3132. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3134. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3136. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3138. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3140. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3142. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3144. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3146. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3148. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3158. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3159. unsigned int channels,
  3160. unsigned int items, const char *const names[])
  3161. {
  3162. if (uinfo->value.enumerated.item >= items)
  3163. uinfo->value.enumerated.item = items - 1;
  3164. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3165. sizeof(uinfo->value.enumerated.name),
  3166. "ALSA: too long item name '%s'\n",
  3167. names[uinfo->value.enumerated.item]);
  3168. strlcpy(uinfo->value.enumerated.name,
  3169. names[uinfo->value.enumerated.item],
  3170. sizeof(uinfo->value.enumerated.name));
  3171. return 0;
  3172. }
  3173. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3174. struct snd_ctl_elem_info *uinfo)
  3175. {
  3176. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3177. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3178. uinfo->count = 1;
  3179. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3180. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3181. return 0;
  3182. }
  3183. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3184. struct snd_ctl_elem_value *ucontrol)
  3185. {
  3186. u16 fe_id = 0;
  3187. fe_id = ((struct soc_enum *)
  3188. kcontrol->private_value)->shift_l;
  3189. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3190. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3191. return -EINVAL;
  3192. }
  3193. pr_debug("%s: FE %d %s\n", __func__,
  3194. fe_id,
  3195. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3196. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3197. return 0;
  3198. }
  3199. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3200. struct snd_ctl_elem_value *ucontrol)
  3201. {
  3202. u16 fe_id = 0;
  3203. fe_id = ((struct soc_enum *)
  3204. kcontrol->private_value)->shift_l;
  3205. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3206. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3207. return -EINVAL;
  3208. }
  3209. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3210. pr_debug("%s: %s FE %d\n", __func__,
  3211. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3212. fe_id);
  3213. return 0;
  3214. }
  3215. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3216. struct snd_ctl_elem_info *uinfo)
  3217. {
  3218. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3219. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3220. uinfo->count = 1;
  3221. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3222. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3223. return 0;
  3224. }
  3225. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3229. u16 fe_id = 0, in_ch = 0;
  3230. fe_id = e->shift_l;
  3231. in_ch = e->shift_r;
  3232. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3233. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3234. return -EINVAL;
  3235. }
  3236. if (in_ch >= ADM_MAX_CHANNELS) {
  3237. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3238. return -EINVAL;
  3239. }
  3240. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3241. return 1;
  3242. }
  3243. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3244. struct snd_ctl_elem_value *ucontrol)
  3245. {
  3246. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3247. u16 fe_id = 0, in_ch = 0;
  3248. fe_id = e->shift_l;
  3249. in_ch = e->shift_r;
  3250. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3251. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3252. return -EINVAL;
  3253. }
  3254. if (in_ch >= ADM_MAX_CHANNELS) {
  3255. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3256. return -EINVAL;
  3257. }
  3258. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3259. return 1;
  3260. }
  3261. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3262. struct snd_ctl_elem_info *uinfo)
  3263. {
  3264. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3265. uinfo->count = ADM_MAX_CHANNELS;
  3266. uinfo->value.integer.min = 0;
  3267. uinfo->value.integer.max = WEIGHT_0_DB;
  3268. return 0;
  3269. }
  3270. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3271. struct snd_ctl_elem_value *ucontrol)
  3272. {
  3273. u16 fe_id = 0, out_ch = 0;
  3274. int i, weight;
  3275. fe_id = ((struct soc_multi_mixer_control *)
  3276. kcontrol->private_value)->shift;
  3277. out_ch = ((struct soc_multi_mixer_control *)
  3278. kcontrol->private_value)->rshift;
  3279. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3280. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3281. return -EINVAL;
  3282. }
  3283. if (out_ch >= ADM_MAX_CHANNELS) {
  3284. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3285. return -EINVAL;
  3286. }
  3287. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3288. __func__, fe_id,
  3289. ucontrol->value.integer.value[0],
  3290. ucontrol->value.integer.value[1],
  3291. ucontrol->value.integer.value[2],
  3292. ucontrol->value.integer.value[3],
  3293. ucontrol->value.integer.value[4],
  3294. ucontrol->value.integer.value[5],
  3295. ucontrol->value.integer.value[6],
  3296. ucontrol->value.integer.value[7]);
  3297. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3298. weight = ucontrol->value.integer.value[i];
  3299. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3300. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3301. __func__, fe_id, out_ch, i,
  3302. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3303. }
  3304. return 0;
  3305. }
  3306. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3307. struct snd_ctl_elem_value *ucontrol)
  3308. {
  3309. u16 fe_id = 0, out_ch = 0;
  3310. int i;
  3311. fe_id = ((struct soc_multi_mixer_control *)
  3312. kcontrol->private_value)->shift;
  3313. out_ch = ((struct soc_multi_mixer_control *)
  3314. kcontrol->private_value)->rshift;
  3315. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3316. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3317. return -EINVAL;
  3318. }
  3319. if (out_ch >= ADM_MAX_CHANNELS) {
  3320. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3321. return -EINVAL;
  3322. }
  3323. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3324. ucontrol->value.integer.value[i] =
  3325. channel_mixer[fe_id].channel_weight[out_ch][i];
  3326. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3327. __func__, fe_id,
  3328. ucontrol->value.integer.value[0],
  3329. ucontrol->value.integer.value[1],
  3330. ucontrol->value.integer.value[2],
  3331. ucontrol->value.integer.value[3],
  3332. ucontrol->value.integer.value[4],
  3333. ucontrol->value.integer.value[5],
  3334. ucontrol->value.integer.value[6],
  3335. ucontrol->value.integer.value[7]);
  3336. return 0;
  3337. }
  3338. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3339. struct snd_ctl_elem_info *uinfo)
  3340. {
  3341. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3342. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3343. /* Valid channel map value ranges from 1 to 64 */
  3344. uinfo->value.integer.min = 0;
  3345. uinfo->value.integer.max = 64;
  3346. return 0;
  3347. }
  3348. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3349. struct snd_ctl_elem_value *ucontrol)
  3350. {
  3351. u16 fe_id = 0;
  3352. int i, ch_map;
  3353. fe_id = ((struct soc_multi_mixer_control *)
  3354. kcontrol->private_value)->shift;
  3355. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3356. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3357. return -EINVAL;
  3358. }
  3359. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3360. ch_map = ucontrol->value.integer.value[i];
  3361. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3362. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3363. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3364. }
  3365. /* Make override_out_ch_map false if ch map is reset */
  3366. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3367. channel_mixer[fe_id].override_out_ch_map = false;
  3368. else
  3369. channel_mixer[fe_id].override_out_ch_map = true;
  3370. return 0;
  3371. }
  3372. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3373. struct snd_ctl_elem_value *ucontrol)
  3374. {
  3375. u16 fe_id = 0;
  3376. int i;
  3377. fe_id = ((struct soc_multi_mixer_control *)
  3378. kcontrol->private_value)->shift;
  3379. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3380. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3381. return -EINVAL;
  3382. }
  3383. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3384. ucontrol->value.integer.value[i] =
  3385. channel_mixer[fe_id].out_ch_map[i];
  3386. return 0;
  3387. }
  3388. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3389. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3390. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3391. msm_pcm_get_channel_rule_index,
  3392. msm_pcm_put_channel_rule_index),
  3393. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3394. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3395. msm_pcm_get_channel_rule_index,
  3396. msm_pcm_put_channel_rule_index),
  3397. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3398. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3399. msm_pcm_get_channel_rule_index,
  3400. msm_pcm_put_channel_rule_index),
  3401. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3402. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3403. msm_pcm_get_channel_rule_index,
  3404. msm_pcm_put_channel_rule_index),
  3405. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3406. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3407. msm_pcm_get_channel_rule_index,
  3408. msm_pcm_put_channel_rule_index),
  3409. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3410. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3411. msm_pcm_get_channel_rule_index,
  3412. msm_pcm_put_channel_rule_index),
  3413. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3414. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3415. msm_pcm_get_channel_rule_index,
  3416. msm_pcm_put_channel_rule_index),
  3417. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3418. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3419. msm_pcm_get_channel_rule_index,
  3420. msm_pcm_put_channel_rule_index),
  3421. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3422. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3423. msm_pcm_get_channel_rule_index,
  3424. msm_pcm_put_channel_rule_index),
  3425. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3426. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3427. msm_pcm_get_channel_rule_index,
  3428. msm_pcm_put_channel_rule_index),
  3429. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3430. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3431. msm_pcm_get_channel_rule_index,
  3432. msm_pcm_put_channel_rule_index),
  3433. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3435. msm_pcm_get_out_chs,
  3436. msm_pcm_put_out_chs),
  3437. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3438. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3439. msm_pcm_get_out_chs,
  3440. msm_pcm_put_out_chs),
  3441. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3443. msm_pcm_get_out_chs,
  3444. msm_pcm_put_out_chs),
  3445. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3447. msm_pcm_get_out_chs,
  3448. msm_pcm_put_out_chs),
  3449. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3451. msm_pcm_get_out_chs,
  3452. msm_pcm_put_out_chs),
  3453. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3455. msm_pcm_get_out_chs,
  3456. msm_pcm_put_out_chs),
  3457. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3459. msm_pcm_get_out_chs,
  3460. msm_pcm_put_out_chs),
  3461. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3463. msm_pcm_get_out_chs,
  3464. msm_pcm_put_out_chs),
  3465. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3467. msm_pcm_get_out_chs,
  3468. msm_pcm_put_out_chs),
  3469. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3471. msm_pcm_get_out_chs,
  3472. msm_pcm_put_out_chs),
  3473. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3475. msm_pcm_get_out_chs,
  3476. msm_pcm_put_out_chs),
  3477. {
  3478. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3479. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3480. .name = "MultiMedia1 Channel Mixer",
  3481. .info = msm_pcm_channel_mixer_info,
  3482. .get = msm_pcm_channel_mixer_get,
  3483. .put = msm_pcm_channel_mixer_put,
  3484. .private_value = (unsigned long)&(mm1_channel_mux)
  3485. },
  3486. {
  3487. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3488. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3489. .name = "MultiMedia2 Channel Mixer",
  3490. .info = msm_pcm_channel_mixer_info,
  3491. .get = msm_pcm_channel_mixer_get,
  3492. .put = msm_pcm_channel_mixer_put,
  3493. .private_value = (unsigned long)&(mm2_channel_mux)
  3494. },
  3495. {
  3496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3498. .name = "MultiMedia3 Channel Mixer",
  3499. .info = msm_pcm_channel_mixer_info,
  3500. .get = msm_pcm_channel_mixer_get,
  3501. .put = msm_pcm_channel_mixer_put,
  3502. .private_value = (unsigned long)&(mm3_channel_mux)
  3503. },
  3504. {
  3505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3506. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3507. .name = "MultiMedia4 Channel Mixer",
  3508. .info = msm_pcm_channel_mixer_info,
  3509. .get = msm_pcm_channel_mixer_get,
  3510. .put = msm_pcm_channel_mixer_put,
  3511. .private_value = (unsigned long)&(mm4_channel_mux)
  3512. },
  3513. {
  3514. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3515. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3516. .name = "MultiMedia18 Channel Mixer",
  3517. .info = msm_pcm_channel_mixer_info,
  3518. .get = msm_pcm_channel_mixer_get,
  3519. .put = msm_pcm_channel_mixer_put,
  3520. .private_value = (unsigned long)&(mm18_channel_mux)
  3521. },
  3522. {
  3523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3524. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3525. .name = "MultiMedia19 Channel Mixer",
  3526. .info = msm_pcm_channel_mixer_info,
  3527. .get = msm_pcm_channel_mixer_get,
  3528. .put = msm_pcm_channel_mixer_put,
  3529. .private_value = (unsigned long)&(mm19_channel_mux)
  3530. },
  3531. {
  3532. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3533. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3534. .name = "MultiMedia28 Channel Mixer",
  3535. .info = msm_pcm_channel_mixer_info,
  3536. .get = msm_pcm_channel_mixer_get,
  3537. .put = msm_pcm_channel_mixer_put,
  3538. .private_value = (unsigned long)&(mm28_channel_mux)
  3539. },
  3540. {
  3541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3543. .name = "MultiMedia29 Channel Mixer",
  3544. .info = msm_pcm_channel_mixer_info,
  3545. .get = msm_pcm_channel_mixer_get,
  3546. .put = msm_pcm_channel_mixer_put,
  3547. .private_value = (unsigned long)&(mm29_channel_mux)
  3548. },
  3549. {
  3550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3551. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3552. .name = "MultiMedia30 Channel Mixer",
  3553. .info = msm_pcm_channel_mixer_info,
  3554. .get = msm_pcm_channel_mixer_get,
  3555. .put = msm_pcm_channel_mixer_put,
  3556. .private_value = (unsigned long)&(mm30_channel_mux)
  3557. },
  3558. {
  3559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3561. .name = "MultiMedia1 Output Channel1",
  3562. .info = msm_pcm_channel_weight_info,
  3563. .get = msm_pcm_channel_weight_get,
  3564. .put = msm_pcm_channel_weight_put,
  3565. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3566. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3567. },
  3568. {
  3569. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3571. .name = "MultiMedia1 Output Channel2",
  3572. .info = msm_pcm_channel_weight_info,
  3573. .get = msm_pcm_channel_weight_get,
  3574. .put = msm_pcm_channel_weight_put,
  3575. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3576. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Output Channel3",
  3582. .info = msm_pcm_channel_weight_info,
  3583. .get = msm_pcm_channel_weight_get,
  3584. .put = msm_pcm_channel_weight_put,
  3585. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3586. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3587. },
  3588. {
  3589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3590. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3591. .name = "MultiMedia1 Output Channel4",
  3592. .info = msm_pcm_channel_weight_info,
  3593. .get = msm_pcm_channel_weight_get,
  3594. .put = msm_pcm_channel_weight_put,
  3595. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3596. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3597. },
  3598. {
  3599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3601. .name = "MultiMedia1 Output Channel5",
  3602. .info = msm_pcm_channel_weight_info,
  3603. .get = msm_pcm_channel_weight_get,
  3604. .put = msm_pcm_channel_weight_put,
  3605. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3606. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3607. },
  3608. {
  3609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3611. .name = "MultiMedia1 Output Channel6",
  3612. .info = msm_pcm_channel_weight_info,
  3613. .get = msm_pcm_channel_weight_get,
  3614. .put = msm_pcm_channel_weight_put,
  3615. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3616. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel7",
  3622. .info = msm_pcm_channel_weight_info,
  3623. .get = msm_pcm_channel_weight_get,
  3624. .put = msm_pcm_channel_weight_put,
  3625. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3626. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel8",
  3632. .info = msm_pcm_channel_weight_info,
  3633. .get = msm_pcm_channel_weight_get,
  3634. .put = msm_pcm_channel_weight_put,
  3635. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3636. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel9",
  3642. .info = msm_pcm_channel_weight_info,
  3643. .get = msm_pcm_channel_weight_get,
  3644. .put = msm_pcm_channel_weight_put,
  3645. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3646. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel10",
  3652. .info = msm_pcm_channel_weight_info,
  3653. .get = msm_pcm_channel_weight_get,
  3654. .put = msm_pcm_channel_weight_put,
  3655. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3656. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel11",
  3662. .info = msm_pcm_channel_weight_info,
  3663. .get = msm_pcm_channel_weight_get,
  3664. .put = msm_pcm_channel_weight_put,
  3665. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3666. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia1 Output Channel12",
  3672. .info = msm_pcm_channel_weight_info,
  3673. .get = msm_pcm_channel_weight_get,
  3674. .put = msm_pcm_channel_weight_put,
  3675. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3676. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia1 Output Channel13",
  3682. .info = msm_pcm_channel_weight_info,
  3683. .get = msm_pcm_channel_weight_get,
  3684. .put = msm_pcm_channel_weight_put,
  3685. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3686. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia1 Output Channel14",
  3692. .info = msm_pcm_channel_weight_info,
  3693. .get = msm_pcm_channel_weight_get,
  3694. .put = msm_pcm_channel_weight_put,
  3695. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3696. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia2 Output Channel1",
  3702. .info = msm_pcm_channel_weight_info,
  3703. .get = msm_pcm_channel_weight_get,
  3704. .put = msm_pcm_channel_weight_put,
  3705. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3706. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia2 Output Channel2",
  3712. .info = msm_pcm_channel_weight_info,
  3713. .get = msm_pcm_channel_weight_get,
  3714. .put = msm_pcm_channel_weight_put,
  3715. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3716. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia2 Output Channel3",
  3722. .info = msm_pcm_channel_weight_info,
  3723. .get = msm_pcm_channel_weight_get,
  3724. .put = msm_pcm_channel_weight_put,
  3725. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3726. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia3 Output Channel1",
  3732. .info = msm_pcm_channel_weight_info,
  3733. .get = msm_pcm_channel_weight_get,
  3734. .put = msm_pcm_channel_weight_put,
  3735. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3736. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia3 Output Channel2",
  3742. .info = msm_pcm_channel_weight_info,
  3743. .get = msm_pcm_channel_weight_get,
  3744. .put = msm_pcm_channel_weight_put,
  3745. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3746. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia18 Output Channel1",
  3752. .info = msm_pcm_channel_weight_info,
  3753. .get = msm_pcm_channel_weight_get,
  3754. .put = msm_pcm_channel_weight_put,
  3755. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3756. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia18 Output Channel2",
  3762. .info = msm_pcm_channel_weight_info,
  3763. .get = msm_pcm_channel_weight_get,
  3764. .put = msm_pcm_channel_weight_put,
  3765. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3766. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia18 Output Channel3",
  3772. .info = msm_pcm_channel_weight_info,
  3773. .get = msm_pcm_channel_weight_get,
  3774. .put = msm_pcm_channel_weight_put,
  3775. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3776. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia18 Output Channel4",
  3782. .info = msm_pcm_channel_weight_info,
  3783. .get = msm_pcm_channel_weight_get,
  3784. .put = msm_pcm_channel_weight_put,
  3785. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3786. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia18 Output Channel5",
  3792. .info = msm_pcm_channel_weight_info,
  3793. .get = msm_pcm_channel_weight_get,
  3794. .put = msm_pcm_channel_weight_put,
  3795. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3796. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia18 Output Channel6",
  3802. .info = msm_pcm_channel_weight_info,
  3803. .get = msm_pcm_channel_weight_get,
  3804. .put = msm_pcm_channel_weight_put,
  3805. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3806. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel7",
  3812. .info = msm_pcm_channel_weight_info,
  3813. .get = msm_pcm_channel_weight_get,
  3814. .put = msm_pcm_channel_weight_put,
  3815. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3816. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel8",
  3822. .info = msm_pcm_channel_weight_info,
  3823. .get = msm_pcm_channel_weight_get,
  3824. .put = msm_pcm_channel_weight_put,
  3825. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3826. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel9",
  3832. .info = msm_pcm_channel_weight_info,
  3833. .get = msm_pcm_channel_weight_get,
  3834. .put = msm_pcm_channel_weight_put,
  3835. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3836. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel10",
  3842. .info = msm_pcm_channel_weight_info,
  3843. .get = msm_pcm_channel_weight_get,
  3844. .put = msm_pcm_channel_weight_put,
  3845. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3846. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel11",
  3852. .info = msm_pcm_channel_weight_info,
  3853. .get = msm_pcm_channel_weight_get,
  3854. .put = msm_pcm_channel_weight_put,
  3855. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3856. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia18 Output Channel12",
  3862. .info = msm_pcm_channel_weight_info,
  3863. .get = msm_pcm_channel_weight_get,
  3864. .put = msm_pcm_channel_weight_put,
  3865. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3866. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia18 Output Channel13",
  3872. .info = msm_pcm_channel_weight_info,
  3873. .get = msm_pcm_channel_weight_get,
  3874. .put = msm_pcm_channel_weight_put,
  3875. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3876. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia18 Output Channel14",
  3882. .info = msm_pcm_channel_weight_info,
  3883. .get = msm_pcm_channel_weight_get,
  3884. .put = msm_pcm_channel_weight_put,
  3885. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3886. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia19 Output Channel1",
  3892. .info = msm_pcm_channel_weight_info,
  3893. .get = msm_pcm_channel_weight_get,
  3894. .put = msm_pcm_channel_weight_put,
  3895. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3896. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia19 Output Channel2",
  3902. .info = msm_pcm_channel_weight_info,
  3903. .get = msm_pcm_channel_weight_get,
  3904. .put = msm_pcm_channel_weight_put,
  3905. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3906. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia19 Output Channel3",
  3912. .info = msm_pcm_channel_weight_info,
  3913. .get = msm_pcm_channel_weight_get,
  3914. .put = msm_pcm_channel_weight_put,
  3915. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3916. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia19 Output Channel4",
  3922. .info = msm_pcm_channel_weight_info,
  3923. .get = msm_pcm_channel_weight_get,
  3924. .put = msm_pcm_channel_weight_put,
  3925. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3926. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia19 Output Channel5",
  3932. .info = msm_pcm_channel_weight_info,
  3933. .get = msm_pcm_channel_weight_get,
  3934. .put = msm_pcm_channel_weight_put,
  3935. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3936. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia19 Output Channel6",
  3942. .info = msm_pcm_channel_weight_info,
  3943. .get = msm_pcm_channel_weight_get,
  3944. .put = msm_pcm_channel_weight_put,
  3945. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3946. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel7",
  3952. .info = msm_pcm_channel_weight_info,
  3953. .get = msm_pcm_channel_weight_get,
  3954. .put = msm_pcm_channel_weight_put,
  3955. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3956. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel8",
  3962. .info = msm_pcm_channel_weight_info,
  3963. .get = msm_pcm_channel_weight_get,
  3964. .put = msm_pcm_channel_weight_put,
  3965. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3966. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel9",
  3972. .info = msm_pcm_channel_weight_info,
  3973. .get = msm_pcm_channel_weight_get,
  3974. .put = msm_pcm_channel_weight_put,
  3975. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3976. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel10",
  3982. .info = msm_pcm_channel_weight_info,
  3983. .get = msm_pcm_channel_weight_get,
  3984. .put = msm_pcm_channel_weight_put,
  3985. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3986. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel11",
  3992. .info = msm_pcm_channel_weight_info,
  3993. .get = msm_pcm_channel_weight_get,
  3994. .put = msm_pcm_channel_weight_put,
  3995. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3996. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia19 Output Channel12",
  4002. .info = msm_pcm_channel_weight_info,
  4003. .get = msm_pcm_channel_weight_get,
  4004. .put = msm_pcm_channel_weight_put,
  4005. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4006. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia19 Output Channel13",
  4012. .info = msm_pcm_channel_weight_info,
  4013. .get = msm_pcm_channel_weight_get,
  4014. .put = msm_pcm_channel_weight_put,
  4015. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4016. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia19 Output Channel14",
  4022. .info = msm_pcm_channel_weight_info,
  4023. .get = msm_pcm_channel_weight_get,
  4024. .put = msm_pcm_channel_weight_put,
  4025. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4026. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia28 Output Channel1",
  4032. .info = msm_pcm_channel_weight_info,
  4033. .get = msm_pcm_channel_weight_get,
  4034. .put = msm_pcm_channel_weight_put,
  4035. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4036. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia28 Output Channel2",
  4042. .info = msm_pcm_channel_weight_info,
  4043. .get = msm_pcm_channel_weight_get,
  4044. .put = msm_pcm_channel_weight_put,
  4045. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4046. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia28 Output Channel3",
  4052. .info = msm_pcm_channel_weight_info,
  4053. .get = msm_pcm_channel_weight_get,
  4054. .put = msm_pcm_channel_weight_put,
  4055. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4056. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia28 Output Channel4",
  4062. .info = msm_pcm_channel_weight_info,
  4063. .get = msm_pcm_channel_weight_get,
  4064. .put = msm_pcm_channel_weight_put,
  4065. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4066. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia28 Output Channel5",
  4072. .info = msm_pcm_channel_weight_info,
  4073. .get = msm_pcm_channel_weight_get,
  4074. .put = msm_pcm_channel_weight_put,
  4075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4076. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia28 Output Channel6",
  4082. .info = msm_pcm_channel_weight_info,
  4083. .get = msm_pcm_channel_weight_get,
  4084. .put = msm_pcm_channel_weight_put,
  4085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4086. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel7",
  4092. .info = msm_pcm_channel_weight_info,
  4093. .get = msm_pcm_channel_weight_get,
  4094. .put = msm_pcm_channel_weight_put,
  4095. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4096. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel8",
  4102. .info = msm_pcm_channel_weight_info,
  4103. .get = msm_pcm_channel_weight_get,
  4104. .put = msm_pcm_channel_weight_put,
  4105. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4106. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel9",
  4112. .info = msm_pcm_channel_weight_info,
  4113. .get = msm_pcm_channel_weight_get,
  4114. .put = msm_pcm_channel_weight_put,
  4115. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4116. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel10",
  4122. .info = msm_pcm_channel_weight_info,
  4123. .get = msm_pcm_channel_weight_get,
  4124. .put = msm_pcm_channel_weight_put,
  4125. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4126. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel11",
  4132. .info = msm_pcm_channel_weight_info,
  4133. .get = msm_pcm_channel_weight_get,
  4134. .put = msm_pcm_channel_weight_put,
  4135. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4136. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia28 Output Channel12",
  4142. .info = msm_pcm_channel_weight_info,
  4143. .get = msm_pcm_channel_weight_get,
  4144. .put = msm_pcm_channel_weight_put,
  4145. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4146. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia28 Output Channel13",
  4152. .info = msm_pcm_channel_weight_info,
  4153. .get = msm_pcm_channel_weight_get,
  4154. .put = msm_pcm_channel_weight_put,
  4155. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4156. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia28 Output Channel14",
  4162. .info = msm_pcm_channel_weight_info,
  4163. .get = msm_pcm_channel_weight_get,
  4164. .put = msm_pcm_channel_weight_put,
  4165. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4166. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia29 Output Channel1",
  4172. .info = msm_pcm_channel_weight_info,
  4173. .get = msm_pcm_channel_weight_get,
  4174. .put = msm_pcm_channel_weight_put,
  4175. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4176. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia29 Output Channel2",
  4182. .info = msm_pcm_channel_weight_info,
  4183. .get = msm_pcm_channel_weight_get,
  4184. .put = msm_pcm_channel_weight_put,
  4185. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4186. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia29 Output Channel3",
  4192. .info = msm_pcm_channel_weight_info,
  4193. .get = msm_pcm_channel_weight_get,
  4194. .put = msm_pcm_channel_weight_put,
  4195. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4196. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia29 Output Channel4",
  4202. .info = msm_pcm_channel_weight_info,
  4203. .get = msm_pcm_channel_weight_get,
  4204. .put = msm_pcm_channel_weight_put,
  4205. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4206. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia29 Output Channel5",
  4212. .info = msm_pcm_channel_weight_info,
  4213. .get = msm_pcm_channel_weight_get,
  4214. .put = msm_pcm_channel_weight_put,
  4215. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4216. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia29 Output Channel6",
  4222. .info = msm_pcm_channel_weight_info,
  4223. .get = msm_pcm_channel_weight_get,
  4224. .put = msm_pcm_channel_weight_put,
  4225. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4226. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel7",
  4232. .info = msm_pcm_channel_weight_info,
  4233. .get = msm_pcm_channel_weight_get,
  4234. .put = msm_pcm_channel_weight_put,
  4235. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4236. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel8",
  4242. .info = msm_pcm_channel_weight_info,
  4243. .get = msm_pcm_channel_weight_get,
  4244. .put = msm_pcm_channel_weight_put,
  4245. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4246. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel9",
  4252. .info = msm_pcm_channel_weight_info,
  4253. .get = msm_pcm_channel_weight_get,
  4254. .put = msm_pcm_channel_weight_put,
  4255. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4256. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel10",
  4262. .info = msm_pcm_channel_weight_info,
  4263. .get = msm_pcm_channel_weight_get,
  4264. .put = msm_pcm_channel_weight_put,
  4265. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4266. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel11",
  4272. .info = msm_pcm_channel_weight_info,
  4273. .get = msm_pcm_channel_weight_get,
  4274. .put = msm_pcm_channel_weight_put,
  4275. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4276. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia29 Output Channel12",
  4282. .info = msm_pcm_channel_weight_info,
  4283. .get = msm_pcm_channel_weight_get,
  4284. .put = msm_pcm_channel_weight_put,
  4285. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4286. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia29 Output Channel13",
  4292. .info = msm_pcm_channel_weight_info,
  4293. .get = msm_pcm_channel_weight_get,
  4294. .put = msm_pcm_channel_weight_put,
  4295. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4296. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia29 Output Channel14",
  4302. .info = msm_pcm_channel_weight_info,
  4303. .get = msm_pcm_channel_weight_get,
  4304. .put = msm_pcm_channel_weight_put,
  4305. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4306. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia30 Output Channel1",
  4312. .info = msm_pcm_channel_weight_info,
  4313. .get = msm_pcm_channel_weight_get,
  4314. .put = msm_pcm_channel_weight_put,
  4315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia30 Output Channel2",
  4322. .info = msm_pcm_channel_weight_info,
  4323. .get = msm_pcm_channel_weight_get,
  4324. .put = msm_pcm_channel_weight_put,
  4325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia30 Output Channel3",
  4332. .info = msm_pcm_channel_weight_info,
  4333. .get = msm_pcm_channel_weight_get,
  4334. .put = msm_pcm_channel_weight_put,
  4335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4336. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia30 Output Channel4",
  4342. .info = msm_pcm_channel_weight_info,
  4343. .get = msm_pcm_channel_weight_get,
  4344. .put = msm_pcm_channel_weight_put,
  4345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4346. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia30 Output Channel5",
  4352. .info = msm_pcm_channel_weight_info,
  4353. .get = msm_pcm_channel_weight_get,
  4354. .put = msm_pcm_channel_weight_put,
  4355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4356. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia30 Output Channel6",
  4362. .info = msm_pcm_channel_weight_info,
  4363. .get = msm_pcm_channel_weight_get,
  4364. .put = msm_pcm_channel_weight_put,
  4365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4366. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel7",
  4372. .info = msm_pcm_channel_weight_info,
  4373. .get = msm_pcm_channel_weight_get,
  4374. .put = msm_pcm_channel_weight_put,
  4375. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4376. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel8",
  4382. .info = msm_pcm_channel_weight_info,
  4383. .get = msm_pcm_channel_weight_get,
  4384. .put = msm_pcm_channel_weight_put,
  4385. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4386. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel9",
  4392. .info = msm_pcm_channel_weight_info,
  4393. .get = msm_pcm_channel_weight_get,
  4394. .put = msm_pcm_channel_weight_put,
  4395. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4396. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel10",
  4402. .info = msm_pcm_channel_weight_info,
  4403. .get = msm_pcm_channel_weight_get,
  4404. .put = msm_pcm_channel_weight_put,
  4405. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4406. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel11",
  4412. .info = msm_pcm_channel_weight_info,
  4413. .get = msm_pcm_channel_weight_get,
  4414. .put = msm_pcm_channel_weight_put,
  4415. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4416. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia30 Output Channel12",
  4422. .info = msm_pcm_channel_weight_info,
  4423. .get = msm_pcm_channel_weight_get,
  4424. .put = msm_pcm_channel_weight_put,
  4425. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4426. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4427. },
  4428. {
  4429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4430. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4431. .name = "MultiMedia30 Output Channel13",
  4432. .info = msm_pcm_channel_weight_info,
  4433. .get = msm_pcm_channel_weight_get,
  4434. .put = msm_pcm_channel_weight_put,
  4435. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4436. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4437. },
  4438. {
  4439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4440. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4441. .name = "MultiMedia30 Output Channel14",
  4442. .info = msm_pcm_channel_weight_info,
  4443. .get = msm_pcm_channel_weight_get,
  4444. .put = msm_pcm_channel_weight_put,
  4445. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4446. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4447. },
  4448. {
  4449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4451. .name = "MultiMedia1 Channel1",
  4452. .info = msm_pcm_channel_input_be_info,
  4453. .get = msm_pcm_channel_input_be_get,
  4454. .put = msm_pcm_channel_input_be_put,
  4455. .private_value = (unsigned long)&(mm1_ch1_enum)
  4456. },
  4457. {
  4458. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4459. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4460. .name = "MultiMedia1 Channel2",
  4461. .info = msm_pcm_channel_input_be_info,
  4462. .get = msm_pcm_channel_input_be_get,
  4463. .put = msm_pcm_channel_input_be_put,
  4464. .private_value = (unsigned long)&(mm1_ch2_enum)
  4465. },
  4466. {
  4467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4468. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4469. .name = "MultiMedia1 Channel3",
  4470. .info = msm_pcm_channel_input_be_info,
  4471. .get = msm_pcm_channel_input_be_get,
  4472. .put = msm_pcm_channel_input_be_put,
  4473. .private_value = (unsigned long)&(mm1_ch3_enum)
  4474. },
  4475. {
  4476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4477. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4478. .name = "MultiMedia1 Channel4",
  4479. .info = msm_pcm_channel_input_be_info,
  4480. .get = msm_pcm_channel_input_be_get,
  4481. .put = msm_pcm_channel_input_be_put,
  4482. .private_value = (unsigned long)&(mm1_ch4_enum)
  4483. },
  4484. {
  4485. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4486. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4487. .name = "MultiMedia1 Channel5",
  4488. .info = msm_pcm_channel_input_be_info,
  4489. .get = msm_pcm_channel_input_be_get,
  4490. .put = msm_pcm_channel_input_be_put,
  4491. .private_value = (unsigned long)&(mm1_ch5_enum)
  4492. },
  4493. {
  4494. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4495. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4496. .name = "MultiMedia1 Channel6",
  4497. .info = msm_pcm_channel_input_be_info,
  4498. .get = msm_pcm_channel_input_be_get,
  4499. .put = msm_pcm_channel_input_be_put,
  4500. .private_value = (unsigned long)&(mm1_ch6_enum)
  4501. },
  4502. {
  4503. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4504. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4505. .name = "MultiMedia1 Channel7",
  4506. .info = msm_pcm_channel_input_be_info,
  4507. .get = msm_pcm_channel_input_be_get,
  4508. .put = msm_pcm_channel_input_be_put,
  4509. .private_value = (unsigned long)&(mm1_ch7_enum)
  4510. },
  4511. {
  4512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4513. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4514. .name = "MultiMedia1 Channel8",
  4515. .info = msm_pcm_channel_input_be_info,
  4516. .get = msm_pcm_channel_input_be_get,
  4517. .put = msm_pcm_channel_input_be_put,
  4518. .private_value = (unsigned long)&(mm1_ch8_enum)
  4519. },
  4520. {
  4521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4523. .name = "MultiMedia18 Channel1",
  4524. .info = msm_pcm_channel_input_be_info,
  4525. .get = msm_pcm_channel_input_be_get,
  4526. .put = msm_pcm_channel_input_be_put,
  4527. .private_value = (unsigned long)&(mm18_ch1_enum)
  4528. },
  4529. {
  4530. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4531. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4532. .name = "MultiMedia18 Channel2",
  4533. .info = msm_pcm_channel_input_be_info,
  4534. .get = msm_pcm_channel_input_be_get,
  4535. .put = msm_pcm_channel_input_be_put,
  4536. .private_value = (unsigned long)&(mm18_ch2_enum)
  4537. },
  4538. {
  4539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4541. .name = "MultiMedia19 Channel1",
  4542. .info = msm_pcm_channel_input_be_info,
  4543. .get = msm_pcm_channel_input_be_get,
  4544. .put = msm_pcm_channel_input_be_put,
  4545. .private_value = (unsigned long)&(mm19_ch1_enum)
  4546. },
  4547. {
  4548. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4549. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4550. .name = "MultiMedia19 Channel2",
  4551. .info = msm_pcm_channel_input_be_info,
  4552. .get = msm_pcm_channel_input_be_get,
  4553. .put = msm_pcm_channel_input_be_put,
  4554. .private_value = (unsigned long)&(mm19_ch2_enum)
  4555. },
  4556. {
  4557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4558. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4559. .name = "MultiMedia28 Channel1",
  4560. .info = msm_pcm_channel_input_be_info,
  4561. .get = msm_pcm_channel_input_be_get,
  4562. .put = msm_pcm_channel_input_be_put,
  4563. .private_value = (unsigned long)&(mm28_ch1_enum)
  4564. },
  4565. {
  4566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4568. .name = "MultiMedia28 Channel2",
  4569. .info = msm_pcm_channel_input_be_info,
  4570. .get = msm_pcm_channel_input_be_get,
  4571. .put = msm_pcm_channel_input_be_put,
  4572. .private_value = (unsigned long)&(mm28_ch2_enum)
  4573. },
  4574. {
  4575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4577. .name = "MultiMedia29 Channel1",
  4578. .info = msm_pcm_channel_input_be_info,
  4579. .get = msm_pcm_channel_input_be_get,
  4580. .put = msm_pcm_channel_input_be_put,
  4581. .private_value = (unsigned long)&(mm29_ch1_enum)
  4582. },
  4583. {
  4584. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4585. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4586. .name = "MultiMedia29 Channel2",
  4587. .info = msm_pcm_channel_input_be_info,
  4588. .get = msm_pcm_channel_input_be_get,
  4589. .put = msm_pcm_channel_input_be_put,
  4590. .private_value = (unsigned long)&(mm29_ch2_enum)
  4591. },
  4592. {
  4593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4594. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4595. .name = "MultiMedia30 Channel1",
  4596. .info = msm_pcm_channel_input_be_info,
  4597. .get = msm_pcm_channel_input_be_get,
  4598. .put = msm_pcm_channel_input_be_put,
  4599. .private_value = (unsigned long)&(mm30_ch1_enum)
  4600. },
  4601. {
  4602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4603. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4604. .name = "MultiMedia30 Channel2",
  4605. .info = msm_pcm_channel_input_be_info,
  4606. .get = msm_pcm_channel_input_be_get,
  4607. .put = msm_pcm_channel_input_be_put,
  4608. .private_value = (unsigned long)&(mm30_ch2_enum)
  4609. },
  4610. {
  4611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4613. .name = "MultiMedia1 Output Channel Map",
  4614. .info = msm_pcm_channel_output_map_info,
  4615. .get = msm_pcm_channel_output_map_get,
  4616. .put = msm_pcm_channel_output_map_put,
  4617. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4618. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4619. },
  4620. {
  4621. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4622. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4623. .name = "MultiMedia2 Output Channel Map",
  4624. .info = msm_pcm_channel_output_map_info,
  4625. .get = msm_pcm_channel_output_map_get,
  4626. .put = msm_pcm_channel_output_map_put,
  4627. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4628. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4629. },
  4630. {
  4631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4633. .name = "MultiMedia3 Output Channel Map",
  4634. .info = msm_pcm_channel_output_map_info,
  4635. .get = msm_pcm_channel_output_map_get,
  4636. .put = msm_pcm_channel_output_map_put,
  4637. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4638. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4639. },
  4640. {
  4641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4643. .name = "MultiMedia4 Output Channel Map",
  4644. .info = msm_pcm_channel_output_map_info,
  4645. .get = msm_pcm_channel_output_map_get,
  4646. .put = msm_pcm_channel_output_map_put,
  4647. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4648. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4649. },
  4650. {
  4651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4653. .name = "MultiMedia5 Output Channel Map",
  4654. .info = msm_pcm_channel_output_map_info,
  4655. .get = msm_pcm_channel_output_map_get,
  4656. .put = msm_pcm_channel_output_map_put,
  4657. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4658. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4659. },
  4660. {
  4661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4663. .name = "MultiMedia6 Output Channel Map",
  4664. .info = msm_pcm_channel_output_map_info,
  4665. .get = msm_pcm_channel_output_map_get,
  4666. .put = msm_pcm_channel_output_map_put,
  4667. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4668. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia18 Output Channel Map",
  4674. .info = msm_pcm_channel_output_map_info,
  4675. .get = msm_pcm_channel_output_map_get,
  4676. .put = msm_pcm_channel_output_map_put,
  4677. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4678. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia19 Output Channel Map",
  4684. .info = msm_pcm_channel_output_map_info,
  4685. .get = msm_pcm_channel_output_map_get,
  4686. .put = msm_pcm_channel_output_map_put,
  4687. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4688. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4689. },
  4690. {
  4691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4693. .name = "MultiMedia28 Output Channel Map",
  4694. .info = msm_pcm_channel_output_map_info,
  4695. .get = msm_pcm_channel_output_map_get,
  4696. .put = msm_pcm_channel_output_map_put,
  4697. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4698. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4699. },
  4700. {
  4701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4703. .name = "MultiMedia29 Output Channel Map",
  4704. .info = msm_pcm_channel_output_map_info,
  4705. .get = msm_pcm_channel_output_map_get,
  4706. .put = msm_pcm_channel_output_map_put,
  4707. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4708. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4709. },
  4710. {
  4711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4712. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4713. .name = "MultiMedia30 Output Channel Map",
  4714. .info = msm_pcm_channel_output_map_info,
  4715. .get = msm_pcm_channel_output_map_get,
  4716. .put = msm_pcm_channel_output_map_put,
  4717. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4718. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4719. },
  4720. };
  4721. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4722. struct snd_ctl_elem_value *ucontrol)
  4723. {
  4724. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4725. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4726. ucontrol->value.integer.value[0]);
  4727. return 0;
  4728. }
  4729. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4730. struct snd_ctl_elem_value *ucontrol)
  4731. {
  4732. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4733. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4734. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4735. return 0;
  4736. }
  4737. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4738. struct snd_ctl_elem_value *ucontrol)
  4739. {
  4740. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4741. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4742. ucontrol->value.integer.value[0]);
  4743. return 0;
  4744. }
  4745. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4746. struct snd_ctl_elem_value *ucontrol)
  4747. {
  4748. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4749. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4750. __func__, msm_ec_ref_ch_downmixed);
  4751. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4752. return 0;
  4753. }
  4754. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4755. struct snd_ctl_elem_value *ucontrol)
  4756. {
  4757. int i = 0, ret = 0;
  4758. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4759. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4760. kcontrol->private_value)->shift;
  4761. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4762. weights[i] = ucontrol->value.integer.value[i];
  4763. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4764. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4765. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4766. return ret;
  4767. }
  4768. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4769. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4770. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4771. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4772. struct snd_ctl_elem_value *ucontrol)
  4773. {
  4774. switch (msm_ec_ref_bit_format) {
  4775. case SNDRV_PCM_FORMAT_S24_LE:
  4776. ucontrol->value.integer.value[0] = 2;
  4777. break;
  4778. case SNDRV_PCM_FORMAT_S16_LE:
  4779. ucontrol->value.integer.value[0] = 1;
  4780. break;
  4781. default:
  4782. ucontrol->value.integer.value[0] = 0;
  4783. break;
  4784. }
  4785. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4786. __func__, ucontrol->value.integer.value[0]);
  4787. return 0;
  4788. }
  4789. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4790. struct snd_ctl_elem_value *ucontrol)
  4791. {
  4792. u16 bit_width = 0;
  4793. switch (ucontrol->value.integer.value[0]) {
  4794. case 2:
  4795. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4796. break;
  4797. case 1:
  4798. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4799. break;
  4800. default:
  4801. msm_ec_ref_bit_format = 0;
  4802. break;
  4803. }
  4804. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4805. bit_width = 16;
  4806. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4807. bit_width = 24;
  4808. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4809. __func__, msm_ec_ref_bit_format);
  4810. adm_ec_ref_rx_bit_width(bit_width);
  4811. return 0;
  4812. }
  4813. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4814. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4815. struct snd_ctl_elem_value *ucontrol)
  4816. {
  4817. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4818. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4819. __func__, ucontrol->value.integer.value[0]);
  4820. return 0;
  4821. }
  4822. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4823. struct snd_ctl_elem_value *ucontrol)
  4824. {
  4825. switch (ucontrol->value.integer.value[0]) {
  4826. case 0:
  4827. msm_ec_ref_sampling_rate = 0;
  4828. break;
  4829. case 1:
  4830. msm_ec_ref_sampling_rate = 8000;
  4831. break;
  4832. case 2:
  4833. msm_ec_ref_sampling_rate = 16000;
  4834. break;
  4835. case 3:
  4836. msm_ec_ref_sampling_rate = 32000;
  4837. break;
  4838. case 4:
  4839. msm_ec_ref_sampling_rate = 44100;
  4840. break;
  4841. case 5:
  4842. msm_ec_ref_sampling_rate = 48000;
  4843. break;
  4844. case 6:
  4845. msm_ec_ref_sampling_rate = 96000;
  4846. break;
  4847. case 7:
  4848. msm_ec_ref_sampling_rate = 192000;
  4849. break;
  4850. case 8:
  4851. msm_ec_ref_sampling_rate = 384000;
  4852. break;
  4853. default:
  4854. msm_ec_ref_sampling_rate = 48000;
  4855. break;
  4856. }
  4857. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4858. __func__, msm_ec_ref_sampling_rate);
  4859. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4860. return 0;
  4861. }
  4862. static int get_ec_ref_port_id(int value, int *index)
  4863. {
  4864. int port_id;
  4865. switch (value) {
  4866. case 0:
  4867. *index = 0;
  4868. port_id = AFE_PORT_INVALID;
  4869. break;
  4870. case 1:
  4871. *index = 1;
  4872. port_id = SLIMBUS_0_RX;
  4873. break;
  4874. case 2:
  4875. *index = 2;
  4876. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4877. break;
  4878. case 3:
  4879. *index = 3;
  4880. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4881. break;
  4882. case 4:
  4883. *index = 4;
  4884. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4885. break;
  4886. case 5:
  4887. *index = 5;
  4888. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4889. break;
  4890. case 6:
  4891. *index = 6;
  4892. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4893. break;
  4894. case 7:
  4895. *index = 7;
  4896. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4897. break;
  4898. case 9:
  4899. *index = 9;
  4900. port_id = SLIMBUS_5_RX;
  4901. break;
  4902. case 10:
  4903. *index = 10;
  4904. port_id = SLIMBUS_1_TX;
  4905. break;
  4906. case 11:
  4907. *index = 11;
  4908. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4909. break;
  4910. case 12:
  4911. *index = 12;
  4912. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4913. break;
  4914. case 13:
  4915. *index = 13;
  4916. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4917. break;
  4918. case 14:
  4919. *index = 14;
  4920. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4921. break;
  4922. case 15:
  4923. *index = 15;
  4924. port_id = SLIMBUS_6_RX;
  4925. break;
  4926. case 16:
  4927. *index = 16;
  4928. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4929. break;
  4930. case 17:
  4931. *index = 17;
  4932. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4933. break;
  4934. case 18:
  4935. *index = 18;
  4936. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4937. break;
  4938. case 19:
  4939. *index = 19;
  4940. port_id = AFE_PORT_ID_USB_RX;
  4941. break;
  4942. case 20:
  4943. *index = 20;
  4944. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4945. break;
  4946. case 21:
  4947. *index = 21;
  4948. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4949. break;
  4950. case 22:
  4951. *index = 22;
  4952. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4953. break;
  4954. case 23:
  4955. *index = 23;
  4956. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4957. break;
  4958. case 24:
  4959. *index = 24;
  4960. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4961. break;
  4962. case 25:
  4963. *index = 25;
  4964. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4965. break;
  4966. case 26:
  4967. *index = 26;
  4968. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4969. break;
  4970. case 27:
  4971. *index = 27;
  4972. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4973. break;
  4974. case 28:
  4975. *index = 28;
  4976. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4977. break;
  4978. case 29:
  4979. *index = 29;
  4980. port_id = SLIMBUS_7_RX;
  4981. break;
  4982. case 30:
  4983. *index = 30;
  4984. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  4985. break;
  4986. case 31:
  4987. *index = 31;
  4988. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4989. break;
  4990. case 32:
  4991. *index = 32;
  4992. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4993. break;
  4994. case 33:
  4995. *index = 33;
  4996. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  4997. break;
  4998. case 34:
  4999. *index = 34;
  5000. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5001. break;
  5002. case 35:
  5003. *index = 35;
  5004. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5005. break;
  5006. case 36:
  5007. *index = 36;
  5008. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5009. break;
  5010. case 37:
  5011. *index = 37;
  5012. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5013. break;
  5014. default:
  5015. *index = 0; /* NONE */
  5016. pr_err("%s: Invalid value %d\n", __func__, value);
  5017. port_id = AFE_PORT_INVALID;
  5018. break;
  5019. }
  5020. return port_id;
  5021. }
  5022. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5023. struct snd_ctl_elem_value *ucontrol)
  5024. {
  5025. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5026. mutex_lock(&routing_lock);
  5027. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5028. mutex_unlock(&routing_lock);
  5029. return 0;
  5030. }
  5031. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5032. struct snd_ctl_elem_value *ucontrol)
  5033. {
  5034. int value = ucontrol->value.integer.value[0];
  5035. mutex_lock(&routing_lock);
  5036. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5037. &afe_loopback_tx_port_index);
  5038. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5039. __func__, afe_loopback_tx_port_index);
  5040. mutex_unlock(&routing_lock);
  5041. return 0;
  5042. }
  5043. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5044. "32000", "44100", "48000", "96000", "192000", "384000"};
  5045. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5046. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5047. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5048. ec_ref_bit_format_text),
  5049. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5050. };
  5051. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5052. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5053. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5054. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5055. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5056. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5057. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5058. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5059. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5060. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5061. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5062. "DISPLAY_PORT1",
  5063. };
  5064. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5065. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5066. };
  5067. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5068. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5069. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5070. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5071. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5072. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5073. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5074. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5075. msm_route_ec_ref_params_enum[0],
  5076. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5077. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5078. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5079. msm_ec_ref_chmixer_weights_put),
  5080. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5081. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5082. msm_ec_ref_chmixer_weights_put),
  5083. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5084. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5085. msm_ec_ref_chmixer_weights_put),
  5086. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5087. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5088. msm_ec_ref_chmixer_weights_put),
  5089. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5090. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5091. msm_ec_ref_chmixer_weights_put),
  5092. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5093. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5094. msm_ec_ref_chmixer_weights_put),
  5095. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5096. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5097. };
  5098. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5099. struct snd_ctl_elem_value *ucontrol)
  5100. {
  5101. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5102. mutex_lock(&routing_lock);
  5103. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5104. mutex_unlock(&routing_lock);
  5105. return 0;
  5106. }
  5107. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5108. struct snd_ctl_elem_value *ucontrol)
  5109. {
  5110. int value = ucontrol->value.integer.value[0];
  5111. struct snd_soc_dapm_widget *widget =
  5112. snd_soc_dapm_kcontrol_widget(kcontrol);
  5113. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5114. struct snd_soc_dapm_update *update = NULL;
  5115. mutex_lock(&routing_lock);
  5116. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5117. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5118. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5119. __func__, msm_route_ec_ref_rx);
  5120. mutex_unlock(&routing_lock);
  5121. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5122. msm_route_ec_ref_rx, e, update);
  5123. return 0;
  5124. }
  5125. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5126. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5127. msm_route_ec_ref_rx_enum[0],
  5128. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5129. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5130. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5131. msm_route_ec_ref_rx_enum[0],
  5132. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5133. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5134. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5135. msm_route_ec_ref_rx_enum[0],
  5136. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5137. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5138. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5139. msm_route_ec_ref_rx_enum[0],
  5140. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5141. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5142. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5143. msm_route_ec_ref_rx_enum[0],
  5144. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5145. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5146. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5147. msm_route_ec_ref_rx_enum[0],
  5148. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5149. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5150. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5151. msm_route_ec_ref_rx_enum[0],
  5152. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5153. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5154. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5155. msm_route_ec_ref_rx_enum[0],
  5156. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5157. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5158. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5159. msm_route_ec_ref_rx_enum[0],
  5160. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5161. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5162. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5163. msm_route_ec_ref_rx_enum[0],
  5164. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5165. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5166. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5167. msm_route_ec_ref_rx_enum[0],
  5168. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5169. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5170. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5171. msm_route_ec_ref_rx_enum[0],
  5172. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5173. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5174. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5175. msm_route_ec_ref_rx_enum[0],
  5176. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5177. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5178. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5179. msm_route_ec_ref_rx_enum[0],
  5180. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5181. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5182. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5183. msm_route_ec_ref_rx_enum[0],
  5184. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5185. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5186. struct snd_ctl_elem_value *ucontrol)
  5187. {
  5188. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5189. mutex_lock(&routing_lock);
  5190. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5191. mutex_unlock(&routing_lock);
  5192. return 0;
  5193. }
  5194. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5195. struct snd_ctl_elem_value *ucontrol)
  5196. {
  5197. struct snd_soc_dapm_widget *widget =
  5198. snd_soc_dapm_kcontrol_widget(kcontrol);
  5199. int mux = ucontrol->value.enumerated.item[0];
  5200. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5201. int ret = 1;
  5202. bool state = true;
  5203. uint16_t ext_ec_ref_port_id;
  5204. struct snd_soc_dapm_update *update = NULL;
  5205. if (mux >= e->items) {
  5206. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5207. return -EINVAL;
  5208. }
  5209. mutex_lock(&routing_lock);
  5210. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5211. switch (msm_route_ext_ec_ref) {
  5212. case EXT_EC_REF_PRI_MI2S_TX:
  5213. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5214. break;
  5215. case EXT_EC_REF_SEC_MI2S_TX:
  5216. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5217. break;
  5218. case EXT_EC_REF_TERT_MI2S_TX:
  5219. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5220. break;
  5221. case EXT_EC_REF_QUAT_MI2S_TX:
  5222. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5223. break;
  5224. case EXT_EC_REF_QUIN_MI2S_TX:
  5225. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5226. break;
  5227. case EXT_EC_REF_SLIM_1_TX:
  5228. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5229. break;
  5230. case EXT_EC_REF_PRI_TDM_TX:
  5231. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5232. break;
  5233. case EXT_EC_REF_SEC_TDM_TX:
  5234. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5235. break;
  5236. case EXT_EC_REF_NONE:
  5237. default:
  5238. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5239. state = false;
  5240. break;
  5241. }
  5242. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5243. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5244. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5245. mutex_unlock(&routing_lock);
  5246. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5247. update);
  5248. } else {
  5249. ret = -EINVAL;
  5250. mutex_unlock(&routing_lock);
  5251. }
  5252. return ret;
  5253. }
  5254. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5255. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5256. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5257. "SLIM_1_TX", "PRI_TDM_TX",
  5258. "SEC_TDM_TX"};
  5259. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5260. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5261. };
  5262. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5263. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5264. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5265. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_PRI_I2S_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_PRI_I2S_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_PRI_I2S_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_PRI_I2S_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_PRI_I2S_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_PRI_I2S_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_PRI_I2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_PRI_I2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_PRI_I2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_PRI_I2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_PRI_I2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_PRI_I2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_PRI_I2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_PRI_I2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_PRI_I2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_PRI_I2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_PRI_I2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_PRI_I2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_PRI_I2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_PRI_I2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. };
  5359. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5360. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SEC_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_SEC_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_SEC_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_SEC_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_SEC_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_SEC_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_SEC_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_SEC_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SEC_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SEC_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SEC_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SEC_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SEC_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SEC_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SEC_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SEC_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SEC_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SEC_I2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SEC_I2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SEC_I2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. };
  5453. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5454. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. };
  5547. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5548. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. };
  5641. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5642. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. };
  5711. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5712. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. };
  5805. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5806. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. };
  5899. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5900. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_MI2S_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_MI2S_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_MI2S_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_MI2S_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_MI2S_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_MI2S_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. };
  5993. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  5994. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. };
  6087. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. };
  6181. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6182. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. };
  6271. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6272. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. };
  6357. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6358. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. };
  6363. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6364. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. };
  6457. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6458. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. };
  6551. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6552. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. };
  6617. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6618. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. };
  6683. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6684. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. };
  6773. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. };
  6863. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6864. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_HDMI_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_HDMI_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_HDMI_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_HDMI_RX,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_HDMI_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_HDMI_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_HDMI_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_HDMI_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_HDMI_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_HDMI_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_HDMI_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_HDMI_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_HDMI_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_HDMI_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_HDMI_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_HDMI_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_HDMI_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_HDMI_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_HDMI_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_HDMI_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_HDMI_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_HDMI_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_HDMI_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. };
  6957. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6958. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. };
  7027. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7028. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. };
  7097. /* incall music delivery mixer */
  7098. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. };
  7116. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7117. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. };
  7134. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7135. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. };
  7152. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. };
  7222. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7223. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. };
  7292. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7293. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. };
  7362. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. };
  7432. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. };
  7502. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. };
  7572. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. };
  7642. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. };
  7712. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7713. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. };
  7782. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7783. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. };
  7852. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7853. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. };
  7922. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. };
  7992. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  7993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. };
  8062. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_USB_RX,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_USB_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_USB_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_USB_RX,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_USB_RX,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_USB_RX,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_USB_RX,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_USB_RX,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_USB_RX,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_USB_RX,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_USB_RX,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_USB_RX,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_USB_RX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_USB_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_USB_RX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_USB_RX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_USB_RX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. };
  8132. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8133. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. };
  8226. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. };
  8296. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_INT_FM_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_INT_FM_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_INT_FM_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_INT_FM_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_INT_FM_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_INT_FM_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_INT_FM_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_INT_FM_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_INT_FM_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_FM_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_FM_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INT_FM_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INT_FM_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_FM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_FM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_FM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_FM_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_FM_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_FM_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_FM_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_INT_FM_RX,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_INT_FM_RX,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_INT_FM_RX,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. };
  8390. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8391. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_AFE_PCM_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_AFE_PCM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_AFE_PCM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_AFE_PCM_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_AFE_PCM_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_AFE_PCM_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_AFE_PCM_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_AFE_PCM_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_AFE_PCM_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_AFE_PCM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_AFE_PCM_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_AFE_PCM_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_AFE_PCM_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_AFE_PCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_AFE_PCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_AFE_PCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_AFE_PCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_AFE_PCM_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AFE_PCM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_AFE_PCM_RX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_AFE_PCM_RX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_AFE_PCM_RX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. };
  8484. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8485. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_AUXPCM_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_AUXPCM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_AUXPCM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_AUXPCM_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_AUXPCM_RX,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_AUXPCM_RX,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_AUXPCM_RX,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_AUXPCM_RX,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_AUXPCM_RX,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_AUXPCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_AUXPCM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_AUXPCM_RX,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_AUXPCM_RX,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_AUXPCM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_AUXPCM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_AUXPCM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_AUXPCM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_AUXPCM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AUXPCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_AUXPCM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_AUXPCM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_AUXPCM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. };
  8582. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. };
  8680. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8681. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. };
  8750. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8751. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. };
  8820. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8821. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. };
  8890. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8891. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. };
  8960. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8961. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. };
  9034. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. };
  9108. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9109. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. };
  9182. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9183. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. };
  9256. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9257. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. };
  9322. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9323. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. };
  9396. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9397. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. };
  9470. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9471. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. };
  9544. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9545. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. };
  9618. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. };
  9684. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9685. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. };
  9758. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9759. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. };
  9824. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. };
  9898. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9899. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. };
  9972. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9973. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. };
  10046. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. };
  10120. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10121. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. };
  10198. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10199. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. };
  10264. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. };
  10342. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10343. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. };
  10420. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10421. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. };
  10498. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. };
  10576. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10577. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. };
  10642. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. };
  10720. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10721. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. };
  10798. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10799. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. };
  10876. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  10877. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. };
  10950. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  10951. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10997. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10998. msm_routing_put_audio_mixer),
  10999. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11001. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11002. msm_routing_put_audio_mixer),
  11003. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11005. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11006. msm_routing_put_audio_mixer),
  11007. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11009. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11010. msm_routing_put_audio_mixer),
  11011. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. };
  11016. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11017. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11074. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11075. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11076. msm_routing_put_audio_mixer),
  11077. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11078. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11080. msm_routing_put_audio_mixer),
  11081. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11082. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11083. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11084. msm_routing_put_audio_mixer),
  11085. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11087. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11088. msm_routing_put_audio_mixer),
  11089. };
  11090. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11091. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. };
  11164. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11165. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11216. msm_routing_put_audio_mixer),
  11217. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11218. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11219. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11220. msm_routing_put_audio_mixer),
  11221. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11222. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11223. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11224. msm_routing_put_audio_mixer),
  11225. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11226. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11228. msm_routing_put_audio_mixer),
  11229. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11230. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11231. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11232. msm_routing_put_audio_mixer),
  11233. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11234. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11235. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11236. msm_routing_put_audio_mixer),
  11237. };
  11238. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11239. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_PRI_I2S_TX,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_MI2S_TX,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_AUXPCM_TX,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11288. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11289. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11290. msm_routing_put_audio_mixer),
  11291. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11292. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11293. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11294. msm_routing_put_audio_mixer),
  11295. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11297. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11298. msm_routing_put_audio_mixer),
  11299. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11300. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11301. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11302. msm_routing_put_audio_mixer),
  11303. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11304. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11306. msm_routing_put_audio_mixer),
  11307. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_INT_FM_TX,
  11309. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11310. msm_routing_put_audio_mixer),
  11311. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11312. MSM_BACKEND_DAI_AFE_PCM_TX,
  11313. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11314. msm_routing_put_audio_mixer),
  11315. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11316. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11317. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11318. msm_routing_put_audio_mixer),
  11319. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11320. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11321. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11322. msm_routing_put_audio_mixer),
  11323. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11326. msm_routing_put_audio_mixer),
  11327. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11329. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11330. msm_routing_put_audio_mixer),
  11331. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11334. msm_routing_put_audio_mixer),
  11335. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11337. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11338. msm_routing_put_audio_mixer),
  11339. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11341. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11342. msm_routing_put_audio_mixer),
  11343. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11345. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11346. msm_routing_put_audio_mixer),
  11347. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11349. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11350. msm_routing_put_audio_mixer),
  11351. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11353. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11354. msm_routing_put_audio_mixer),
  11355. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11358. msm_routing_put_audio_mixer),
  11359. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11429. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11430. msm_routing_put_audio_mixer),
  11431. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11436. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11437. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11438. msm_routing_put_audio_mixer),
  11439. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11441. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11442. msm_routing_put_audio_mixer),
  11443. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11444. MSM_BACKEND_DAI_USB_TX,
  11445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11446. msm_routing_put_audio_mixer),
  11447. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11448. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11449. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11450. msm_routing_put_audio_mixer),
  11451. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11452. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11454. msm_routing_put_audio_mixer),
  11455. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11456. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11458. msm_routing_put_audio_mixer),
  11459. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11461. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11462. msm_routing_put_audio_mixer),
  11463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11465. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11466. msm_routing_put_audio_mixer),
  11467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11469. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11470. msm_routing_put_audio_mixer),
  11471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11474. msm_routing_put_audio_mixer),
  11475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11477. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11478. msm_routing_put_audio_mixer),
  11479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11481. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11482. msm_routing_put_audio_mixer),
  11483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11485. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11486. msm_routing_put_audio_mixer),
  11487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11490. msm_routing_put_audio_mixer),
  11491. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. };
  11512. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11513. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_INT_FM_TX,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_MI2S_TX,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_USB_TX,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11710. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11711. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11712. msm_routing_put_audio_mixer),
  11713. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11716. msm_routing_put_audio_mixer),
  11717. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11718. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11720. msm_routing_put_audio_mixer),
  11721. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11722. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11724. msm_routing_put_audio_mixer),
  11725. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11726. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11727. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11728. msm_routing_put_audio_mixer),
  11729. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11730. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11731. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11732. msm_routing_put_audio_mixer),
  11733. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11735. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11736. msm_routing_put_audio_mixer),
  11737. };
  11738. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11739. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_INT_FM_TX,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_MI2S_TX,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_AFE_PCM_TX,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_AUXPCM_TX,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11937. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11938. msm_routing_put_audio_mixer),
  11939. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11940. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11941. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11942. msm_routing_put_audio_mixer),
  11943. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11944. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11945. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11946. msm_routing_put_audio_mixer),
  11947. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11948. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11949. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11950. msm_routing_put_audio_mixer),
  11951. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11952. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11953. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11954. msm_routing_put_audio_mixer),
  11955. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11956. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11957. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11958. msm_routing_put_audio_mixer),
  11959. };
  11960. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  11961. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_INT_FM_TX,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_AFE_PCM_TX,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_USB_TX,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12159. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12160. msm_routing_put_audio_mixer),
  12161. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. };
  12174. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12175. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_INT_FM_TX,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_MI2S_TX,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_AFE_PCM_TX,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_AUXPCM_TX,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12289. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12290. msm_routing_put_audio_mixer),
  12291. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_USB_TX,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12374. msm_routing_put_audio_mixer),
  12375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12392. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12393. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12394. msm_routing_put_audio_mixer),
  12395. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12396. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12397. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12398. msm_routing_put_audio_mixer),
  12399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12401. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12402. msm_routing_put_audio_mixer),
  12403. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12404. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12405. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12406. msm_routing_put_audio_mixer),
  12407. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12410. msm_routing_put_audio_mixer),
  12411. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12412. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12414. msm_routing_put_audio_mixer),
  12415. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12416. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12417. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12418. msm_routing_put_audio_mixer),
  12419. };
  12420. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12421. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_INT_FM_TX,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_AUXPCM_TX,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_USB_TX,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12618. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12619. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12620. msm_routing_put_audio_mixer),
  12621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12624. msm_routing_put_audio_mixer),
  12625. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12626. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12627. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12628. msm_routing_put_audio_mixer),
  12629. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12630. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12631. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12632. msm_routing_put_audio_mixer),
  12633. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12634. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12635. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12636. msm_routing_put_audio_mixer),
  12637. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12638. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12639. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12640. msm_routing_put_audio_mixer),
  12641. };
  12642. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12643. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_INT_FM_TX,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_AFE_PCM_TX,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12742. msm_routing_put_audio_mixer),
  12743. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12745. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12746. msm_routing_put_audio_mixer),
  12747. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12749. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12750. msm_routing_put_audio_mixer),
  12751. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12782. msm_routing_put_audio_mixer),
  12783. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12785. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12786. msm_routing_put_audio_mixer),
  12787. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_USB_TX,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. };
  12868. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  12869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_INT_FM_TX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_AFE_PCM_TX,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12939. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_USB_TX,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_MI2S_TX,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_AUXPCM_TX,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13032. msm_routing_put_audio_mixer),
  13033. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13040. msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13045. msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13050. msm_routing_get_audio_mixer,
  13051. msm_routing_put_audio_mixer),
  13052. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13053. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13054. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13055. msm_routing_get_audio_mixer,
  13056. msm_routing_put_audio_mixer),
  13057. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13060. msm_routing_get_audio_mixer,
  13061. msm_routing_put_audio_mixer),
  13062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13064. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13065. msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. };
  13084. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13085. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13086. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13087. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13088. msm_routing_put_audio_mixer),
  13089. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13090. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13091. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13092. msm_routing_put_audio_mixer),
  13093. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13094. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13095. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13096. msm_routing_put_audio_mixer),
  13097. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_INT_FM_TX,
  13099. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13100. msm_routing_put_audio_mixer),
  13101. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13103. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13104. msm_routing_put_audio_mixer),
  13105. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_AFE_PCM_TX,
  13107. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13108. msm_routing_put_audio_mixer),
  13109. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13111. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13112. msm_routing_put_audio_mixer),
  13113. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13115. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13116. msm_routing_put_audio_mixer),
  13117. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13118. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13119. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13120. msm_routing_put_audio_mixer),
  13121. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13123. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13124. msm_routing_put_audio_mixer),
  13125. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. };
  13246. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13247. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13248. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13249. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13250. msm_routing_put_audio_mixer),
  13251. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13252. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13258. msm_routing_put_audio_mixer),
  13259. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_INT_FM_TX,
  13261. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13262. msm_routing_put_audio_mixer),
  13263. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13266. msm_routing_put_audio_mixer),
  13267. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_AFE_PCM_TX,
  13269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13270. msm_routing_put_audio_mixer),
  13271. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13273. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13274. msm_routing_put_audio_mixer),
  13275. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13277. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13278. msm_routing_put_audio_mixer),
  13279. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13281. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13282. msm_routing_put_audio_mixer),
  13283. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13306. msm_routing_put_audio_mixer),
  13307. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13309. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13310. msm_routing_put_audio_mixer),
  13311. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13313. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13314. msm_routing_put_audio_mixer),
  13315. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13317. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_USB_TX,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_MI2S_TX,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13326. msm_routing_put_audio_mixer),
  13327. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_AUXPCM_TX,
  13329. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13330. msm_routing_put_audio_mixer),
  13331. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13333. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13334. msm_routing_put_audio_mixer),
  13335. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13338. msm_routing_put_audio_mixer),
  13339. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13342. msm_routing_put_audio_mixer),
  13343. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13345. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13346. msm_routing_put_audio_mixer),
  13347. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13382. msm_routing_get_audio_mixer,
  13383. msm_routing_put_audio_mixer),
  13384. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13385. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13386. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13387. msm_routing_get_audio_mixer,
  13388. msm_routing_put_audio_mixer),
  13389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13391. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13392. msm_routing_get_audio_mixer,
  13393. msm_routing_put_audio_mixer),
  13394. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13395. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13396. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13397. msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13402. msm_routing_get_audio_mixer,
  13403. msm_routing_put_audio_mixer),
  13404. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13405. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13406. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13407. msm_routing_get_audio_mixer,
  13408. msm_routing_put_audio_mixer),
  13409. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13412. msm_routing_put_audio_mixer),
  13413. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13415. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13416. msm_routing_put_audio_mixer),
  13417. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13419. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13420. msm_routing_put_audio_mixer),
  13421. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13422. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13423. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13424. msm_routing_put_audio_mixer),
  13425. };
  13426. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13427. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_INT_FM_TX,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_AFE_PCM_TX,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13498. msm_routing_get_audio_mixer,
  13499. msm_routing_put_audio_mixer),
  13500. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13501. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13502. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13503. msm_routing_get_audio_mixer,
  13504. msm_routing_put_audio_mixer),
  13505. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13507. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13508. msm_routing_get_audio_mixer,
  13509. msm_routing_put_audio_mixer),
  13510. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13511. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13512. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13513. msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13518. msm_routing_get_audio_mixer,
  13519. msm_routing_put_audio_mixer),
  13520. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13521. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13522. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13523. msm_routing_get_audio_mixer,
  13524. msm_routing_put_audio_mixer),
  13525. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13527. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13528. msm_routing_put_audio_mixer),
  13529. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13531. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13532. msm_routing_put_audio_mixer),
  13533. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13535. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13536. msm_routing_put_audio_mixer),
  13537. };
  13538. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13539. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_INT_FM_TX,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_AFE_PCM_TX,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13592. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13593. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13594. msm_routing_put_audio_mixer),
  13595. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13596. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13597. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13598. msm_routing_put_audio_mixer),
  13599. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13600. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13602. msm_routing_put_audio_mixer),
  13603. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13604. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13614. msm_routing_get_audio_mixer,
  13615. msm_routing_put_audio_mixer),
  13616. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13618. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13619. msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13624. msm_routing_get_audio_mixer,
  13625. msm_routing_put_audio_mixer),
  13626. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13628. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13629. msm_routing_get_audio_mixer,
  13630. msm_routing_put_audio_mixer),
  13631. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13632. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13633. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13634. msm_routing_get_audio_mixer,
  13635. msm_routing_put_audio_mixer),
  13636. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13638. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13639. msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. };
  13654. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13655. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13656. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13657. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13658. msm_routing_put_audio_mixer),
  13659. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13660. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13661. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13662. msm_routing_put_audio_mixer),
  13663. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13664. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13665. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13666. msm_routing_put_audio_mixer),
  13667. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13668. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13669. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13670. msm_routing_put_audio_mixer),
  13671. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13672. MSM_BACKEND_DAI_INT_FM_TX,
  13673. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13674. msm_routing_put_audio_mixer),
  13675. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13676. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13677. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13678. msm_routing_put_audio_mixer),
  13679. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13680. MSM_BACKEND_DAI_AFE_PCM_TX,
  13681. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13682. msm_routing_put_audio_mixer),
  13683. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13684. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13685. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13686. msm_routing_put_audio_mixer),
  13687. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13688. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13689. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13690. msm_routing_put_audio_mixer),
  13691. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13692. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13693. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13694. msm_routing_put_audio_mixer),
  13695. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13696. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13697. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13698. msm_routing_put_audio_mixer),
  13699. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13700. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13701. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13706. msm_routing_put_audio_mixer),
  13707. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13708. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13709. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13710. msm_routing_put_audio_mixer),
  13711. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13712. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13713. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13714. msm_routing_put_audio_mixer),
  13715. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13716. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13717. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13718. msm_routing_put_audio_mixer),
  13719. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13720. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13721. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13730. msm_routing_get_audio_mixer,
  13731. msm_routing_put_audio_mixer),
  13732. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13734. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13735. msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13740. msm_routing_get_audio_mixer,
  13741. msm_routing_put_audio_mixer),
  13742. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13744. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13745. msm_routing_get_audio_mixer,
  13746. msm_routing_put_audio_mixer),
  13747. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13748. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13749. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13750. msm_routing_get_audio_mixer,
  13751. msm_routing_put_audio_mixer),
  13752. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13754. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13755. msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13759. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. };
  13770. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13771. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13772. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13773. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13774. msm_routing_put_audio_mixer),
  13775. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13776. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13777. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13778. msm_routing_put_audio_mixer),
  13779. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13780. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13781. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13782. msm_routing_put_audio_mixer),
  13783. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13784. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13785. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13786. msm_routing_put_audio_mixer),
  13787. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13788. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13789. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13790. msm_routing_put_audio_mixer),
  13791. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13792. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13793. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13794. msm_routing_put_audio_mixer),
  13795. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13796. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13797. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13798. msm_routing_put_audio_mixer),
  13799. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13800. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13801. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13802. msm_routing_put_audio_mixer),
  13803. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13804. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13805. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13806. msm_routing_put_audio_mixer),
  13807. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13808. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13809. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13810. msm_routing_put_audio_mixer),
  13811. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13812. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13813. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13814. msm_routing_put_audio_mixer),
  13815. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13816. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13817. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13853. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13854. msm_routing_put_audio_mixer),
  13855. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13857. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13881. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13882. msm_routing_put_audio_mixer),
  13883. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13885. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13886. msm_routing_put_audio_mixer),
  13887. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13941. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13942. msm_routing_put_audio_mixer),
  13943. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13945. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13946. msm_routing_put_audio_mixer),
  13947. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13949. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. };
  13952. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  13953. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13954. MSM_BACKEND_DAI_AUXPCM_TX,
  13955. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13956. msm_routing_put_audio_mixer),
  13957. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13958. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13959. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13960. msm_routing_put_audio_mixer),
  13961. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13962. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13963. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13964. msm_routing_put_audio_mixer),
  13965. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13966. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13967. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13968. msm_routing_put_audio_mixer),
  13969. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13971. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13972. msm_routing_put_audio_mixer),
  13973. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13975. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13976. msm_routing_put_audio_mixer),
  13977. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13979. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13980. msm_routing_put_audio_mixer),
  13981. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13982. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13983. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13984. msm_routing_put_audio_mixer),
  13985. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13987. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13988. msm_routing_put_audio_mixer),
  13989. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14060. msm_routing_put_audio_mixer),
  14061. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14063. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14064. msm_routing_put_audio_mixer),
  14065. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14067. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14068. msm_routing_put_audio_mixer),
  14069. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14071. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14072. msm_routing_put_audio_mixer),
  14073. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14075. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14080. msm_routing_put_audio_mixer),
  14081. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14082. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14083. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14084. msm_routing_put_audio_mixer),
  14085. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14087. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14088. msm_routing_put_audio_mixer),
  14089. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14091. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14092. msm_routing_put_audio_mixer),
  14093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14095. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14096. msm_routing_put_audio_mixer),
  14097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14099. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14100. msm_routing_put_audio_mixer),
  14101. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14107. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14108. msm_routing_put_audio_mixer),
  14109. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. };
  14118. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14119. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14121. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14122. msm_routing_put_audio_mixer),
  14123. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14133. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14134. msm_routing_put_audio_mixer),
  14135. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14137. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14138. msm_routing_put_audio_mixer),
  14139. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14141. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14142. msm_routing_put_audio_mixer),
  14143. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14145. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14146. msm_routing_put_audio_mixer),
  14147. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14149. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14150. msm_routing_put_audio_mixer),
  14151. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14165. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14170. msm_routing_put_audio_mixer),
  14171. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14173. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14190. msm_routing_put_audio_mixer),
  14191. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14193. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14197. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14198. msm_routing_put_audio_mixer),
  14199. };
  14200. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14201. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. };
  14258. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14259. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14260. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14261. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14262. msm_routing_put_audio_mixer),
  14263. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14265. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14266. msm_routing_put_audio_mixer),
  14267. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14269. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14270. msm_routing_put_audio_mixer),
  14271. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14272. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14273. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14274. msm_routing_put_audio_mixer),
  14275. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_INT_FM_TX,
  14277. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14278. msm_routing_put_audio_mixer),
  14279. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14281. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14282. msm_routing_put_audio_mixer),
  14283. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_AFE_PCM_TX,
  14285. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14286. msm_routing_put_audio_mixer),
  14287. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14289. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14290. msm_routing_put_audio_mixer),
  14291. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14293. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14294. msm_routing_put_audio_mixer),
  14295. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14297. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14298. msm_routing_put_audio_mixer),
  14299. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14301. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14302. msm_routing_put_audio_mixer),
  14303. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14305. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14310. msm_routing_put_audio_mixer),
  14311. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14313. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14314. msm_routing_put_audio_mixer),
  14315. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14316. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14317. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14318. msm_routing_put_audio_mixer),
  14319. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14320. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14321. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14322. msm_routing_put_audio_mixer),
  14323. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14325. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14326. msm_routing_put_audio_mixer),
  14327. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14328. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14329. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14330. msm_routing_put_audio_mixer),
  14331. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14332. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14333. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14334. msm_routing_get_audio_mixer,
  14335. msm_routing_put_audio_mixer),
  14336. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14338. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14339. msm_routing_get_audio_mixer,
  14340. msm_routing_put_audio_mixer),
  14341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14343. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14344. msm_routing_get_audio_mixer,
  14345. msm_routing_put_audio_mixer),
  14346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14347. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14348. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14349. msm_routing_get_audio_mixer,
  14350. msm_routing_put_audio_mixer),
  14351. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14352. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14353. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14354. msm_routing_get_audio_mixer,
  14355. msm_routing_put_audio_mixer),
  14356. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14357. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14358. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14359. msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14363. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14368. msm_routing_put_audio_mixer),
  14369. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14371. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14372. msm_routing_put_audio_mixer),
  14373. };
  14374. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14375. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14376. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14377. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14378. msm_routing_put_audio_mixer),
  14379. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14380. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14381. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14382. msm_routing_put_audio_mixer),
  14383. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14384. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14385. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14386. msm_routing_put_audio_mixer),
  14387. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14388. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14389. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14390. msm_routing_put_audio_mixer),
  14391. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14392. MSM_BACKEND_DAI_INT_FM_TX,
  14393. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14394. msm_routing_put_audio_mixer),
  14395. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14396. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14397. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14398. msm_routing_put_audio_mixer),
  14399. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_AFE_PCM_TX,
  14401. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14402. msm_routing_put_audio_mixer),
  14403. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14405. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14410. msm_routing_put_audio_mixer),
  14411. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14413. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14414. msm_routing_put_audio_mixer),
  14415. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14417. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14418. msm_routing_put_audio_mixer),
  14419. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14421. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14422. msm_routing_put_audio_mixer),
  14423. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14425. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14426. msm_routing_put_audio_mixer),
  14427. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14429. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14430. msm_routing_put_audio_mixer),
  14431. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14433. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14434. msm_routing_put_audio_mixer),
  14435. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14437. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14438. msm_routing_put_audio_mixer),
  14439. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14441. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14442. msm_routing_put_audio_mixer),
  14443. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14444. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14445. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14446. msm_routing_put_audio_mixer),
  14447. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14449. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14450. msm_routing_get_audio_mixer,
  14451. msm_routing_put_audio_mixer),
  14452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14454. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14455. msm_routing_get_audio_mixer,
  14456. msm_routing_put_audio_mixer),
  14457. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14460. msm_routing_get_audio_mixer,
  14461. msm_routing_put_audio_mixer),
  14462. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14464. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14465. msm_routing_get_audio_mixer,
  14466. msm_routing_put_audio_mixer),
  14467. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14468. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14469. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14470. msm_routing_get_audio_mixer,
  14471. msm_routing_put_audio_mixer),
  14472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14474. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14475. msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14479. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. };
  14490. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14491. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14493. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14494. msm_routing_put_audio_mixer),
  14495. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14496. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14497. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14498. msm_routing_put_audio_mixer),
  14499. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14500. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14501. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14502. msm_routing_put_audio_mixer),
  14503. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14504. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14505. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14506. msm_routing_put_audio_mixer),
  14507. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14508. MSM_BACKEND_DAI_INT_FM_TX,
  14509. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14510. msm_routing_put_audio_mixer),
  14511. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14512. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14513. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14514. msm_routing_put_audio_mixer),
  14515. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14516. MSM_BACKEND_DAI_AFE_PCM_TX,
  14517. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14518. msm_routing_put_audio_mixer),
  14519. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14520. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14521. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14522. msm_routing_put_audio_mixer),
  14523. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14524. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14525. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14526. msm_routing_put_audio_mixer),
  14527. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14528. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14529. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14530. msm_routing_put_audio_mixer),
  14531. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14532. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14533. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14534. msm_routing_put_audio_mixer),
  14535. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14536. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14537. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14542. msm_routing_put_audio_mixer),
  14543. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14544. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14545. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14546. msm_routing_put_audio_mixer),
  14547. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14548. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14549. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14550. msm_routing_put_audio_mixer),
  14551. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14552. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14553. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14554. msm_routing_put_audio_mixer),
  14555. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14556. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14557. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14562. msm_routing_get_audio_mixer,
  14563. msm_routing_put_audio_mixer),
  14564. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14566. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14567. msm_routing_get_audio_mixer,
  14568. msm_routing_put_audio_mixer),
  14569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14571. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14572. msm_routing_get_audio_mixer,
  14573. msm_routing_put_audio_mixer),
  14574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14576. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14577. msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14582. msm_routing_get_audio_mixer,
  14583. msm_routing_put_audio_mixer),
  14584. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14586. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14587. msm_routing_get_audio_mixer,
  14588. msm_routing_put_audio_mixer),
  14589. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14591. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14592. msm_routing_put_audio_mixer),
  14593. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14595. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14596. msm_routing_put_audio_mixer),
  14597. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14599. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14600. msm_routing_put_audio_mixer),
  14601. };
  14602. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14603. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_PRI_I2S_RX,
  14605. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14606. msm_routing_put_voice_mixer),
  14607. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_PRI_I2S_RX,
  14609. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14610. msm_routing_put_voice_mixer),
  14611. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14612. MSM_BACKEND_DAI_PRI_I2S_RX,
  14613. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14614. msm_routing_put_voice_mixer),
  14615. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14616. MSM_BACKEND_DAI_PRI_I2S_RX,
  14617. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14618. msm_routing_put_voice_mixer),
  14619. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14620. MSM_BACKEND_DAI_PRI_I2S_RX,
  14621. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14622. msm_routing_put_voice_mixer),
  14623. };
  14624. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14625. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_SEC_I2S_RX,
  14627. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14628. msm_routing_put_voice_mixer),
  14629. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_SEC_I2S_RX,
  14631. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14632. msm_routing_put_voice_mixer),
  14633. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_SEC_I2S_RX,
  14635. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14636. msm_routing_put_voice_mixer),
  14637. };
  14638. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14639. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14640. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14641. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14642. msm_routing_put_voice_mixer),
  14643. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14644. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14645. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14646. msm_routing_put_voice_mixer),
  14647. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14648. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14649. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14650. msm_routing_put_voice_mixer),
  14651. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14652. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14653. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14654. msm_routing_put_voice_mixer),
  14655. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14657. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14658. msm_routing_put_voice_mixer),
  14659. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14660. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14661. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14662. msm_routing_put_voice_mixer),
  14663. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14664. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14665. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14666. msm_routing_put_voice_mixer),
  14667. };
  14668. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14669. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14671. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14672. msm_routing_put_voice_mixer),
  14673. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14675. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14676. msm_routing_put_voice_mixer),
  14677. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14679. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14680. msm_routing_put_voice_mixer),
  14681. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14683. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14684. msm_routing_put_voice_mixer),
  14685. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14687. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14688. msm_routing_put_voice_mixer),
  14689. };
  14690. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14691. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14692. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14693. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14694. msm_routing_put_voice_mixer),
  14695. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14697. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14698. msm_routing_put_voice_mixer),
  14699. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14700. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14701. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14702. msm_routing_put_voice_mixer),
  14703. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14704. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14705. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14706. msm_routing_put_voice_mixer),
  14707. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14708. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14709. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14710. msm_routing_put_voice_mixer),
  14711. };
  14712. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14713. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_USB_RX,
  14715. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14716. msm_routing_put_voice_mixer),
  14717. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_USB_RX,
  14719. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14720. msm_routing_put_voice_mixer),
  14721. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_USB_RX,
  14723. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14724. msm_routing_put_voice_mixer),
  14725. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_USB_RX,
  14727. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14728. msm_routing_put_voice_mixer),
  14729. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_USB_RX,
  14731. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14732. msm_routing_put_voice_mixer),
  14733. };
  14734. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14735. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14736. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14737. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14738. msm_routing_put_voice_mixer),
  14739. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14740. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14741. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14742. msm_routing_put_voice_mixer),
  14743. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14745. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14746. msm_routing_put_voice_mixer),
  14747. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14748. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14749. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14750. msm_routing_put_voice_mixer),
  14751. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14752. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14753. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14754. msm_routing_put_voice_mixer),
  14755. };
  14756. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14757. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14759. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14760. msm_routing_put_voice_mixer),
  14761. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14763. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14764. msm_routing_put_voice_mixer),
  14765. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14767. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14768. msm_routing_put_voice_mixer),
  14769. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14770. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14771. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14772. msm_routing_put_voice_mixer),
  14773. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14774. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14775. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14776. msm_routing_put_voice_mixer),
  14777. };
  14778. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14779. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14781. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14782. msm_routing_put_voice_mixer),
  14783. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14785. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14786. msm_routing_put_voice_mixer),
  14787. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14789. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14790. msm_routing_put_voice_mixer),
  14791. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14793. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14794. msm_routing_put_voice_mixer),
  14795. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14797. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14798. msm_routing_put_voice_mixer),
  14799. };
  14800. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14801. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_MI2S_RX,
  14803. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14804. msm_routing_put_voice_mixer),
  14805. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_MI2S_RX,
  14807. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14808. msm_routing_put_voice_mixer),
  14809. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_MI2S_RX,
  14811. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14812. msm_routing_put_voice_mixer),
  14813. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_MI2S_RX,
  14815. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14816. msm_routing_put_voice_mixer),
  14817. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_MI2S_RX,
  14819. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14820. msm_routing_put_voice_mixer),
  14821. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_MI2S_RX,
  14823. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14824. msm_routing_put_voice_mixer),
  14825. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_MI2S_RX,
  14827. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14828. msm_routing_put_voice_mixer),
  14829. };
  14830. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  14831. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14833. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14834. msm_routing_put_voice_mixer),
  14835. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14836. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14837. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14838. msm_routing_put_voice_mixer),
  14839. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14840. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14841. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14842. msm_routing_put_voice_mixer),
  14843. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14844. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14845. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14846. msm_routing_put_voice_mixer),
  14847. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14848. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14849. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14850. msm_routing_put_voice_mixer),
  14851. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14852. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14853. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14854. msm_routing_put_voice_mixer),
  14855. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14856. MSM_BACKEND_DAI_PRI_MI2S_RX,
  14857. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14858. msm_routing_put_voice_mixer),
  14859. };
  14860. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  14861. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14863. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14864. msm_routing_put_voice_mixer),
  14865. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14867. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14868. msm_routing_put_voice_mixer),
  14869. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14871. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14872. msm_routing_put_voice_mixer),
  14873. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14875. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14876. msm_routing_put_voice_mixer),
  14877. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14879. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14880. msm_routing_put_voice_mixer),
  14881. };
  14882. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  14883. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14885. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14886. msm_routing_put_voice_mixer),
  14887. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14888. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14889. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14890. msm_routing_put_voice_mixer),
  14891. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14892. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14893. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14894. msm_routing_put_voice_mixer),
  14895. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14896. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14897. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14898. msm_routing_put_voice_mixer),
  14899. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14901. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14902. msm_routing_put_voice_mixer),
  14903. };
  14904. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  14905. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14907. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14908. msm_routing_put_voice_mixer),
  14909. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14910. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14911. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14912. msm_routing_put_voice_mixer),
  14913. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14914. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14915. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14916. msm_routing_put_voice_mixer),
  14917. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14918. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14919. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14920. msm_routing_put_voice_mixer),
  14921. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14922. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14923. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14924. msm_routing_put_voice_mixer),
  14925. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14926. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14927. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14928. msm_routing_put_voice_mixer),
  14929. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14930. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  14931. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14932. msm_routing_put_voice_mixer),
  14933. };
  14934. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  14935. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14937. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14938. msm_routing_put_voice_mixer),
  14939. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14941. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14942. msm_routing_put_voice_mixer),
  14943. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14945. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14946. msm_routing_put_voice_mixer),
  14947. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14949. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14950. msm_routing_put_voice_mixer),
  14951. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14953. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14954. msm_routing_put_voice_mixer),
  14955. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14957. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14958. msm_routing_put_voice_mixer),
  14959. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  14961. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14962. msm_routing_put_voice_mixer),
  14963. };
  14964. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  14965. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14966. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14967. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14968. msm_routing_put_voice_mixer),
  14969. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14970. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14971. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14972. msm_routing_put_voice_stub_mixer),
  14973. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14974. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14975. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14976. msm_routing_put_voice_stub_mixer),
  14977. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14979. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14980. msm_routing_put_voice_mixer),
  14981. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14983. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14984. msm_routing_put_voice_mixer),
  14985. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14987. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14988. msm_routing_put_voice_mixer),
  14989. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  14991. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14992. msm_routing_put_voice_mixer),
  14993. };
  14994. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  14995. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  14997. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14998. msm_routing_put_voice_mixer),
  14999. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15001. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15002. msm_routing_put_voice_mixer),
  15003. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15005. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15006. msm_routing_put_voice_mixer),
  15007. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15009. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15010. msm_routing_put_voice_mixer),
  15011. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15013. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15014. msm_routing_put_voice_mixer),
  15015. };
  15016. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15017. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_AFE_PCM_RX,
  15019. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15020. msm_routing_put_voice_mixer),
  15021. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_AFE_PCM_RX,
  15023. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15024. msm_routing_put_voice_mixer),
  15025. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_AFE_PCM_RX,
  15027. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15028. msm_routing_put_voice_mixer),
  15029. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_AFE_PCM_RX,
  15031. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15032. msm_routing_put_voice_mixer),
  15033. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_AFE_PCM_RX,
  15035. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15036. msm_routing_put_voice_mixer),
  15037. };
  15038. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15039. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_AUXPCM_RX,
  15041. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15042. msm_routing_put_voice_mixer),
  15043. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_AUXPCM_RX,
  15045. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15046. msm_routing_put_voice_mixer),
  15047. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_AUXPCM_RX,
  15049. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15050. msm_routing_put_voice_mixer),
  15051. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_AUXPCM_RX,
  15053. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15054. msm_routing_put_voice_mixer),
  15055. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_AUXPCM_RX,
  15057. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15058. msm_routing_put_voice_mixer),
  15059. };
  15060. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15061. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15063. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15064. msm_routing_put_voice_mixer),
  15065. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15066. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15067. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15068. msm_routing_put_voice_mixer),
  15069. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15070. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15071. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15072. msm_routing_put_voice_mixer),
  15073. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15074. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15075. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15076. msm_routing_put_voice_mixer),
  15077. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15079. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15080. msm_routing_put_voice_mixer),
  15081. };
  15082. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15083. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15084. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15086. msm_routing_put_voice_mixer),
  15087. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15088. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15089. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15090. msm_routing_put_voice_mixer),
  15091. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15092. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15093. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15094. msm_routing_put_voice_mixer),
  15095. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15097. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15098. msm_routing_put_voice_mixer),
  15099. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15101. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15102. msm_routing_put_voice_mixer),
  15103. };
  15104. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15105. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15107. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15108. msm_routing_put_voice_mixer),
  15109. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15111. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15112. msm_routing_put_voice_mixer),
  15113. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15115. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15116. msm_routing_put_voice_mixer),
  15117. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15119. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15120. msm_routing_put_voice_mixer),
  15121. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15123. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15124. msm_routing_put_voice_mixer),
  15125. };
  15126. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15127. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15129. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15130. msm_routing_put_voice_mixer),
  15131. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15132. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15133. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15134. msm_routing_put_voice_mixer),
  15135. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15137. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15138. msm_routing_put_voice_mixer),
  15139. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15141. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15142. msm_routing_put_voice_mixer),
  15143. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15145. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15146. msm_routing_put_voice_mixer),
  15147. };
  15148. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15149. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15150. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15151. msm_routing_put_voice_mixer),
  15152. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15153. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15154. msm_routing_put_voice_mixer),
  15155. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15156. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15157. msm_routing_put_voice_mixer),
  15158. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15159. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15160. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15161. msm_routing_put_voice_mixer),
  15162. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15163. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15164. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15165. msm_routing_put_voice_mixer),
  15166. };
  15167. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15168. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_HDMI_RX,
  15170. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15171. msm_routing_put_voice_mixer),
  15172. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_HDMI_RX,
  15174. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15175. msm_routing_put_voice_mixer),
  15176. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_HDMI_RX,
  15178. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15179. msm_routing_put_voice_mixer),
  15180. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15181. MSM_BACKEND_DAI_HDMI_RX,
  15182. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15183. msm_routing_put_voice_mixer),
  15184. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15185. MSM_BACKEND_DAI_HDMI_RX,
  15186. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15187. msm_routing_put_voice_mixer),
  15188. };
  15189. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15190. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15192. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15193. msm_routing_put_voice_mixer),
  15194. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15196. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15197. msm_routing_put_voice_mixer),
  15198. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15200. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15201. msm_routing_put_voice_mixer),
  15202. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15203. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15204. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15205. msm_routing_put_voice_mixer),
  15206. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15208. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15209. msm_routing_put_voice_mixer),
  15210. };
  15211. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15212. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15213. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15214. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15215. msm_routing_put_voice_mixer),
  15216. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15217. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15218. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15219. msm_routing_put_voice_mixer),
  15220. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15221. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15222. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15223. msm_routing_put_voice_mixer),
  15224. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15225. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15226. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15227. msm_routing_put_voice_mixer),
  15228. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15229. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15230. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15231. msm_routing_put_voice_mixer),
  15232. };
  15233. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15234. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15236. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15237. msm_routing_put_voice_mixer),
  15238. };
  15239. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15240. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15241. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15242. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15243. msm_routing_put_voice_mixer),
  15244. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15245. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15246. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15247. msm_routing_put_voice_mixer),
  15248. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15249. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15250. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15251. msm_routing_put_voice_mixer),
  15252. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15253. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15254. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15255. msm_routing_put_voice_mixer),
  15256. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15257. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15258. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15259. msm_routing_put_voice_mixer),
  15260. };
  15261. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15262. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15263. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15264. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15265. msm_routing_put_voice_mixer),
  15266. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15267. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15268. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15269. msm_routing_put_voice_mixer),
  15270. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15271. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15272. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15273. msm_routing_put_voice_mixer),
  15274. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15275. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15276. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15277. msm_routing_put_voice_mixer),
  15278. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15279. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15280. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15281. msm_routing_put_voice_mixer),
  15282. };
  15283. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15284. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15287. msm_routing_put_voice_mixer),
  15288. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15290. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15291. msm_routing_put_voice_mixer),
  15292. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15295. msm_routing_put_voice_mixer),
  15296. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15298. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15299. msm_routing_put_voice_mixer),
  15300. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15302. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15303. msm_routing_put_voice_mixer),
  15304. };
  15305. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15306. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15307. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15308. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15309. msm_routing_put_voice_mixer),
  15310. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15311. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15312. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15313. msm_routing_put_voice_mixer),
  15314. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15315. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15316. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15317. msm_routing_put_voice_mixer),
  15318. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15319. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15320. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15321. msm_routing_put_voice_mixer),
  15322. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15323. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15324. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15325. msm_routing_put_voice_mixer),
  15326. };
  15327. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15328. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15330. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15331. msm_routing_put_voice_mixer),
  15332. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15334. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15335. msm_routing_put_voice_mixer),
  15336. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15338. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15339. msm_routing_put_voice_mixer),
  15340. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15342. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15343. msm_routing_put_voice_mixer),
  15344. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15346. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15347. msm_routing_put_voice_mixer),
  15348. };
  15349. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15350. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15352. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15353. msm_routing_put_voice_mixer),
  15354. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15356. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15357. msm_routing_put_voice_mixer),
  15358. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15360. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15361. msm_routing_put_voice_mixer),
  15362. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15364. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15365. msm_routing_put_voice_mixer),
  15366. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15368. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15369. msm_routing_put_voice_mixer),
  15370. };
  15371. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15372. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15373. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15374. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15375. msm_routing_put_voice_mixer),
  15376. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15377. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15378. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15379. msm_routing_put_voice_mixer),
  15380. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15381. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15382. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15383. msm_routing_put_voice_mixer),
  15384. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15385. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15386. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15387. msm_routing_put_voice_mixer),
  15388. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15390. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15391. msm_routing_put_voice_mixer),
  15392. };
  15393. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15394. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15396. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15397. msm_routing_put_voice_mixer),
  15398. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15400. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15401. msm_routing_put_voice_mixer),
  15402. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15404. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15405. msm_routing_put_voice_mixer),
  15406. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15408. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15409. msm_routing_put_voice_mixer),
  15410. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15412. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15413. msm_routing_put_voice_mixer),
  15414. };
  15415. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15416. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15417. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15418. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15419. msm_routing_put_voice_mixer),
  15420. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15421. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15422. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15423. msm_routing_put_voice_mixer),
  15424. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15425. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15426. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15427. msm_routing_put_voice_mixer),
  15428. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15430. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15431. msm_routing_put_voice_mixer),
  15432. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15434. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15435. msm_routing_put_voice_mixer),
  15436. };
  15437. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15438. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15439. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15440. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15441. msm_routing_put_voice_mixer),
  15442. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15443. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15444. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15445. msm_routing_put_voice_mixer),
  15446. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15447. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15448. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15449. msm_routing_put_voice_mixer),
  15450. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15451. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15452. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15453. msm_routing_put_voice_mixer),
  15454. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15455. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15456. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15457. msm_routing_put_voice_mixer),
  15458. };
  15459. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15460. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15462. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15463. msm_routing_put_voice_mixer),
  15464. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15466. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15467. msm_routing_put_voice_stub_mixer),
  15468. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15470. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15471. msm_routing_put_voice_stub_mixer),
  15472. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15474. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15475. msm_routing_put_voice_mixer),
  15476. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15478. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15479. msm_routing_put_voice_mixer),
  15480. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15482. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15483. msm_routing_put_voice_mixer),
  15484. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15485. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15486. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15487. msm_routing_put_voice_mixer),
  15488. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15490. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15491. msm_routing_put_voice_mixer),
  15492. };
  15493. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15494. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15496. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15497. msm_routing_put_voice_mixer),
  15498. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15500. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15501. msm_routing_put_voice_stub_mixer),
  15502. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15504. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15505. msm_routing_put_voice_stub_mixer),
  15506. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15508. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15509. msm_routing_put_voice_mixer),
  15510. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15512. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15513. msm_routing_put_voice_mixer),
  15514. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15516. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15517. msm_routing_put_voice_mixer),
  15518. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15520. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15521. msm_routing_put_voice_mixer),
  15522. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15524. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15525. msm_routing_put_voice_mixer),
  15526. };
  15527. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15528. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15529. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15530. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15531. msm_routing_put_voice_mixer),
  15532. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15534. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15535. msm_routing_put_voice_stub_mixer),
  15536. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15538. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15539. msm_routing_put_voice_stub_mixer),
  15540. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15542. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15543. msm_routing_put_voice_mixer),
  15544. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15546. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15547. msm_routing_put_voice_mixer),
  15548. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15550. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15551. msm_routing_put_voice_mixer),
  15552. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15553. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15554. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15555. msm_routing_put_voice_mixer),
  15556. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15557. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15558. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15559. msm_routing_put_voice_mixer),
  15560. };
  15561. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15562. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15564. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15565. msm_routing_put_voice_mixer),
  15566. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15568. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15569. msm_routing_put_voice_stub_mixer),
  15570. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15572. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15573. msm_routing_put_voice_stub_mixer),
  15574. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15575. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15576. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15577. msm_routing_put_voice_mixer),
  15578. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15580. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15581. msm_routing_put_voice_mixer),
  15582. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15583. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15584. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15585. msm_routing_put_voice_mixer),
  15586. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15587. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15588. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15589. msm_routing_put_voice_mixer),
  15590. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15591. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15592. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15593. msm_routing_put_voice_mixer),
  15594. };
  15595. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15596. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_EXTPROC_RX,
  15598. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15599. msm_routing_put_voice_mixer),
  15600. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15601. MSM_BACKEND_DAI_EXTPROC_RX,
  15602. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15603. msm_routing_put_voice_mixer),
  15604. };
  15605. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15606. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15608. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15609. msm_routing_put_voice_mixer),
  15610. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15612. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15613. msm_routing_put_voice_mixer),
  15614. };
  15615. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15616. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15617. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15618. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15619. msm_routing_put_voice_mixer),
  15620. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15622. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15623. msm_routing_put_voice_mixer),
  15624. };
  15625. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15626. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_PRI_I2S_TX,
  15628. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15629. msm_routing_put_voice_mixer),
  15630. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15631. MSM_BACKEND_DAI_MI2S_TX,
  15632. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15633. msm_routing_put_voice_mixer),
  15634. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15636. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15637. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15638. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15639. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15640. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15641. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15642. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15643. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15645. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15646. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15648. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15649. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15650. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15651. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15652. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15653. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15654. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15655. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15656. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15657. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15658. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15660. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15661. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15663. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15664. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15666. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15667. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15668. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15669. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15670. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15672. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15673. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15674. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15675. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15676. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15678. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15679. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_USB_TX,
  15681. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15682. msm_routing_put_voice_mixer),
  15683. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15684. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15685. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15686. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15688. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15691. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15692. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15694. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15695. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15697. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15698. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15700. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15701. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15702. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15703. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15704. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15705. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15706. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15707. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15709. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15710. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15712. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15713. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15714. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15715. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15716. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15718. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15719. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15720. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15721. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15722. };
  15723. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15724. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15725. MSM_BACKEND_DAI_PRI_I2S_TX,
  15726. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15727. msm_routing_put_voice_mixer),
  15728. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15729. MSM_BACKEND_DAI_MI2S_TX,
  15730. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15731. msm_routing_put_voice_mixer),
  15732. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15734. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15735. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15737. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15738. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15740. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15741. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15742. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15743. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15744. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15745. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15746. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15747. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15749. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15750. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15752. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15753. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15754. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15755. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15756. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15758. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15759. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15761. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15762. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15764. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15765. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15766. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15767. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15768. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15770. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15771. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15773. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15774. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15775. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15776. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15777. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15778. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15779. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15780. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15781. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15782. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15783. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15785. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15786. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15788. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15791. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15792. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15793. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15794. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15795. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15796. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15797. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15798. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15800. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15801. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  15803. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15804. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  15805. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  15806. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15807. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15809. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15810. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15812. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15813. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  15814. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  15815. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15816. };
  15817. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  15818. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_PRI_I2S_TX,
  15820. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15821. msm_routing_put_voice_mixer),
  15822. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  15823. MSM_BACKEND_DAI_MI2S_TX,
  15824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15825. msm_routing_put_voice_mixer),
  15826. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  15827. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15828. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15829. msm_routing_put_voice_mixer),
  15830. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15833. msm_routing_put_voice_mixer),
  15834. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_AFE_PCM_TX,
  15836. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15837. msm_routing_put_voice_mixer),
  15838. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_AUXPCM_TX,
  15840. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15841. msm_routing_put_voice_mixer),
  15842. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15844. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15845. msm_routing_put_voice_mixer),
  15846. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15848. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15852. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15853. msm_routing_put_voice_mixer),
  15854. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15855. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15856. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15857. msm_routing_put_voice_mixer),
  15858. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15860. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15861. msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15864. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15865. msm_routing_put_voice_mixer),
  15866. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15868. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15869. msm_routing_put_voice_mixer),
  15870. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15872. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15873. msm_routing_put_voice_mixer),
  15874. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15876. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15877. msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15880. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15881. msm_routing_put_voice_mixer),
  15882. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  15884. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15885. msm_routing_put_voice_mixer),
  15886. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_USB_TX,
  15888. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15889. msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15892. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15895. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15896. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15898. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  15901. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  15904. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  15906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  15907. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15908. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  15910. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  15913. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15914. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  15916. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15917. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15918. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15919. msm_routing_put_voice_mixer),
  15920. };
  15921. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  15922. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_EXTPROC_TX,
  15924. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15925. msm_routing_put_voice_stub_mixer),
  15926. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15928. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15929. msm_routing_put_voice_stub_mixer),
  15930. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15931. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15932. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15933. msm_routing_put_voice_stub_mixer),
  15934. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  15935. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  15936. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15937. msm_routing_put_voice_stub_mixer),
  15938. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15939. MSM_BACKEND_DAI_MI2S_TX,
  15940. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15941. msm_routing_put_voice_stub_mixer),
  15942. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15944. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15945. msm_routing_put_voice_stub_mixer),
  15946. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15947. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15948. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15949. msm_routing_put_voice_stub_mixer),
  15950. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15952. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15953. msm_routing_put_voice_stub_mixer),
  15954. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15956. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15957. msm_routing_put_voice_stub_mixer),
  15958. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15959. MSM_BACKEND_DAI_AUXPCM_TX,
  15960. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15961. msm_routing_put_voice_stub_mixer),
  15962. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  15964. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15965. msm_routing_put_voice_stub_mixer),
  15966. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  15968. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15969. msm_routing_put_voice_stub_mixer),
  15970. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  15972. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15973. msm_routing_put_voice_stub_mixer),
  15974. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  15976. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15977. msm_routing_put_voice_stub_mixer),
  15978. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  15980. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15981. msm_routing_put_voice_stub_mixer),
  15982. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15983. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15984. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15985. msm_routing_put_voice_stub_mixer),
  15986. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  15987. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  15988. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15989. msm_routing_put_voice_stub_mixer),
  15990. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_AFE_PCM_TX,
  15992. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15993. msm_routing_put_voice_stub_mixer),
  15994. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15995. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15996. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15997. msm_routing_put_voice_stub_mixer),
  15998. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15999. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16000. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16001. msm_routing_put_voice_stub_mixer),
  16002. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16004. 1, 0, msm_routing_get_voice_stub_mixer,
  16005. msm_routing_put_voice_stub_mixer),
  16006. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16008. 1, 0, msm_routing_get_voice_stub_mixer,
  16009. msm_routing_put_voice_stub_mixer),
  16010. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16012. 1, 0, msm_routing_get_voice_stub_mixer,
  16013. msm_routing_put_voice_stub_mixer),
  16014. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16016. 1, 0, msm_routing_get_voice_stub_mixer,
  16017. msm_routing_put_voice_stub_mixer),
  16018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16020. 1, 0, msm_routing_get_voice_stub_mixer,
  16021. msm_routing_put_voice_stub_mixer),
  16022. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16024. 1, 0, msm_routing_get_voice_stub_mixer,
  16025. msm_routing_put_voice_stub_mixer),
  16026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16028. 1, 0, msm_routing_get_voice_stub_mixer,
  16029. msm_routing_put_voice_stub_mixer),
  16030. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16032. 1, 0, msm_routing_get_voice_stub_mixer,
  16033. msm_routing_put_voice_stub_mixer),
  16034. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16035. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16036. 1, 0, msm_routing_get_voice_stub_mixer,
  16037. msm_routing_put_voice_stub_mixer),
  16038. };
  16039. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16040. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_EXTPROC_TX,
  16042. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16043. msm_routing_put_voice_stub_mixer),
  16044. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16046. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16047. msm_routing_put_voice_stub_mixer),
  16048. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16050. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16051. msm_routing_put_voice_stub_mixer),
  16052. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_AUXPCM_TX,
  16054. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16055. msm_routing_put_voice_stub_mixer),
  16056. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16057. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16058. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16059. msm_routing_put_voice_stub_mixer),
  16060. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16061. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16062. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16063. msm_routing_put_voice_stub_mixer),
  16064. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16065. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16066. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16067. msm_routing_put_voice_stub_mixer),
  16068. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16069. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16070. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16071. msm_routing_put_voice_stub_mixer),
  16072. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16074. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16075. msm_routing_put_voice_stub_mixer),
  16076. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16077. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16078. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16079. msm_routing_put_voice_stub_mixer),
  16080. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16081. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16082. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16083. msm_routing_put_voice_stub_mixer),
  16084. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16085. MSM_BACKEND_DAI_AFE_PCM_TX,
  16086. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16087. msm_routing_put_voice_stub_mixer),
  16088. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16090. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16091. msm_routing_put_voice_stub_mixer),
  16092. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16094. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16095. msm_routing_put_voice_stub_mixer),
  16096. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16098. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16099. msm_routing_put_voice_stub_mixer),
  16100. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16102. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16103. msm_routing_put_voice_stub_mixer),
  16104. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16106. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16107. msm_routing_put_voice_stub_mixer),
  16108. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16109. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16110. 1, 0, msm_routing_get_voice_stub_mixer,
  16111. msm_routing_put_voice_stub_mixer),
  16112. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16114. 1, 0, msm_routing_get_voice_stub_mixer,
  16115. msm_routing_put_voice_stub_mixer),
  16116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16118. 1, 0, msm_routing_get_voice_stub_mixer,
  16119. msm_routing_put_voice_stub_mixer),
  16120. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16121. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16122. 1, 0, msm_routing_get_voice_stub_mixer,
  16123. msm_routing_put_voice_stub_mixer),
  16124. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16125. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16126. 1, 0, msm_routing_get_voice_stub_mixer,
  16127. msm_routing_put_voice_stub_mixer),
  16128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16130. 1, 0, msm_routing_get_voice_stub_mixer,
  16131. msm_routing_put_voice_stub_mixer),
  16132. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16134. 1, 0, msm_routing_get_voice_stub_mixer,
  16135. msm_routing_put_voice_stub_mixer),
  16136. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16138. 1, 0, msm_routing_get_voice_stub_mixer,
  16139. msm_routing_put_voice_stub_mixer),
  16140. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16142. 1, 0, msm_routing_get_voice_stub_mixer,
  16143. msm_routing_put_voice_stub_mixer),
  16144. };
  16145. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16146. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_EXTPROC_TX,
  16148. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16149. msm_routing_put_voice_stub_mixer),
  16150. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16152. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16153. msm_routing_put_voice_stub_mixer),
  16154. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16156. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16157. msm_routing_put_voice_stub_mixer),
  16158. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_AUXPCM_TX,
  16160. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16161. msm_routing_put_voice_stub_mixer),
  16162. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16164. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16165. msm_routing_put_voice_stub_mixer),
  16166. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16168. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16169. msm_routing_put_voice_stub_mixer),
  16170. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16172. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16173. msm_routing_put_voice_stub_mixer),
  16174. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16176. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16177. msm_routing_put_voice_stub_mixer),
  16178. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16179. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16180. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16181. msm_routing_put_voice_stub_mixer),
  16182. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16184. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16185. msm_routing_put_voice_stub_mixer),
  16186. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16188. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16189. msm_routing_put_voice_stub_mixer),
  16190. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_AFE_PCM_TX,
  16192. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16193. msm_routing_put_voice_stub_mixer),
  16194. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16196. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16197. msm_routing_put_voice_stub_mixer),
  16198. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16200. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16201. msm_routing_put_voice_stub_mixer),
  16202. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16204. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16205. msm_routing_put_voice_stub_mixer),
  16206. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16208. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16209. msm_routing_put_voice_stub_mixer),
  16210. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16212. 1, 0, msm_routing_get_voice_stub_mixer,
  16213. msm_routing_put_voice_stub_mixer),
  16214. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16216. 1, 0, msm_routing_get_voice_stub_mixer,
  16217. msm_routing_put_voice_stub_mixer),
  16218. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16220. 1, 0, msm_routing_get_voice_stub_mixer,
  16221. msm_routing_put_voice_stub_mixer),
  16222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16224. 1, 0, msm_routing_get_voice_stub_mixer,
  16225. msm_routing_put_voice_stub_mixer),
  16226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16228. 1, 0, msm_routing_get_voice_stub_mixer,
  16229. msm_routing_put_voice_stub_mixer),
  16230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16232. 1, 0, msm_routing_get_voice_stub_mixer,
  16233. msm_routing_put_voice_stub_mixer),
  16234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16236. 1, 0, msm_routing_get_voice_stub_mixer,
  16237. msm_routing_put_voice_stub_mixer),
  16238. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16240. 1, 0, msm_routing_get_voice_stub_mixer,
  16241. msm_routing_put_voice_stub_mixer),
  16242. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16243. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16244. 1, 0, msm_routing_get_voice_stub_mixer,
  16245. msm_routing_put_voice_stub_mixer),
  16246. };
  16247. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16248. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_PRI_I2S_TX,
  16250. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16251. msm_routing_put_voice_mixer),
  16252. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16255. msm_routing_put_voice_mixer),
  16256. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16258. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16259. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_AFE_PCM_TX,
  16262. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_AUXPCM_TX,
  16266. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16267. msm_routing_put_voice_mixer),
  16268. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16270. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16271. msm_routing_put_voice_mixer),
  16272. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16274. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16275. msm_routing_put_voice_mixer),
  16276. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16278. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16279. msm_routing_put_voice_mixer),
  16280. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16282. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16283. msm_routing_put_voice_mixer),
  16284. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16286. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16287. msm_routing_put_voice_mixer),
  16288. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_MI2S_TX,
  16290. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16291. msm_routing_put_voice_mixer),
  16292. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16294. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16295. msm_routing_put_voice_mixer),
  16296. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16298. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16299. msm_routing_put_voice_mixer),
  16300. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16302. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16303. msm_routing_put_voice_mixer),
  16304. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16306. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16307. msm_routing_put_voice_mixer),
  16308. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16309. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16310. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16311. msm_routing_put_voice_mixer),
  16312. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16313. MSM_BACKEND_DAI_USB_TX,
  16314. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16315. msm_routing_put_voice_mixer),
  16316. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16318. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16319. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16320. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16321. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16322. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16324. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16325. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16326. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16327. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16330. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16331. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16333. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16336. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16337. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16338. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16339. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16342. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16343. };
  16344. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16345. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16346. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16347. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16348. msm_routing_put_port_mixer),
  16349. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16350. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16351. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16352. msm_routing_put_port_mixer),
  16353. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16354. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16355. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16356. msm_routing_put_port_mixer),
  16357. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16358. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16359. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16360. msm_routing_put_port_mixer),
  16361. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16363. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16364. msm_routing_put_port_mixer),
  16365. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16366. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16367. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16368. msm_routing_put_port_mixer),
  16369. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16370. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16371. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16372. msm_routing_put_port_mixer),
  16373. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16374. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16375. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16376. msm_routing_put_port_mixer),
  16377. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16378. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16379. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16380. msm_routing_put_port_mixer),
  16381. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16383. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16384. msm_routing_put_port_mixer),
  16385. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16387. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16388. msm_routing_put_port_mixer),
  16389. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16391. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16392. msm_routing_put_port_mixer),
  16393. };
  16394. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16395. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16396. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16397. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16398. msm_routing_put_port_mixer),
  16399. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16400. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16401. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16402. msm_routing_put_port_mixer),
  16403. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16405. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16406. msm_routing_put_port_mixer),
  16407. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16409. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16410. msm_routing_put_port_mixer),
  16411. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16413. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16414. msm_routing_put_port_mixer),
  16415. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16417. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16418. msm_routing_put_port_mixer),
  16419. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16420. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16421. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16422. msm_routing_put_port_mixer),
  16423. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16424. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16425. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16426. msm_routing_put_port_mixer),
  16427. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16428. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16429. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16430. msm_routing_put_port_mixer),
  16431. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16432. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16433. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16434. msm_routing_put_port_mixer),
  16435. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16437. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16438. msm_routing_put_port_mixer),
  16439. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16440. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16441. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16442. msm_routing_put_port_mixer),
  16443. };
  16444. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16445. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16446. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16447. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16448. msm_routing_put_port_mixer),
  16449. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16450. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16452. msm_routing_put_port_mixer),
  16453. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16454. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16455. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16456. msm_routing_put_port_mixer),
  16457. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16458. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16459. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16460. msm_routing_put_port_mixer),
  16461. };
  16462. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16463. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16466. msm_routing_put_port_mixer),
  16467. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16469. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16470. msm_routing_put_port_mixer),
  16471. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16473. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16474. msm_routing_put_port_mixer),
  16475. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16477. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16478. msm_routing_put_port_mixer),
  16479. };
  16480. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16481. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16483. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16484. msm_routing_put_port_mixer),
  16485. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16487. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16488. msm_routing_put_port_mixer),
  16489. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16491. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16492. msm_routing_put_port_mixer),
  16493. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16494. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16495. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16496. msm_routing_put_port_mixer),
  16497. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16498. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16499. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16500. msm_routing_put_port_mixer),
  16501. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16502. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16503. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16504. msm_routing_put_port_mixer),
  16505. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16507. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16508. msm_routing_put_port_mixer),
  16509. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16510. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16511. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16512. msm_routing_put_port_mixer),
  16513. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16514. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16515. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16516. msm_routing_put_port_mixer),
  16517. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16519. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16520. msm_routing_put_port_mixer),
  16521. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16523. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16524. msm_routing_put_port_mixer),
  16525. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16527. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16528. msm_routing_put_port_mixer),
  16529. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16531. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16532. msm_routing_put_port_mixer),
  16533. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16535. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16536. msm_routing_put_port_mixer),
  16537. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16539. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16540. msm_routing_put_port_mixer),
  16541. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16542. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16543. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16544. msm_routing_put_port_mixer),
  16545. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16546. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16547. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16548. msm_routing_put_port_mixer),
  16549. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16551. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16552. msm_routing_put_port_mixer),
  16553. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16555. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16556. msm_routing_put_port_mixer),
  16557. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16559. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16560. msm_routing_put_port_mixer),
  16561. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16562. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16563. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16564. msm_routing_put_port_mixer),
  16565. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16567. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16568. msm_routing_put_port_mixer),
  16569. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16571. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16572. msm_routing_put_port_mixer),
  16573. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16574. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16575. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16576. msm_routing_put_port_mixer),
  16577. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16579. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16580. msm_routing_put_port_mixer),
  16581. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16582. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16583. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16584. msm_routing_put_port_mixer),
  16585. };
  16586. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16587. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_AUXPCM_RX,
  16589. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16590. msm_routing_put_port_mixer),
  16591. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16592. MSM_BACKEND_DAI_AUXPCM_RX,
  16593. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16594. msm_routing_put_port_mixer),
  16595. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_AUXPCM_RX,
  16597. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16598. msm_routing_put_port_mixer),
  16599. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_AUXPCM_RX,
  16601. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16602. msm_routing_put_port_mixer),
  16603. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16604. MSM_BACKEND_DAI_AUXPCM_RX,
  16605. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16606. msm_routing_put_port_mixer),
  16607. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_AUXPCM_RX,
  16609. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16610. msm_routing_put_port_mixer),
  16611. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16612. MSM_BACKEND_DAI_AUXPCM_RX,
  16613. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16614. msm_routing_put_port_mixer),
  16615. };
  16616. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16617. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16619. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16620. msm_routing_put_port_mixer),
  16621. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16622. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16623. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16624. msm_routing_put_port_mixer),
  16625. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16626. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16627. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16628. msm_routing_put_port_mixer),
  16629. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16630. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16631. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16632. msm_routing_put_port_mixer),
  16633. };
  16634. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16635. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16637. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16638. msm_routing_put_port_mixer),
  16639. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16641. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16642. msm_routing_put_port_mixer),
  16643. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16644. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16645. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16646. msm_routing_put_port_mixer),
  16647. };
  16648. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16649. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16651. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16652. msm_routing_put_port_mixer),
  16653. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16655. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16656. msm_routing_put_port_mixer),
  16657. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16659. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16660. msm_routing_put_port_mixer),
  16661. };
  16662. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16663. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16664. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16665. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16666. msm_routing_put_port_mixer),
  16667. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16669. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16670. msm_routing_put_port_mixer),
  16671. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16673. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16674. msm_routing_put_port_mixer),
  16675. };
  16676. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16677. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16678. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16679. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16680. msm_routing_put_port_mixer),
  16681. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16682. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16683. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16684. msm_routing_put_port_mixer),
  16685. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16687. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16688. msm_routing_put_port_mixer),
  16689. };
  16690. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16691. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16692. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16693. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16694. msm_routing_put_port_mixer),
  16695. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16696. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16697. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16698. msm_routing_put_port_mixer),
  16699. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16701. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16702. msm_routing_put_port_mixer),
  16703. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16704. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16705. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16706. msm_routing_put_port_mixer),
  16707. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16708. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16709. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16710. msm_routing_put_port_mixer),
  16711. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16712. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16713. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16714. msm_routing_put_port_mixer),
  16715. };
  16716. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16717. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16719. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16720. msm_routing_put_port_mixer),
  16721. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16723. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16724. msm_routing_put_port_mixer),
  16725. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16726. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16727. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16731. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16732. msm_routing_put_port_mixer),
  16733. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16734. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16735. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16736. msm_routing_put_port_mixer),
  16737. };
  16738. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16739. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16741. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16742. msm_routing_put_port_mixer),
  16743. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16745. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16746. msm_routing_put_port_mixer),
  16747. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16749. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16750. msm_routing_put_port_mixer),
  16751. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16753. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16754. msm_routing_put_port_mixer),
  16755. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16757. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16758. msm_routing_put_port_mixer),
  16759. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16761. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16762. msm_routing_put_port_mixer),
  16763. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16764. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16765. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16766. msm_routing_put_port_mixer),
  16767. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16768. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16769. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16770. msm_routing_put_port_mixer),
  16771. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16772. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16773. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16774. msm_routing_put_port_mixer),
  16775. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16776. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16777. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16778. msm_routing_put_port_mixer),
  16779. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16780. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16781. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16782. msm_routing_put_port_mixer),
  16783. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16784. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16785. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16786. msm_routing_put_port_mixer),
  16787. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16788. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16789. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16790. msm_routing_put_port_mixer),
  16791. };
  16792. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16793. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16794. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16795. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16796. msm_routing_put_port_mixer),
  16797. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16798. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16799. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16800. msm_routing_put_port_mixer),
  16801. };
  16802. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  16803. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16804. MSM_BACKEND_DAI_AFE_PCM_RX,
  16805. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16806. msm_routing_put_port_mixer),
  16807. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_AFE_PCM_RX,
  16809. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. };
  16812. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  16813. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16814. MSM_BACKEND_DAI_HDMI_RX,
  16815. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16816. msm_routing_put_port_mixer),
  16817. };
  16818. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  16819. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16820. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  16821. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16822. msm_routing_put_port_mixer),
  16823. };
  16824. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  16825. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16827. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. };
  16830. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  16831. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_SEC_I2S_RX,
  16833. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16834. msm_routing_put_port_mixer),
  16835. };
  16836. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  16837. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16838. MSM_BACKEND_DAI_MI2S_RX,
  16839. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16840. msm_routing_put_port_mixer),
  16841. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_MI2S_RX,
  16843. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16844. msm_routing_put_port_mixer),
  16845. };
  16846. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  16847. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16849. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16853. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16854. msm_routing_put_port_mixer),
  16855. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16856. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16857. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16858. msm_routing_put_port_mixer),
  16859. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16860. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16861. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16862. msm_routing_put_port_mixer),
  16863. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16865. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16866. msm_routing_put_port_mixer),
  16867. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16869. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16873. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16874. msm_routing_put_port_mixer),
  16875. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16877. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16880. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16881. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16882. msm_routing_put_port_mixer),
  16883. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16885. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16886. msm_routing_put_port_mixer),
  16887. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16888. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16889. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16890. msm_routing_put_port_mixer),
  16891. };
  16892. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  16893. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_USB_RX,
  16895. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  16896. msm_routing_put_port_mixer),
  16897. };
  16898. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  16899. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16900. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16901. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16905. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16906. msm_routing_put_port_mixer),
  16907. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16909. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16913. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16914. msm_routing_put_port_mixer),
  16915. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16917. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16918. msm_routing_put_port_mixer),
  16919. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16920. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16921. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16922. msm_routing_put_port_mixer),
  16923. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16924. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16925. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16926. msm_routing_put_port_mixer),
  16927. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16928. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16929. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16930. msm_routing_put_port_mixer),
  16931. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16932. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16933. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16934. msm_routing_put_port_mixer),
  16935. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16936. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16937. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16938. msm_routing_put_port_mixer),
  16939. };
  16940. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  16941. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16943. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16944. msm_routing_put_port_mixer),
  16945. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16946. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16947. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16948. msm_routing_put_port_mixer),
  16949. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16950. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16951. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16955. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16956. msm_routing_put_port_mixer),
  16957. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16958. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16959. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16960. msm_routing_put_port_mixer),
  16961. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16963. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16964. msm_routing_put_port_mixer),
  16965. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16967. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16968. msm_routing_put_port_mixer),
  16969. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16970. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16971. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. };
  16974. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  16975. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16976. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16977. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16978. msm_routing_put_port_mixer),
  16979. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16981. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16985. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16986. msm_routing_put_port_mixer),
  16987. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16988. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16989. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16990. msm_routing_put_port_mixer),
  16991. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16993. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16994. msm_routing_put_port_mixer),
  16995. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16996. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16997. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16998. msm_routing_put_port_mixer),
  16999. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17000. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17001. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17002. msm_routing_put_port_mixer),
  17003. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17005. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17006. msm_routing_put_port_mixer),
  17007. };
  17008. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17009. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17010. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17011. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17012. msm_routing_get_port_mixer,
  17013. msm_routing_put_port_mixer),
  17014. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17015. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17016. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17017. msm_routing_get_port_mixer,
  17018. msm_routing_put_port_mixer),
  17019. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17020. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17021. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17022. msm_routing_get_port_mixer,
  17023. msm_routing_put_port_mixer),
  17024. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17025. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17026. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17027. msm_routing_get_port_mixer,
  17028. msm_routing_put_port_mixer),
  17029. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17031. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17032. msm_routing_get_port_mixer,
  17033. msm_routing_put_port_mixer),
  17034. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17035. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17036. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17037. msm_routing_get_port_mixer,
  17038. msm_routing_put_port_mixer),
  17039. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17040. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17041. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17042. msm_routing_get_port_mixer,
  17043. msm_routing_put_port_mixer),
  17044. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17046. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17047. msm_routing_get_port_mixer,
  17048. msm_routing_put_port_mixer),
  17049. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17050. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17051. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17052. msm_routing_get_port_mixer,
  17053. msm_routing_put_port_mixer),
  17054. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17055. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17056. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17057. msm_routing_get_port_mixer,
  17058. msm_routing_put_port_mixer),
  17059. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17061. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17062. msm_routing_get_port_mixer,
  17063. msm_routing_put_port_mixer),
  17064. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17065. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17066. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17067. msm_routing_get_port_mixer,
  17068. msm_routing_put_port_mixer),
  17069. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17070. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17071. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17072. msm_routing_get_port_mixer,
  17073. msm_routing_put_port_mixer),
  17074. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17075. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17076. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17077. msm_routing_get_port_mixer,
  17078. msm_routing_put_port_mixer),
  17079. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17081. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17082. msm_routing_get_port_mixer,
  17083. msm_routing_put_port_mixer),
  17084. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17085. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17086. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17087. msm_routing_get_port_mixer,
  17088. msm_routing_put_port_mixer),
  17089. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17090. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17091. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17092. msm_routing_get_port_mixer,
  17093. msm_routing_put_port_mixer),
  17094. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17095. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17096. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17097. msm_routing_get_port_mixer,
  17098. msm_routing_put_port_mixer),
  17099. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17100. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17101. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17102. msm_routing_get_port_mixer,
  17103. msm_routing_put_port_mixer),
  17104. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17105. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17106. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17107. msm_routing_get_port_mixer,
  17108. msm_routing_put_port_mixer),
  17109. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17110. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17111. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17112. msm_routing_get_port_mixer,
  17113. msm_routing_put_port_mixer),
  17114. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17115. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17116. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17117. msm_routing_get_port_mixer,
  17118. msm_routing_put_port_mixer),
  17119. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17121. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17122. msm_routing_get_port_mixer,
  17123. msm_routing_put_port_mixer),
  17124. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17125. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17126. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17127. msm_routing_get_port_mixer,
  17128. msm_routing_put_port_mixer),
  17129. };
  17130. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17131. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17132. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17133. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17134. msm_routing_get_port_mixer,
  17135. msm_routing_put_port_mixer),
  17136. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17137. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17138. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17139. msm_routing_get_port_mixer,
  17140. msm_routing_put_port_mixer),
  17141. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17142. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17143. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17144. msm_routing_get_port_mixer,
  17145. msm_routing_put_port_mixer),
  17146. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17147. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17148. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17149. msm_routing_get_port_mixer,
  17150. msm_routing_put_port_mixer),
  17151. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17152. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17153. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17154. msm_routing_get_port_mixer,
  17155. msm_routing_put_port_mixer),
  17156. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17157. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17158. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17159. msm_routing_get_port_mixer,
  17160. msm_routing_put_port_mixer),
  17161. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17162. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17163. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17164. msm_routing_get_port_mixer,
  17165. msm_routing_put_port_mixer),
  17166. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17167. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17168. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17169. msm_routing_get_port_mixer,
  17170. msm_routing_put_port_mixer),
  17171. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17172. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17173. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17174. msm_routing_get_port_mixer,
  17175. msm_routing_put_port_mixer),
  17176. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17177. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17178. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17179. msm_routing_get_port_mixer,
  17180. msm_routing_put_port_mixer),
  17181. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17182. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17183. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17184. msm_routing_get_port_mixer,
  17185. msm_routing_put_port_mixer),
  17186. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17187. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17188. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17189. msm_routing_get_port_mixer,
  17190. msm_routing_put_port_mixer),
  17191. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17192. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17193. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17194. msm_routing_get_port_mixer,
  17195. msm_routing_put_port_mixer),
  17196. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17197. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17198. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17199. msm_routing_get_port_mixer,
  17200. msm_routing_put_port_mixer),
  17201. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17202. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17203. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17204. msm_routing_get_port_mixer,
  17205. msm_routing_put_port_mixer),
  17206. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17207. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17208. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17209. msm_routing_get_port_mixer,
  17210. msm_routing_put_port_mixer),
  17211. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17212. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17213. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17214. msm_routing_get_port_mixer,
  17215. msm_routing_put_port_mixer),
  17216. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17217. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17218. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17219. msm_routing_get_port_mixer,
  17220. msm_routing_put_port_mixer),
  17221. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17222. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17223. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17224. msm_routing_get_port_mixer,
  17225. msm_routing_put_port_mixer),
  17226. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17227. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17228. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17229. msm_routing_get_port_mixer,
  17230. msm_routing_put_port_mixer),
  17231. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17232. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17233. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17234. msm_routing_get_port_mixer,
  17235. msm_routing_put_port_mixer),
  17236. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17237. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17238. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17239. msm_routing_get_port_mixer,
  17240. msm_routing_put_port_mixer),
  17241. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17242. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17243. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17244. msm_routing_get_port_mixer,
  17245. msm_routing_put_port_mixer),
  17246. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17247. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17248. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17249. msm_routing_get_port_mixer,
  17250. msm_routing_put_port_mixer),
  17251. };
  17252. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17253. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17254. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17255. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17256. msm_routing_get_port_mixer,
  17257. msm_routing_put_port_mixer),
  17258. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17259. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17260. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17261. msm_routing_get_port_mixer,
  17262. msm_routing_put_port_mixer),
  17263. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17265. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17266. msm_routing_get_port_mixer,
  17267. msm_routing_put_port_mixer),
  17268. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17269. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17270. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17271. msm_routing_get_port_mixer,
  17272. msm_routing_put_port_mixer),
  17273. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17274. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17275. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17276. msm_routing_get_port_mixer,
  17277. msm_routing_put_port_mixer),
  17278. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17279. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17280. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17281. msm_routing_get_port_mixer,
  17282. msm_routing_put_port_mixer),
  17283. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17284. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17285. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17286. msm_routing_get_port_mixer,
  17287. msm_routing_put_port_mixer),
  17288. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17289. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17290. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17291. msm_routing_get_port_mixer,
  17292. msm_routing_put_port_mixer),
  17293. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17295. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17296. msm_routing_get_port_mixer,
  17297. msm_routing_put_port_mixer),
  17298. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17299. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17300. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17301. msm_routing_get_port_mixer,
  17302. msm_routing_put_port_mixer),
  17303. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17305. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17306. msm_routing_get_port_mixer,
  17307. msm_routing_put_port_mixer),
  17308. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17309. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17310. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17311. msm_routing_get_port_mixer,
  17312. msm_routing_put_port_mixer),
  17313. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17315. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17316. msm_routing_get_port_mixer,
  17317. msm_routing_put_port_mixer),
  17318. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17319. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17320. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17321. msm_routing_get_port_mixer,
  17322. msm_routing_put_port_mixer),
  17323. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17324. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17325. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17326. msm_routing_get_port_mixer,
  17327. msm_routing_put_port_mixer),
  17328. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17329. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17330. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17331. msm_routing_get_port_mixer,
  17332. msm_routing_put_port_mixer),
  17333. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17335. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17336. msm_routing_get_port_mixer,
  17337. msm_routing_put_port_mixer),
  17338. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17339. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17340. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17341. msm_routing_get_port_mixer,
  17342. msm_routing_put_port_mixer),
  17343. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17344. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17345. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17346. msm_routing_get_port_mixer,
  17347. msm_routing_put_port_mixer),
  17348. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17349. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17350. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17351. msm_routing_get_port_mixer,
  17352. msm_routing_put_port_mixer),
  17353. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17355. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17356. msm_routing_get_port_mixer,
  17357. msm_routing_put_port_mixer),
  17358. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17359. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17360. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17361. msm_routing_get_port_mixer,
  17362. msm_routing_put_port_mixer),
  17363. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17364. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17365. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17366. msm_routing_get_port_mixer,
  17367. msm_routing_put_port_mixer),
  17368. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17369. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17370. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17371. msm_routing_get_port_mixer,
  17372. msm_routing_put_port_mixer),
  17373. };
  17374. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17375. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17376. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17377. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17378. msm_routing_get_port_mixer,
  17379. msm_routing_put_port_mixer),
  17380. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17381. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17382. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17383. msm_routing_get_port_mixer,
  17384. msm_routing_put_port_mixer),
  17385. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17387. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17388. msm_routing_get_port_mixer,
  17389. msm_routing_put_port_mixer),
  17390. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17391. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17392. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17393. msm_routing_get_port_mixer,
  17394. msm_routing_put_port_mixer),
  17395. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17396. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17397. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17398. msm_routing_get_port_mixer,
  17399. msm_routing_put_port_mixer),
  17400. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17401. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17402. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17403. msm_routing_get_port_mixer,
  17404. msm_routing_put_port_mixer),
  17405. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17406. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17407. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17408. msm_routing_get_port_mixer,
  17409. msm_routing_put_port_mixer),
  17410. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17411. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17412. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17413. msm_routing_get_port_mixer,
  17414. msm_routing_put_port_mixer),
  17415. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17417. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17418. msm_routing_get_port_mixer,
  17419. msm_routing_put_port_mixer),
  17420. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17421. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17422. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17423. msm_routing_get_port_mixer,
  17424. msm_routing_put_port_mixer),
  17425. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17426. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17427. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17428. msm_routing_get_port_mixer,
  17429. msm_routing_put_port_mixer),
  17430. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17431. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17432. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17433. msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17437. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17438. msm_routing_get_port_mixer,
  17439. msm_routing_put_port_mixer),
  17440. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17442. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17443. msm_routing_get_port_mixer,
  17444. msm_routing_put_port_mixer),
  17445. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17446. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17447. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17448. msm_routing_get_port_mixer,
  17449. msm_routing_put_port_mixer),
  17450. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17451. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17452. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17453. msm_routing_get_port_mixer,
  17454. msm_routing_put_port_mixer),
  17455. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17456. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17457. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17458. msm_routing_get_port_mixer,
  17459. msm_routing_put_port_mixer),
  17460. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17461. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17462. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17463. msm_routing_get_port_mixer,
  17464. msm_routing_put_port_mixer),
  17465. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17466. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17467. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17468. msm_routing_get_port_mixer,
  17469. msm_routing_put_port_mixer),
  17470. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17471. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17472. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17473. msm_routing_get_port_mixer,
  17474. msm_routing_put_port_mixer),
  17475. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17476. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17477. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17478. msm_routing_get_port_mixer,
  17479. msm_routing_put_port_mixer),
  17480. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17481. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17482. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17483. msm_routing_get_port_mixer,
  17484. msm_routing_put_port_mixer),
  17485. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17486. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17487. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17488. msm_routing_get_port_mixer,
  17489. msm_routing_put_port_mixer),
  17490. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17491. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17492. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17493. msm_routing_get_port_mixer,
  17494. msm_routing_put_port_mixer),
  17495. };
  17496. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17497. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17499. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17500. msm_routing_get_port_mixer,
  17501. msm_routing_put_port_mixer),
  17502. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17503. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17504. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17505. msm_routing_get_port_mixer,
  17506. msm_routing_put_port_mixer),
  17507. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17508. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17509. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17510. msm_routing_get_port_mixer,
  17511. msm_routing_put_port_mixer),
  17512. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17513. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17514. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17515. msm_routing_get_port_mixer,
  17516. msm_routing_put_port_mixer),
  17517. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17519. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17520. msm_routing_get_port_mixer,
  17521. msm_routing_put_port_mixer),
  17522. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17524. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17525. msm_routing_get_port_mixer,
  17526. msm_routing_put_port_mixer),
  17527. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17528. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17529. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17530. msm_routing_get_port_mixer,
  17531. msm_routing_put_port_mixer),
  17532. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17533. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17534. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17535. msm_routing_get_port_mixer,
  17536. msm_routing_put_port_mixer),
  17537. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17539. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17540. msm_routing_get_port_mixer,
  17541. msm_routing_put_port_mixer),
  17542. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17544. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17545. msm_routing_get_port_mixer,
  17546. msm_routing_put_port_mixer),
  17547. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17548. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17549. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17550. msm_routing_get_port_mixer,
  17551. msm_routing_put_port_mixer),
  17552. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17553. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17554. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17555. msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17559. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17560. msm_routing_get_port_mixer,
  17561. msm_routing_put_port_mixer),
  17562. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17563. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17564. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17565. msm_routing_get_port_mixer,
  17566. msm_routing_put_port_mixer),
  17567. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17568. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17569. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17570. msm_routing_get_port_mixer,
  17571. msm_routing_put_port_mixer),
  17572. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17573. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17574. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17575. msm_routing_get_port_mixer,
  17576. msm_routing_put_port_mixer),
  17577. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17578. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17579. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17580. msm_routing_get_port_mixer,
  17581. msm_routing_put_port_mixer),
  17582. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17583. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17584. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17585. msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17589. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17590. msm_routing_get_port_mixer,
  17591. msm_routing_put_port_mixer),
  17592. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17593. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17594. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17595. msm_routing_get_port_mixer,
  17596. msm_routing_put_port_mixer),
  17597. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17598. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17599. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17600. msm_routing_get_port_mixer,
  17601. msm_routing_put_port_mixer),
  17602. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17604. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17605. msm_routing_get_port_mixer,
  17606. msm_routing_put_port_mixer),
  17607. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17609. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17610. msm_routing_get_port_mixer,
  17611. msm_routing_put_port_mixer),
  17612. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17613. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17614. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17615. msm_routing_get_port_mixer,
  17616. msm_routing_put_port_mixer),
  17617. };
  17618. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17619. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17620. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17621. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17622. msm_routing_get_port_mixer,
  17623. msm_routing_put_port_mixer),
  17624. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17625. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17626. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17627. msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17631. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17632. msm_routing_get_port_mixer,
  17633. msm_routing_put_port_mixer),
  17634. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17635. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17636. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17637. msm_routing_get_port_mixer,
  17638. msm_routing_put_port_mixer),
  17639. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17640. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17641. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17642. msm_routing_get_port_mixer,
  17643. msm_routing_put_port_mixer),
  17644. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17645. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17646. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17647. msm_routing_get_port_mixer,
  17648. msm_routing_put_port_mixer),
  17649. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17651. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17652. msm_routing_get_port_mixer,
  17653. msm_routing_put_port_mixer),
  17654. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17656. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17657. msm_routing_get_port_mixer,
  17658. msm_routing_put_port_mixer),
  17659. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17660. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17661. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17662. msm_routing_get_port_mixer,
  17663. msm_routing_put_port_mixer),
  17664. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17665. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17666. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17667. msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17670. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17671. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17672. msm_routing_get_port_mixer,
  17673. msm_routing_put_port_mixer),
  17674. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17675. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17676. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17677. msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17681. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17682. msm_routing_get_port_mixer,
  17683. msm_routing_put_port_mixer),
  17684. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17685. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17686. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17687. msm_routing_get_port_mixer,
  17688. msm_routing_put_port_mixer),
  17689. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17690. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17691. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17692. msm_routing_get_port_mixer,
  17693. msm_routing_put_port_mixer),
  17694. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17696. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17697. msm_routing_get_port_mixer,
  17698. msm_routing_put_port_mixer),
  17699. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17700. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17701. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17702. msm_routing_get_port_mixer,
  17703. msm_routing_put_port_mixer),
  17704. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17705. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17706. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17707. msm_routing_get_port_mixer,
  17708. msm_routing_put_port_mixer),
  17709. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17710. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17711. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17712. msm_routing_get_port_mixer,
  17713. msm_routing_put_port_mixer),
  17714. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17715. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17716. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17717. msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17720. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17721. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17722. msm_routing_get_port_mixer,
  17723. msm_routing_put_port_mixer),
  17724. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17725. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17726. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17727. msm_routing_get_port_mixer,
  17728. msm_routing_put_port_mixer),
  17729. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17731. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17732. msm_routing_get_port_mixer,
  17733. msm_routing_put_port_mixer),
  17734. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17735. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17736. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17737. msm_routing_get_port_mixer,
  17738. msm_routing_put_port_mixer),
  17739. };
  17740. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17742. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17743. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17744. msm_routing_get_port_mixer,
  17745. msm_routing_put_port_mixer),
  17746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17747. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17749. msm_routing_get_port_mixer,
  17750. msm_routing_put_port_mixer),
  17751. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17752. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17753. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17754. msm_routing_get_port_mixer,
  17755. msm_routing_put_port_mixer),
  17756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17757. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17758. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17759. msm_routing_get_port_mixer,
  17760. msm_routing_put_port_mixer),
  17761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17762. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17763. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17764. msm_routing_get_port_mixer,
  17765. msm_routing_put_port_mixer),
  17766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17767. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17768. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17769. msm_routing_get_port_mixer,
  17770. msm_routing_put_port_mixer),
  17771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17774. msm_routing_get_port_mixer,
  17775. msm_routing_put_port_mixer),
  17776. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17777. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17778. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17779. msm_routing_get_port_mixer,
  17780. msm_routing_put_port_mixer),
  17781. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17782. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17783. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17784. msm_routing_get_port_mixer,
  17785. msm_routing_put_port_mixer),
  17786. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17787. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17788. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17789. msm_routing_get_port_mixer,
  17790. msm_routing_put_port_mixer),
  17791. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17792. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17793. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17794. msm_routing_get_port_mixer,
  17795. msm_routing_put_port_mixer),
  17796. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17798. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17799. msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17803. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17804. msm_routing_get_port_mixer,
  17805. msm_routing_put_port_mixer),
  17806. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17807. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17808. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17809. msm_routing_get_port_mixer,
  17810. msm_routing_put_port_mixer),
  17811. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17812. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17813. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17814. msm_routing_get_port_mixer,
  17815. msm_routing_put_port_mixer),
  17816. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17817. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17819. msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17822. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17823. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17824. msm_routing_get_port_mixer,
  17825. msm_routing_put_port_mixer),
  17826. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17827. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17828. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17829. msm_routing_get_port_mixer,
  17830. msm_routing_put_port_mixer),
  17831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17833. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17834. msm_routing_get_port_mixer,
  17835. msm_routing_put_port_mixer),
  17836. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17838. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17839. msm_routing_get_port_mixer,
  17840. msm_routing_put_port_mixer),
  17841. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17842. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17843. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17844. msm_routing_get_port_mixer,
  17845. msm_routing_put_port_mixer),
  17846. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17847. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17848. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17849. msm_routing_get_port_mixer,
  17850. msm_routing_put_port_mixer),
  17851. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17853. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17854. msm_routing_get_port_mixer,
  17855. msm_routing_put_port_mixer),
  17856. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17857. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17858. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17859. msm_routing_get_port_mixer,
  17860. msm_routing_put_port_mixer),
  17861. };
  17862. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  17863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17864. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17865. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17866. msm_routing_get_port_mixer,
  17867. msm_routing_put_port_mixer),
  17868. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17869. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17871. msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17874. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17875. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17876. msm_routing_get_port_mixer,
  17877. msm_routing_put_port_mixer),
  17878. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17879. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17881. msm_routing_get_port_mixer,
  17882. msm_routing_put_port_mixer),
  17883. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17884. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17885. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17886. msm_routing_get_port_mixer,
  17887. msm_routing_put_port_mixer),
  17888. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17889. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17890. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17891. msm_routing_get_port_mixer,
  17892. msm_routing_put_port_mixer),
  17893. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17895. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17896. msm_routing_get_port_mixer,
  17897. msm_routing_put_port_mixer),
  17898. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17899. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17900. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17901. msm_routing_get_port_mixer,
  17902. msm_routing_put_port_mixer),
  17903. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17905. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17906. msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17910. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17911. msm_routing_get_port_mixer,
  17912. msm_routing_put_port_mixer),
  17913. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17914. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17915. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17916. msm_routing_get_port_mixer,
  17917. msm_routing_put_port_mixer),
  17918. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17920. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17921. msm_routing_get_port_mixer,
  17922. msm_routing_put_port_mixer),
  17923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17924. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17925. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17926. msm_routing_get_port_mixer,
  17927. msm_routing_put_port_mixer),
  17928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17929. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17930. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17931. msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17935. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17936. msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17940. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17941. msm_routing_get_port_mixer,
  17942. msm_routing_put_port_mixer),
  17943. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17944. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17945. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17946. msm_routing_get_port_mixer,
  17947. msm_routing_put_port_mixer),
  17948. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17949. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17950. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17951. msm_routing_get_port_mixer,
  17952. msm_routing_put_port_mixer),
  17953. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17954. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17955. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17956. msm_routing_get_port_mixer,
  17957. msm_routing_put_port_mixer),
  17958. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17959. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17960. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17961. msm_routing_get_port_mixer,
  17962. msm_routing_put_port_mixer),
  17963. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17964. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17965. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17966. msm_routing_get_port_mixer,
  17967. msm_routing_put_port_mixer),
  17968. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17969. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17970. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17971. msm_routing_get_port_mixer,
  17972. msm_routing_put_port_mixer),
  17973. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17974. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17975. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17976. msm_routing_get_port_mixer,
  17977. msm_routing_put_port_mixer),
  17978. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17979. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  17980. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17981. msm_routing_get_port_mixer,
  17982. msm_routing_put_port_mixer),
  17983. };
  17984. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  17985. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  17986. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  17987. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  17988. msm_routing_get_port_mixer,
  17989. msm_routing_put_port_mixer),
  17990. };
  17991. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  17992. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17993. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17994. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17995. msm_routing_get_port_mixer,
  17996. msm_routing_put_port_mixer),
  17997. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17998. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  17999. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18000. msm_routing_get_port_mixer,
  18001. msm_routing_put_port_mixer),
  18002. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18003. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18004. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18005. msm_routing_get_port_mixer,
  18006. msm_routing_put_port_mixer),
  18007. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18008. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18009. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18010. msm_routing_get_port_mixer,
  18011. msm_routing_put_port_mixer),
  18012. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18013. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18014. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18015. msm_routing_get_port_mixer,
  18016. msm_routing_put_port_mixer),
  18017. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18018. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18019. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18020. msm_routing_get_port_mixer,
  18021. msm_routing_put_port_mixer),
  18022. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18023. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18024. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18025. msm_routing_get_port_mixer,
  18026. msm_routing_put_port_mixer),
  18027. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18028. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18029. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18030. msm_routing_get_port_mixer,
  18031. msm_routing_put_port_mixer),
  18032. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18033. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18034. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18035. msm_routing_get_port_mixer,
  18036. msm_routing_put_port_mixer),
  18037. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18038. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18039. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18040. msm_routing_get_port_mixer,
  18041. msm_routing_put_port_mixer),
  18042. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18043. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18044. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18045. msm_routing_get_port_mixer,
  18046. msm_routing_put_port_mixer),
  18047. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18048. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18049. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18050. msm_routing_get_port_mixer,
  18051. msm_routing_put_port_mixer),
  18052. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18053. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18054. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18055. msm_routing_get_port_mixer,
  18056. msm_routing_put_port_mixer),
  18057. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18058. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18059. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18060. msm_routing_get_port_mixer,
  18061. msm_routing_put_port_mixer),
  18062. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18063. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18064. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18065. msm_routing_get_port_mixer,
  18066. msm_routing_put_port_mixer),
  18067. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18068. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18069. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18070. msm_routing_get_port_mixer,
  18071. msm_routing_put_port_mixer),
  18072. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18073. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18074. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18075. msm_routing_get_port_mixer,
  18076. msm_routing_put_port_mixer),
  18077. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18078. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18079. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18080. msm_routing_get_port_mixer,
  18081. msm_routing_put_port_mixer),
  18082. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18083. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18084. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18085. msm_routing_get_port_mixer,
  18086. msm_routing_put_port_mixer),
  18087. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18088. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18089. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18090. msm_routing_get_port_mixer,
  18091. msm_routing_put_port_mixer),
  18092. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18093. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18094. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18095. msm_routing_get_port_mixer,
  18096. msm_routing_put_port_mixer),
  18097. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18098. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18099. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18100. msm_routing_get_port_mixer,
  18101. msm_routing_put_port_mixer),
  18102. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18103. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18104. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18105. msm_routing_get_port_mixer,
  18106. msm_routing_put_port_mixer),
  18107. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18108. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18109. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18110. msm_routing_get_port_mixer,
  18111. msm_routing_put_port_mixer),
  18112. };
  18113. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18114. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18115. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18116. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18117. msm_routing_get_port_mixer,
  18118. msm_routing_put_port_mixer),
  18119. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18120. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18121. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18122. msm_routing_get_port_mixer,
  18123. msm_routing_put_port_mixer),
  18124. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18125. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18126. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18127. msm_routing_get_port_mixer,
  18128. msm_routing_put_port_mixer),
  18129. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18130. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18131. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18132. msm_routing_get_port_mixer,
  18133. msm_routing_put_port_mixer),
  18134. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18135. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18136. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18137. msm_routing_get_port_mixer,
  18138. msm_routing_put_port_mixer),
  18139. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18140. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18141. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18142. msm_routing_get_port_mixer,
  18143. msm_routing_put_port_mixer),
  18144. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18145. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18146. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18147. msm_routing_get_port_mixer,
  18148. msm_routing_put_port_mixer),
  18149. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18150. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18151. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18152. msm_routing_get_port_mixer,
  18153. msm_routing_put_port_mixer),
  18154. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18155. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18156. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18157. msm_routing_get_port_mixer,
  18158. msm_routing_put_port_mixer),
  18159. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18160. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18161. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18162. msm_routing_get_port_mixer,
  18163. msm_routing_put_port_mixer),
  18164. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18165. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18166. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18167. msm_routing_get_port_mixer,
  18168. msm_routing_put_port_mixer),
  18169. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18170. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18171. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18172. msm_routing_get_port_mixer,
  18173. msm_routing_put_port_mixer),
  18174. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18175. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18176. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18177. msm_routing_get_port_mixer,
  18178. msm_routing_put_port_mixer),
  18179. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18180. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18181. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18182. msm_routing_get_port_mixer,
  18183. msm_routing_put_port_mixer),
  18184. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18185. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18186. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18187. msm_routing_get_port_mixer,
  18188. msm_routing_put_port_mixer),
  18189. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18190. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18191. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18192. msm_routing_get_port_mixer,
  18193. msm_routing_put_port_mixer),
  18194. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18195. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18196. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18197. msm_routing_get_port_mixer,
  18198. msm_routing_put_port_mixer),
  18199. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18200. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18201. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18202. msm_routing_get_port_mixer,
  18203. msm_routing_put_port_mixer),
  18204. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18205. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18206. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18207. msm_routing_get_port_mixer,
  18208. msm_routing_put_port_mixer),
  18209. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18210. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18211. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18212. msm_routing_get_port_mixer,
  18213. msm_routing_put_port_mixer),
  18214. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18215. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18216. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18217. msm_routing_get_port_mixer,
  18218. msm_routing_put_port_mixer),
  18219. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18220. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18221. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18222. msm_routing_get_port_mixer,
  18223. msm_routing_put_port_mixer),
  18224. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18225. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18226. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18227. msm_routing_get_port_mixer,
  18228. msm_routing_put_port_mixer),
  18229. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18230. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18231. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18232. msm_routing_get_port_mixer,
  18233. msm_routing_put_port_mixer),
  18234. };
  18235. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18236. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18237. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18238. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18239. msm_routing_get_port_mixer,
  18240. msm_routing_put_port_mixer),
  18241. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18242. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18243. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18244. msm_routing_get_port_mixer,
  18245. msm_routing_put_port_mixer),
  18246. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18247. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18248. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18249. msm_routing_get_port_mixer,
  18250. msm_routing_put_port_mixer),
  18251. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18252. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18253. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18254. msm_routing_get_port_mixer,
  18255. msm_routing_put_port_mixer),
  18256. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18257. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18258. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18259. msm_routing_get_port_mixer,
  18260. msm_routing_put_port_mixer),
  18261. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18262. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18263. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18264. msm_routing_get_port_mixer,
  18265. msm_routing_put_port_mixer),
  18266. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18267. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18268. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18269. msm_routing_get_port_mixer,
  18270. msm_routing_put_port_mixer),
  18271. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18272. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18273. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18274. msm_routing_get_port_mixer,
  18275. msm_routing_put_port_mixer),
  18276. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18277. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18278. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18279. msm_routing_get_port_mixer,
  18280. msm_routing_put_port_mixer),
  18281. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18282. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18283. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18284. msm_routing_get_port_mixer,
  18285. msm_routing_put_port_mixer),
  18286. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18287. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18288. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18289. msm_routing_get_port_mixer,
  18290. msm_routing_put_port_mixer),
  18291. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18292. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18293. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18294. msm_routing_get_port_mixer,
  18295. msm_routing_put_port_mixer),
  18296. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18297. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18298. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18299. msm_routing_get_port_mixer,
  18300. msm_routing_put_port_mixer),
  18301. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18302. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18303. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18304. msm_routing_get_port_mixer,
  18305. msm_routing_put_port_mixer),
  18306. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18307. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18308. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18309. msm_routing_get_port_mixer,
  18310. msm_routing_put_port_mixer),
  18311. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18312. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18313. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18314. msm_routing_get_port_mixer,
  18315. msm_routing_put_port_mixer),
  18316. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18317. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18318. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18319. msm_routing_get_port_mixer,
  18320. msm_routing_put_port_mixer),
  18321. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18322. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18323. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18324. msm_routing_get_port_mixer,
  18325. msm_routing_put_port_mixer),
  18326. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18327. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18328. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18329. msm_routing_get_port_mixer,
  18330. msm_routing_put_port_mixer),
  18331. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18332. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18333. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18334. msm_routing_get_port_mixer,
  18335. msm_routing_put_port_mixer),
  18336. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18337. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18338. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18339. msm_routing_get_port_mixer,
  18340. msm_routing_put_port_mixer),
  18341. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18342. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18343. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18344. msm_routing_get_port_mixer,
  18345. msm_routing_put_port_mixer),
  18346. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18347. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18348. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18349. msm_routing_get_port_mixer,
  18350. msm_routing_put_port_mixer),
  18351. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18352. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18353. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18354. msm_routing_get_port_mixer,
  18355. msm_routing_put_port_mixer),
  18356. };
  18357. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18358. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18359. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18360. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18361. msm_routing_get_port_mixer,
  18362. msm_routing_put_port_mixer),
  18363. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18364. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18365. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18366. msm_routing_get_port_mixer,
  18367. msm_routing_put_port_mixer),
  18368. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18369. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18370. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18371. msm_routing_get_port_mixer,
  18372. msm_routing_put_port_mixer),
  18373. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18374. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18375. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18376. msm_routing_get_port_mixer,
  18377. msm_routing_put_port_mixer),
  18378. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18379. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18380. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18381. msm_routing_get_port_mixer,
  18382. msm_routing_put_port_mixer),
  18383. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18384. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18385. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18386. msm_routing_get_port_mixer,
  18387. msm_routing_put_port_mixer),
  18388. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18389. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18390. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18391. msm_routing_get_port_mixer,
  18392. msm_routing_put_port_mixer),
  18393. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18394. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18395. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18396. msm_routing_get_port_mixer,
  18397. msm_routing_put_port_mixer),
  18398. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18399. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18400. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18401. msm_routing_get_port_mixer,
  18402. msm_routing_put_port_mixer),
  18403. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18404. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18405. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18406. msm_routing_get_port_mixer,
  18407. msm_routing_put_port_mixer),
  18408. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18409. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18410. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18411. msm_routing_get_port_mixer,
  18412. msm_routing_put_port_mixer),
  18413. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18414. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18415. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18416. msm_routing_get_port_mixer,
  18417. msm_routing_put_port_mixer),
  18418. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18419. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18420. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18421. msm_routing_get_port_mixer,
  18422. msm_routing_put_port_mixer),
  18423. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18424. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18425. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18426. msm_routing_get_port_mixer,
  18427. msm_routing_put_port_mixer),
  18428. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18429. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18430. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18431. msm_routing_get_port_mixer,
  18432. msm_routing_put_port_mixer),
  18433. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18434. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18435. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18436. msm_routing_get_port_mixer,
  18437. msm_routing_put_port_mixer),
  18438. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18439. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18440. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18441. msm_routing_get_port_mixer,
  18442. msm_routing_put_port_mixer),
  18443. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18444. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18445. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18446. msm_routing_get_port_mixer,
  18447. msm_routing_put_port_mixer),
  18448. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18449. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18450. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18451. msm_routing_get_port_mixer,
  18452. msm_routing_put_port_mixer),
  18453. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18454. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18455. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18456. msm_routing_get_port_mixer,
  18457. msm_routing_put_port_mixer),
  18458. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18459. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18460. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18461. msm_routing_get_port_mixer,
  18462. msm_routing_put_port_mixer),
  18463. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18464. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18465. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18466. msm_routing_get_port_mixer,
  18467. msm_routing_put_port_mixer),
  18468. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18469. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18470. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18471. msm_routing_get_port_mixer,
  18472. msm_routing_put_port_mixer),
  18473. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18474. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18475. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18476. msm_routing_get_port_mixer,
  18477. msm_routing_put_port_mixer),
  18478. };
  18479. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18480. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18481. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18482. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18483. msm_routing_get_port_mixer,
  18484. msm_routing_put_port_mixer),
  18485. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18486. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18487. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18488. msm_routing_get_port_mixer,
  18489. msm_routing_put_port_mixer),
  18490. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18491. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18492. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18493. msm_routing_get_port_mixer,
  18494. msm_routing_put_port_mixer),
  18495. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18496. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18497. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18498. msm_routing_get_port_mixer,
  18499. msm_routing_put_port_mixer),
  18500. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18501. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18502. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18503. msm_routing_get_port_mixer,
  18504. msm_routing_put_port_mixer),
  18505. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18506. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18507. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18508. msm_routing_get_port_mixer,
  18509. msm_routing_put_port_mixer),
  18510. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18511. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18512. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18513. msm_routing_get_port_mixer,
  18514. msm_routing_put_port_mixer),
  18515. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18516. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18517. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18518. msm_routing_get_port_mixer,
  18519. msm_routing_put_port_mixer),
  18520. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18521. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18522. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18523. msm_routing_get_port_mixer,
  18524. msm_routing_put_port_mixer),
  18525. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18526. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18527. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18528. msm_routing_get_port_mixer,
  18529. msm_routing_put_port_mixer),
  18530. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18531. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18532. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18533. msm_routing_get_port_mixer,
  18534. msm_routing_put_port_mixer),
  18535. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18536. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18537. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18538. msm_routing_get_port_mixer,
  18539. msm_routing_put_port_mixer),
  18540. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18541. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18542. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18543. msm_routing_get_port_mixer,
  18544. msm_routing_put_port_mixer),
  18545. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18546. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18547. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18548. msm_routing_get_port_mixer,
  18549. msm_routing_put_port_mixer),
  18550. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18551. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18552. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18553. msm_routing_get_port_mixer,
  18554. msm_routing_put_port_mixer),
  18555. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18556. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18557. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18558. msm_routing_get_port_mixer,
  18559. msm_routing_put_port_mixer),
  18560. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18561. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18562. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18563. msm_routing_get_port_mixer,
  18564. msm_routing_put_port_mixer),
  18565. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18566. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18567. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18568. msm_routing_get_port_mixer,
  18569. msm_routing_put_port_mixer),
  18570. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18571. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18572. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18573. msm_routing_get_port_mixer,
  18574. msm_routing_put_port_mixer),
  18575. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18576. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18577. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18578. msm_routing_get_port_mixer,
  18579. msm_routing_put_port_mixer),
  18580. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18581. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18582. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18583. msm_routing_get_port_mixer,
  18584. msm_routing_put_port_mixer),
  18585. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18586. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18587. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18588. msm_routing_get_port_mixer,
  18589. msm_routing_put_port_mixer),
  18590. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18591. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18592. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18593. msm_routing_get_port_mixer,
  18594. msm_routing_put_port_mixer),
  18595. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18596. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18597. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18598. msm_routing_get_port_mixer,
  18599. msm_routing_put_port_mixer),
  18600. };
  18601. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18602. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18603. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18604. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18605. msm_routing_get_port_mixer,
  18606. msm_routing_put_port_mixer),
  18607. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18608. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18609. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18610. msm_routing_get_port_mixer,
  18611. msm_routing_put_port_mixer),
  18612. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18613. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18614. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18615. msm_routing_get_port_mixer,
  18616. msm_routing_put_port_mixer),
  18617. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18618. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18619. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18620. msm_routing_get_port_mixer,
  18621. msm_routing_put_port_mixer),
  18622. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18623. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18624. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18625. msm_routing_get_port_mixer,
  18626. msm_routing_put_port_mixer),
  18627. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18628. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18629. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18630. msm_routing_get_port_mixer,
  18631. msm_routing_put_port_mixer),
  18632. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18633. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18634. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18635. msm_routing_get_port_mixer,
  18636. msm_routing_put_port_mixer),
  18637. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18638. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18639. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18640. msm_routing_get_port_mixer,
  18641. msm_routing_put_port_mixer),
  18642. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18643. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18644. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18645. msm_routing_get_port_mixer,
  18646. msm_routing_put_port_mixer),
  18647. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18648. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18649. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18650. msm_routing_get_port_mixer,
  18651. msm_routing_put_port_mixer),
  18652. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18653. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18654. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18655. msm_routing_get_port_mixer,
  18656. msm_routing_put_port_mixer),
  18657. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18658. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18659. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18660. msm_routing_get_port_mixer,
  18661. msm_routing_put_port_mixer),
  18662. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18663. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18664. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18665. msm_routing_get_port_mixer,
  18666. msm_routing_put_port_mixer),
  18667. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18668. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18669. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18670. msm_routing_get_port_mixer,
  18671. msm_routing_put_port_mixer),
  18672. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18673. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18674. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18675. msm_routing_get_port_mixer,
  18676. msm_routing_put_port_mixer),
  18677. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18678. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18679. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18680. msm_routing_get_port_mixer,
  18681. msm_routing_put_port_mixer),
  18682. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18683. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18684. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18685. msm_routing_get_port_mixer,
  18686. msm_routing_put_port_mixer),
  18687. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18688. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18689. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18690. msm_routing_get_port_mixer,
  18691. msm_routing_put_port_mixer),
  18692. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18693. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18694. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18695. msm_routing_get_port_mixer,
  18696. msm_routing_put_port_mixer),
  18697. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18698. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18699. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18700. msm_routing_get_port_mixer,
  18701. msm_routing_put_port_mixer),
  18702. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18703. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18704. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18705. msm_routing_get_port_mixer,
  18706. msm_routing_put_port_mixer),
  18707. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18708. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18709. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18710. msm_routing_get_port_mixer,
  18711. msm_routing_put_port_mixer),
  18712. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18713. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18714. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18715. msm_routing_get_port_mixer,
  18716. msm_routing_put_port_mixer),
  18717. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18718. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18719. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18720. msm_routing_get_port_mixer,
  18721. msm_routing_put_port_mixer),
  18722. };
  18723. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18724. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18725. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18726. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18727. msm_routing_get_port_mixer,
  18728. msm_routing_put_port_mixer),
  18729. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18730. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18731. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18732. msm_routing_get_port_mixer,
  18733. msm_routing_put_port_mixer),
  18734. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18735. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18736. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18737. msm_routing_get_port_mixer,
  18738. msm_routing_put_port_mixer),
  18739. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18740. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18741. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18742. msm_routing_get_port_mixer,
  18743. msm_routing_put_port_mixer),
  18744. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18745. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18746. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18747. msm_routing_get_port_mixer,
  18748. msm_routing_put_port_mixer),
  18749. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18750. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18751. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18752. msm_routing_get_port_mixer,
  18753. msm_routing_put_port_mixer),
  18754. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18755. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18756. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18757. msm_routing_get_port_mixer,
  18758. msm_routing_put_port_mixer),
  18759. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18760. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18761. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18762. msm_routing_get_port_mixer,
  18763. msm_routing_put_port_mixer),
  18764. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18765. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18766. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18767. msm_routing_get_port_mixer,
  18768. msm_routing_put_port_mixer),
  18769. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18770. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18771. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18772. msm_routing_get_port_mixer,
  18773. msm_routing_put_port_mixer),
  18774. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18775. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18776. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18777. msm_routing_get_port_mixer,
  18778. msm_routing_put_port_mixer),
  18779. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18780. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18781. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18782. msm_routing_get_port_mixer,
  18783. msm_routing_put_port_mixer),
  18784. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18785. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18786. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18787. msm_routing_get_port_mixer,
  18788. msm_routing_put_port_mixer),
  18789. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18790. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18791. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18792. msm_routing_get_port_mixer,
  18793. msm_routing_put_port_mixer),
  18794. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18795. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18796. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18797. msm_routing_get_port_mixer,
  18798. msm_routing_put_port_mixer),
  18799. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18800. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18801. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18802. msm_routing_get_port_mixer,
  18803. msm_routing_put_port_mixer),
  18804. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18805. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18806. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18807. msm_routing_get_port_mixer,
  18808. msm_routing_put_port_mixer),
  18809. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18810. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18811. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18812. msm_routing_get_port_mixer,
  18813. msm_routing_put_port_mixer),
  18814. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18815. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18816. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18817. msm_routing_get_port_mixer,
  18818. msm_routing_put_port_mixer),
  18819. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18820. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18821. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18822. msm_routing_get_port_mixer,
  18823. msm_routing_put_port_mixer),
  18824. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18825. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18826. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18827. msm_routing_get_port_mixer,
  18828. msm_routing_put_port_mixer),
  18829. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18830. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18831. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18832. msm_routing_get_port_mixer,
  18833. msm_routing_put_port_mixer),
  18834. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18835. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18836. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18837. msm_routing_get_port_mixer,
  18838. msm_routing_put_port_mixer),
  18839. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18840. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18841. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18842. msm_routing_get_port_mixer,
  18843. msm_routing_put_port_mixer),
  18844. };
  18845. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  18846. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18847. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18848. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18849. msm_routing_get_port_mixer,
  18850. msm_routing_put_port_mixer),
  18851. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18852. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18853. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18854. msm_routing_get_port_mixer,
  18855. msm_routing_put_port_mixer),
  18856. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18857. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18858. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18859. msm_routing_get_port_mixer,
  18860. msm_routing_put_port_mixer),
  18861. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18862. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18863. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18864. msm_routing_get_port_mixer,
  18865. msm_routing_put_port_mixer),
  18866. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18867. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18868. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18869. msm_routing_get_port_mixer,
  18870. msm_routing_put_port_mixer),
  18871. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18872. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18873. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18874. msm_routing_get_port_mixer,
  18875. msm_routing_put_port_mixer),
  18876. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18877. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18878. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18879. msm_routing_get_port_mixer,
  18880. msm_routing_put_port_mixer),
  18881. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18882. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18883. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18884. msm_routing_get_port_mixer,
  18885. msm_routing_put_port_mixer),
  18886. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18887. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18888. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18889. msm_routing_get_port_mixer,
  18890. msm_routing_put_port_mixer),
  18891. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18892. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18893. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18894. msm_routing_get_port_mixer,
  18895. msm_routing_put_port_mixer),
  18896. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18897. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18898. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18899. msm_routing_get_port_mixer,
  18900. msm_routing_put_port_mixer),
  18901. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18902. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18903. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18904. msm_routing_get_port_mixer,
  18905. msm_routing_put_port_mixer),
  18906. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18907. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18908. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18909. msm_routing_get_port_mixer,
  18910. msm_routing_put_port_mixer),
  18911. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18912. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18913. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18914. msm_routing_get_port_mixer,
  18915. msm_routing_put_port_mixer),
  18916. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18917. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18918. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18919. msm_routing_get_port_mixer,
  18920. msm_routing_put_port_mixer),
  18921. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18922. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18923. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18924. msm_routing_get_port_mixer,
  18925. msm_routing_put_port_mixer),
  18926. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18927. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18928. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18929. msm_routing_get_port_mixer,
  18930. msm_routing_put_port_mixer),
  18931. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18932. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18933. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18934. msm_routing_get_port_mixer,
  18935. msm_routing_put_port_mixer),
  18936. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18937. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18938. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18939. msm_routing_get_port_mixer,
  18940. msm_routing_put_port_mixer),
  18941. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18942. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18943. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18944. msm_routing_get_port_mixer,
  18945. msm_routing_put_port_mixer),
  18946. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18947. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18948. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18949. msm_routing_get_port_mixer,
  18950. msm_routing_put_port_mixer),
  18951. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18952. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18953. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18954. msm_routing_get_port_mixer,
  18955. msm_routing_put_port_mixer),
  18956. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18957. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18958. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18959. msm_routing_get_port_mixer,
  18960. msm_routing_put_port_mixer),
  18961. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18962. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  18963. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18964. msm_routing_get_port_mixer,
  18965. msm_routing_put_port_mixer),
  18966. };
  18967. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  18968. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  18969. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18970. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  18971. msm_routing_get_port_mixer,
  18972. msm_routing_put_port_mixer),
  18973. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  18974. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  18975. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  18976. msm_routing_get_port_mixer,
  18977. msm_routing_put_port_mixer),
  18978. };
  18979. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  18980. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18981. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18982. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18983. msm_routing_get_port_mixer,
  18984. msm_routing_put_port_mixer),
  18985. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18986. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18987. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18988. msm_routing_get_port_mixer,
  18989. msm_routing_put_port_mixer),
  18990. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18991. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18992. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18993. msm_routing_get_port_mixer,
  18994. msm_routing_put_port_mixer),
  18995. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18996. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  18997. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18998. msm_routing_get_port_mixer,
  18999. msm_routing_put_port_mixer),
  19000. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19001. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19002. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19003. msm_routing_get_port_mixer,
  19004. msm_routing_put_port_mixer),
  19005. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19006. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19007. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19008. msm_routing_get_port_mixer,
  19009. msm_routing_put_port_mixer),
  19010. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19011. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19012. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19013. msm_routing_get_port_mixer,
  19014. msm_routing_put_port_mixer),
  19015. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19016. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19017. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19018. msm_routing_get_port_mixer,
  19019. msm_routing_put_port_mixer),
  19020. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19021. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19022. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19023. msm_routing_get_port_mixer,
  19024. msm_routing_put_port_mixer),
  19025. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19026. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19027. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19028. msm_routing_get_port_mixer,
  19029. msm_routing_put_port_mixer),
  19030. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19031. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19032. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19033. msm_routing_get_port_mixer,
  19034. msm_routing_put_port_mixer),
  19035. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19036. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19037. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19038. msm_routing_get_port_mixer,
  19039. msm_routing_put_port_mixer),
  19040. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19041. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19042. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19043. msm_routing_get_port_mixer,
  19044. msm_routing_put_port_mixer),
  19045. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19046. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19047. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19048. msm_routing_get_port_mixer,
  19049. msm_routing_put_port_mixer),
  19050. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19051. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19052. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19053. msm_routing_get_port_mixer,
  19054. msm_routing_put_port_mixer),
  19055. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19056. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19057. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19058. msm_routing_get_port_mixer,
  19059. msm_routing_put_port_mixer),
  19060. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19061. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19062. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19063. msm_routing_get_port_mixer,
  19064. msm_routing_put_port_mixer),
  19065. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19066. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19067. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19068. msm_routing_get_port_mixer,
  19069. msm_routing_put_port_mixer),
  19070. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19071. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19072. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19073. msm_routing_get_port_mixer,
  19074. msm_routing_put_port_mixer),
  19075. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19076. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19077. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19078. msm_routing_get_port_mixer,
  19079. msm_routing_put_port_mixer),
  19080. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19081. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19082. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19083. msm_routing_get_port_mixer,
  19084. msm_routing_put_port_mixer),
  19085. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19086. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19087. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19088. msm_routing_get_port_mixer,
  19089. msm_routing_put_port_mixer),
  19090. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19091. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19092. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19093. msm_routing_get_port_mixer,
  19094. msm_routing_put_port_mixer),
  19095. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19096. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19097. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19098. msm_routing_get_port_mixer,
  19099. msm_routing_put_port_mixer),
  19100. };
  19101. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19102. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19103. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19104. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19105. msm_routing_get_port_mixer,
  19106. msm_routing_put_port_mixer),
  19107. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19108. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19109. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19110. msm_routing_get_port_mixer,
  19111. msm_routing_put_port_mixer),
  19112. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19113. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19114. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19115. msm_routing_get_port_mixer,
  19116. msm_routing_put_port_mixer),
  19117. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19118. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19119. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19120. msm_routing_get_port_mixer,
  19121. msm_routing_put_port_mixer),
  19122. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19123. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19124. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19125. msm_routing_get_port_mixer,
  19126. msm_routing_put_port_mixer),
  19127. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19128. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19129. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19130. msm_routing_get_port_mixer,
  19131. msm_routing_put_port_mixer),
  19132. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19133. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19134. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19135. msm_routing_get_port_mixer,
  19136. msm_routing_put_port_mixer),
  19137. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19138. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19139. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19140. msm_routing_get_port_mixer,
  19141. msm_routing_put_port_mixer),
  19142. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19143. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19144. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19145. msm_routing_get_port_mixer,
  19146. msm_routing_put_port_mixer),
  19147. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19148. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19149. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19150. msm_routing_get_port_mixer,
  19151. msm_routing_put_port_mixer),
  19152. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19153. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19154. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19155. msm_routing_get_port_mixer,
  19156. msm_routing_put_port_mixer),
  19157. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19158. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19159. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19160. msm_routing_get_port_mixer,
  19161. msm_routing_put_port_mixer),
  19162. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19163. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19164. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19165. msm_routing_get_port_mixer,
  19166. msm_routing_put_port_mixer),
  19167. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19168. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19169. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19170. msm_routing_get_port_mixer,
  19171. msm_routing_put_port_mixer),
  19172. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19173. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19174. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19175. msm_routing_get_port_mixer,
  19176. msm_routing_put_port_mixer),
  19177. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19178. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19179. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19180. msm_routing_get_port_mixer,
  19181. msm_routing_put_port_mixer),
  19182. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19183. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19184. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19185. msm_routing_get_port_mixer,
  19186. msm_routing_put_port_mixer),
  19187. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19188. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19189. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19190. msm_routing_get_port_mixer,
  19191. msm_routing_put_port_mixer),
  19192. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19193. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19194. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19195. msm_routing_get_port_mixer,
  19196. msm_routing_put_port_mixer),
  19197. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19198. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19199. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19200. msm_routing_get_port_mixer,
  19201. msm_routing_put_port_mixer),
  19202. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19203. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19204. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19205. msm_routing_get_port_mixer,
  19206. msm_routing_put_port_mixer),
  19207. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19208. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19209. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19210. msm_routing_get_port_mixer,
  19211. msm_routing_put_port_mixer),
  19212. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19213. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19214. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19215. msm_routing_get_port_mixer,
  19216. msm_routing_put_port_mixer),
  19217. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19218. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19219. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19220. msm_routing_get_port_mixer,
  19221. msm_routing_put_port_mixer),
  19222. };
  19223. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19224. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19225. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19226. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19227. msm_routing_get_port_mixer,
  19228. msm_routing_put_port_mixer),
  19229. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19230. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19231. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19232. msm_routing_get_port_mixer,
  19233. msm_routing_put_port_mixer),
  19234. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19235. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19236. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19237. msm_routing_get_port_mixer,
  19238. msm_routing_put_port_mixer),
  19239. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19240. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19241. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19242. msm_routing_get_port_mixer,
  19243. msm_routing_put_port_mixer),
  19244. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19245. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19246. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19247. msm_routing_get_port_mixer,
  19248. msm_routing_put_port_mixer),
  19249. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19250. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19251. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19252. msm_routing_get_port_mixer,
  19253. msm_routing_put_port_mixer),
  19254. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19255. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19256. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19257. msm_routing_get_port_mixer,
  19258. msm_routing_put_port_mixer),
  19259. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19260. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19261. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19262. msm_routing_get_port_mixer,
  19263. msm_routing_put_port_mixer),
  19264. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19265. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19266. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19267. msm_routing_get_port_mixer,
  19268. msm_routing_put_port_mixer),
  19269. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19270. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19271. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19272. msm_routing_get_port_mixer,
  19273. msm_routing_put_port_mixer),
  19274. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19275. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19276. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19277. msm_routing_get_port_mixer,
  19278. msm_routing_put_port_mixer),
  19279. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19280. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19281. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19282. msm_routing_get_port_mixer,
  19283. msm_routing_put_port_mixer),
  19284. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19285. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19286. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19287. msm_routing_get_port_mixer,
  19288. msm_routing_put_port_mixer),
  19289. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19290. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19291. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19292. msm_routing_get_port_mixer,
  19293. msm_routing_put_port_mixer),
  19294. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19295. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19296. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19297. msm_routing_get_port_mixer,
  19298. msm_routing_put_port_mixer),
  19299. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19300. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19301. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19302. msm_routing_get_port_mixer,
  19303. msm_routing_put_port_mixer),
  19304. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19305. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19306. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19307. msm_routing_get_port_mixer,
  19308. msm_routing_put_port_mixer),
  19309. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19310. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19311. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19312. msm_routing_get_port_mixer,
  19313. msm_routing_put_port_mixer),
  19314. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19315. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19316. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19317. msm_routing_get_port_mixer,
  19318. msm_routing_put_port_mixer),
  19319. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19320. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19321. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19322. msm_routing_get_port_mixer,
  19323. msm_routing_put_port_mixer),
  19324. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19325. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19326. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19327. msm_routing_get_port_mixer,
  19328. msm_routing_put_port_mixer),
  19329. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19330. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19331. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19332. msm_routing_get_port_mixer,
  19333. msm_routing_put_port_mixer),
  19334. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19335. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19336. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19337. msm_routing_get_port_mixer,
  19338. msm_routing_put_port_mixer),
  19339. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19340. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19341. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19342. msm_routing_get_port_mixer,
  19343. msm_routing_put_port_mixer),
  19344. };
  19345. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19346. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19347. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19348. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19349. msm_routing_get_port_mixer,
  19350. msm_routing_put_port_mixer),
  19351. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19352. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19353. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19354. msm_routing_get_port_mixer,
  19355. msm_routing_put_port_mixer),
  19356. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19357. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19358. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19359. msm_routing_get_port_mixer,
  19360. msm_routing_put_port_mixer),
  19361. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19362. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19363. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19364. msm_routing_get_port_mixer,
  19365. msm_routing_put_port_mixer),
  19366. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19367. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19368. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19369. msm_routing_get_port_mixer,
  19370. msm_routing_put_port_mixer),
  19371. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19372. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19373. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19374. msm_routing_get_port_mixer,
  19375. msm_routing_put_port_mixer),
  19376. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19377. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19378. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19379. msm_routing_get_port_mixer,
  19380. msm_routing_put_port_mixer),
  19381. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19382. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19383. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19384. msm_routing_get_port_mixer,
  19385. msm_routing_put_port_mixer),
  19386. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19387. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19388. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19389. msm_routing_get_port_mixer,
  19390. msm_routing_put_port_mixer),
  19391. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19392. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19393. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19394. msm_routing_get_port_mixer,
  19395. msm_routing_put_port_mixer),
  19396. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19397. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19398. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19399. msm_routing_get_port_mixer,
  19400. msm_routing_put_port_mixer),
  19401. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19402. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19403. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19404. msm_routing_get_port_mixer,
  19405. msm_routing_put_port_mixer),
  19406. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19407. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19408. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19409. msm_routing_get_port_mixer,
  19410. msm_routing_put_port_mixer),
  19411. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19412. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19413. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19414. msm_routing_get_port_mixer,
  19415. msm_routing_put_port_mixer),
  19416. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19417. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19418. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19419. msm_routing_get_port_mixer,
  19420. msm_routing_put_port_mixer),
  19421. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19422. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19423. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19424. msm_routing_get_port_mixer,
  19425. msm_routing_put_port_mixer),
  19426. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19427. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19428. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19429. msm_routing_get_port_mixer,
  19430. msm_routing_put_port_mixer),
  19431. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19432. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19433. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19434. msm_routing_get_port_mixer,
  19435. msm_routing_put_port_mixer),
  19436. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19437. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19438. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19439. msm_routing_get_port_mixer,
  19440. msm_routing_put_port_mixer),
  19441. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19442. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19443. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19444. msm_routing_get_port_mixer,
  19445. msm_routing_put_port_mixer),
  19446. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19447. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19448. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19449. msm_routing_get_port_mixer,
  19450. msm_routing_put_port_mixer),
  19451. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19452. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19453. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19454. msm_routing_get_port_mixer,
  19455. msm_routing_put_port_mixer),
  19456. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19457. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19458. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19459. msm_routing_get_port_mixer,
  19460. msm_routing_put_port_mixer),
  19461. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19462. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19463. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19464. msm_routing_get_port_mixer,
  19465. msm_routing_put_port_mixer),
  19466. };
  19467. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19468. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19469. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19470. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19471. msm_routing_get_port_mixer,
  19472. msm_routing_put_port_mixer),
  19473. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19474. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19475. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19476. msm_routing_get_port_mixer,
  19477. msm_routing_put_port_mixer),
  19478. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19479. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19480. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19481. msm_routing_get_port_mixer,
  19482. msm_routing_put_port_mixer),
  19483. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19484. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19485. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19486. msm_routing_get_port_mixer,
  19487. msm_routing_put_port_mixer),
  19488. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19489. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19490. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19491. msm_routing_get_port_mixer,
  19492. msm_routing_put_port_mixer),
  19493. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19494. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19495. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19496. msm_routing_get_port_mixer,
  19497. msm_routing_put_port_mixer),
  19498. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19499. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19500. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19501. msm_routing_get_port_mixer,
  19502. msm_routing_put_port_mixer),
  19503. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19504. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19505. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19506. msm_routing_get_port_mixer,
  19507. msm_routing_put_port_mixer),
  19508. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19509. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19510. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19511. msm_routing_get_port_mixer,
  19512. msm_routing_put_port_mixer),
  19513. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19514. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19515. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19516. msm_routing_get_port_mixer,
  19517. msm_routing_put_port_mixer),
  19518. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19519. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19520. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19521. msm_routing_get_port_mixer,
  19522. msm_routing_put_port_mixer),
  19523. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19524. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19525. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19526. msm_routing_get_port_mixer,
  19527. msm_routing_put_port_mixer),
  19528. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19529. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19530. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19531. msm_routing_get_port_mixer,
  19532. msm_routing_put_port_mixer),
  19533. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19534. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19535. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19536. msm_routing_get_port_mixer,
  19537. msm_routing_put_port_mixer),
  19538. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19539. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19540. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19541. msm_routing_get_port_mixer,
  19542. msm_routing_put_port_mixer),
  19543. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19544. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19545. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19546. msm_routing_get_port_mixer,
  19547. msm_routing_put_port_mixer),
  19548. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19549. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19550. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19551. msm_routing_get_port_mixer,
  19552. msm_routing_put_port_mixer),
  19553. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19554. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19555. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19556. msm_routing_get_port_mixer,
  19557. msm_routing_put_port_mixer),
  19558. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19559. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19560. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19561. msm_routing_get_port_mixer,
  19562. msm_routing_put_port_mixer),
  19563. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19564. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19565. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19566. msm_routing_get_port_mixer,
  19567. msm_routing_put_port_mixer),
  19568. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19569. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19570. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19571. msm_routing_get_port_mixer,
  19572. msm_routing_put_port_mixer),
  19573. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19574. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19575. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19576. msm_routing_get_port_mixer,
  19577. msm_routing_put_port_mixer),
  19578. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19579. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19580. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19581. msm_routing_get_port_mixer,
  19582. msm_routing_put_port_mixer),
  19583. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19584. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19585. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19586. msm_routing_get_port_mixer,
  19587. msm_routing_put_port_mixer),
  19588. };
  19589. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19590. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19591. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19592. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19593. msm_routing_get_port_mixer,
  19594. msm_routing_put_port_mixer),
  19595. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19596. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19597. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19598. msm_routing_get_port_mixer,
  19599. msm_routing_put_port_mixer),
  19600. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19601. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19602. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19603. msm_routing_get_port_mixer,
  19604. msm_routing_put_port_mixer),
  19605. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19606. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19607. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19608. msm_routing_get_port_mixer,
  19609. msm_routing_put_port_mixer),
  19610. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19611. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19612. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19613. msm_routing_get_port_mixer,
  19614. msm_routing_put_port_mixer),
  19615. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19616. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19617. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19618. msm_routing_get_port_mixer,
  19619. msm_routing_put_port_mixer),
  19620. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19621. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19622. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19623. msm_routing_get_port_mixer,
  19624. msm_routing_put_port_mixer),
  19625. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19626. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19627. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19628. msm_routing_get_port_mixer,
  19629. msm_routing_put_port_mixer),
  19630. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19632. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19633. msm_routing_get_port_mixer,
  19634. msm_routing_put_port_mixer),
  19635. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19636. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19637. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19638. msm_routing_get_port_mixer,
  19639. msm_routing_put_port_mixer),
  19640. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19641. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19642. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19643. msm_routing_get_port_mixer,
  19644. msm_routing_put_port_mixer),
  19645. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19646. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19647. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19648. msm_routing_get_port_mixer,
  19649. msm_routing_put_port_mixer),
  19650. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19651. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19652. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19653. msm_routing_get_port_mixer,
  19654. msm_routing_put_port_mixer),
  19655. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19656. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19657. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19658. msm_routing_get_port_mixer,
  19659. msm_routing_put_port_mixer),
  19660. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19662. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19663. msm_routing_get_port_mixer,
  19664. msm_routing_put_port_mixer),
  19665. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19666. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19667. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19668. msm_routing_get_port_mixer,
  19669. msm_routing_put_port_mixer),
  19670. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19671. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19672. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19673. msm_routing_get_port_mixer,
  19674. msm_routing_put_port_mixer),
  19675. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19676. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19677. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19678. msm_routing_get_port_mixer,
  19679. msm_routing_put_port_mixer),
  19680. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19681. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19682. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19683. msm_routing_get_port_mixer,
  19684. msm_routing_put_port_mixer),
  19685. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19686. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19687. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19688. msm_routing_get_port_mixer,
  19689. msm_routing_put_port_mixer),
  19690. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19691. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19692. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19693. msm_routing_get_port_mixer,
  19694. msm_routing_put_port_mixer),
  19695. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19696. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19697. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19698. msm_routing_get_port_mixer,
  19699. msm_routing_put_port_mixer),
  19700. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19701. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19702. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19703. msm_routing_get_port_mixer,
  19704. msm_routing_put_port_mixer),
  19705. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19706. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19707. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19708. msm_routing_get_port_mixer,
  19709. msm_routing_put_port_mixer),
  19710. };
  19711. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19712. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19713. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19714. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19715. msm_routing_get_port_mixer,
  19716. msm_routing_put_port_mixer),
  19717. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19718. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19719. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19720. msm_routing_get_port_mixer,
  19721. msm_routing_put_port_mixer),
  19722. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19723. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19724. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19725. msm_routing_get_port_mixer,
  19726. msm_routing_put_port_mixer),
  19727. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19728. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19729. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19730. msm_routing_get_port_mixer,
  19731. msm_routing_put_port_mixer),
  19732. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19733. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19734. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19735. msm_routing_get_port_mixer,
  19736. msm_routing_put_port_mixer),
  19737. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19738. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19739. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19740. msm_routing_get_port_mixer,
  19741. msm_routing_put_port_mixer),
  19742. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19743. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19744. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19745. msm_routing_get_port_mixer,
  19746. msm_routing_put_port_mixer),
  19747. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19748. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19749. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19750. msm_routing_get_port_mixer,
  19751. msm_routing_put_port_mixer),
  19752. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19753. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19754. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19755. msm_routing_get_port_mixer,
  19756. msm_routing_put_port_mixer),
  19757. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19758. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19759. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19760. msm_routing_get_port_mixer,
  19761. msm_routing_put_port_mixer),
  19762. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19763. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19764. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19765. msm_routing_get_port_mixer,
  19766. msm_routing_put_port_mixer),
  19767. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19768. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19769. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19770. msm_routing_get_port_mixer,
  19771. msm_routing_put_port_mixer),
  19772. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19773. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19774. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19775. msm_routing_get_port_mixer,
  19776. msm_routing_put_port_mixer),
  19777. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19778. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19779. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19780. msm_routing_get_port_mixer,
  19781. msm_routing_put_port_mixer),
  19782. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19783. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19784. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19785. msm_routing_get_port_mixer,
  19786. msm_routing_put_port_mixer),
  19787. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19788. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19789. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19790. msm_routing_get_port_mixer,
  19791. msm_routing_put_port_mixer),
  19792. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19793. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19794. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19795. msm_routing_get_port_mixer,
  19796. msm_routing_put_port_mixer),
  19797. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19798. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19799. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19800. msm_routing_get_port_mixer,
  19801. msm_routing_put_port_mixer),
  19802. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19803. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19804. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19805. msm_routing_get_port_mixer,
  19806. msm_routing_put_port_mixer),
  19807. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19808. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19809. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19810. msm_routing_get_port_mixer,
  19811. msm_routing_put_port_mixer),
  19812. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19813. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19814. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19815. msm_routing_get_port_mixer,
  19816. msm_routing_put_port_mixer),
  19817. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19818. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19819. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19820. msm_routing_get_port_mixer,
  19821. msm_routing_put_port_mixer),
  19822. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19823. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19824. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19825. msm_routing_get_port_mixer,
  19826. msm_routing_put_port_mixer),
  19827. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19828. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19829. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19830. msm_routing_get_port_mixer,
  19831. msm_routing_put_port_mixer),
  19832. };
  19833. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  19834. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19835. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19836. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19837. msm_routing_get_port_mixer,
  19838. msm_routing_put_port_mixer),
  19839. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19840. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19841. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19842. msm_routing_get_port_mixer,
  19843. msm_routing_put_port_mixer),
  19844. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19845. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19846. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19847. msm_routing_get_port_mixer,
  19848. msm_routing_put_port_mixer),
  19849. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19850. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19851. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19852. msm_routing_get_port_mixer,
  19853. msm_routing_put_port_mixer),
  19854. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19855. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19856. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19857. msm_routing_get_port_mixer,
  19858. msm_routing_put_port_mixer),
  19859. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19860. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19861. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19862. msm_routing_get_port_mixer,
  19863. msm_routing_put_port_mixer),
  19864. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19865. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19866. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19867. msm_routing_get_port_mixer,
  19868. msm_routing_put_port_mixer),
  19869. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19870. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19871. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19872. msm_routing_get_port_mixer,
  19873. msm_routing_put_port_mixer),
  19874. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19875. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19876. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19877. msm_routing_get_port_mixer,
  19878. msm_routing_put_port_mixer),
  19879. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19880. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19881. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19882. msm_routing_get_port_mixer,
  19883. msm_routing_put_port_mixer),
  19884. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19885. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19886. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19887. msm_routing_get_port_mixer,
  19888. msm_routing_put_port_mixer),
  19889. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19891. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19892. msm_routing_get_port_mixer,
  19893. msm_routing_put_port_mixer),
  19894. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19895. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19896. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19897. msm_routing_get_port_mixer,
  19898. msm_routing_put_port_mixer),
  19899. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19900. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19901. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19902. msm_routing_get_port_mixer,
  19903. msm_routing_put_port_mixer),
  19904. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19905. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19906. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19907. msm_routing_get_port_mixer,
  19908. msm_routing_put_port_mixer),
  19909. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19911. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19912. msm_routing_get_port_mixer,
  19913. msm_routing_put_port_mixer),
  19914. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19915. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19916. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19917. msm_routing_get_port_mixer,
  19918. msm_routing_put_port_mixer),
  19919. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19920. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19921. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19922. msm_routing_get_port_mixer,
  19923. msm_routing_put_port_mixer),
  19924. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19925. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19926. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19927. msm_routing_get_port_mixer,
  19928. msm_routing_put_port_mixer),
  19929. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19930. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19931. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19932. msm_routing_get_port_mixer,
  19933. msm_routing_put_port_mixer),
  19934. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19935. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19936. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19937. msm_routing_get_port_mixer,
  19938. msm_routing_put_port_mixer),
  19939. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19940. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19941. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19942. msm_routing_get_port_mixer,
  19943. msm_routing_put_port_mixer),
  19944. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19945. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19946. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19947. msm_routing_get_port_mixer,
  19948. msm_routing_put_port_mixer),
  19949. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19950. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  19951. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19952. msm_routing_get_port_mixer,
  19953. msm_routing_put_port_mixer),
  19954. };
  19955. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  19956. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19957. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19958. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19959. msm_routing_get_port_mixer,
  19960. msm_routing_put_port_mixer),
  19961. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19962. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19963. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19964. msm_routing_get_port_mixer,
  19965. msm_routing_put_port_mixer),
  19966. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19967. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  19968. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19969. msm_routing_get_port_mixer,
  19970. msm_routing_put_port_mixer),
  19971. };
  19972. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  19973. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19974. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19975. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19976. msm_routing_put_port_mixer),
  19977. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19978. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19979. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19980. msm_routing_put_port_mixer),
  19981. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19983. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  19984. msm_routing_put_port_mixer),
  19985. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19986. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19987. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19988. msm_routing_put_port_mixer),
  19989. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  19990. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19991. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19992. msm_routing_put_port_mixer),
  19993. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  19994. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19995. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  19996. msm_routing_put_port_mixer),
  19997. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  19999. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20000. msm_routing_put_port_mixer),
  20001. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20003. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20004. msm_routing_put_port_mixer),
  20005. };
  20006. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20007. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20009. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20010. msm_routing_put_port_mixer),
  20011. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20013. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20014. msm_routing_put_port_mixer),
  20015. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20016. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20017. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20018. msm_routing_put_port_mixer),
  20019. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20020. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20021. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20022. msm_routing_put_port_mixer),
  20023. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20024. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20025. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20029. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20030. msm_routing_put_port_mixer),
  20031. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20033. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20034. msm_routing_put_port_mixer),
  20035. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20036. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20037. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20038. msm_routing_put_port_mixer),
  20039. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20040. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20041. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20042. msm_routing_put_port_mixer),
  20043. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20044. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20045. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20046. msm_routing_put_port_mixer),
  20047. };
  20048. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20049. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20050. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20051. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20052. msm_routing_put_listen_mixer),
  20053. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20054. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20055. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20056. msm_routing_put_listen_mixer),
  20057. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20059. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20060. msm_routing_put_listen_mixer),
  20061. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20062. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20063. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20064. msm_routing_put_listen_mixer),
  20065. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20066. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20067. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20068. msm_routing_put_listen_mixer),
  20069. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20070. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20071. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20072. msm_routing_put_listen_mixer),
  20073. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20074. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20075. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20076. msm_routing_put_listen_mixer),
  20077. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20078. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20079. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20080. msm_routing_put_listen_mixer),
  20081. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20082. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20083. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20084. msm_routing_put_listen_mixer),
  20085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20087. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20088. msm_routing_put_listen_mixer),
  20089. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20091. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20092. msm_routing_put_listen_mixer),
  20093. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20094. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20095. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20096. msm_routing_put_listen_mixer),
  20097. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20098. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20099. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20100. msm_routing_put_listen_mixer),
  20101. };
  20102. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20103. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20104. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20105. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20106. msm_routing_put_listen_mixer),
  20107. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20108. SND_SOC_NOPM,
  20109. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20110. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20111. msm_routing_put_listen_mixer),
  20112. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20113. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20114. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20115. msm_routing_put_listen_mixer),
  20116. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20117. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20118. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20119. msm_routing_put_listen_mixer),
  20120. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20121. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20122. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20123. msm_routing_put_listen_mixer),
  20124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20126. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20127. msm_routing_put_listen_mixer),
  20128. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20130. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20131. msm_routing_put_listen_mixer),
  20132. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20133. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20134. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20135. msm_routing_put_listen_mixer),
  20136. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20137. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20138. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20139. msm_routing_put_listen_mixer),
  20140. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20141. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20142. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20143. msm_routing_put_listen_mixer),
  20144. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20145. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20146. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20147. msm_routing_put_listen_mixer),
  20148. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20149. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20150. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20151. msm_routing_put_listen_mixer),
  20152. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20153. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20154. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20155. msm_routing_put_listen_mixer),
  20156. };
  20157. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20158. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20159. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20160. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20161. msm_routing_put_listen_mixer),
  20162. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20163. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20164. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20165. msm_routing_put_listen_mixer),
  20166. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20167. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20168. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20169. msm_routing_put_listen_mixer),
  20170. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20171. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20172. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20173. msm_routing_put_listen_mixer),
  20174. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20175. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20176. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20177. msm_routing_put_listen_mixer),
  20178. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20179. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20180. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20181. msm_routing_put_listen_mixer),
  20182. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20183. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20184. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20185. msm_routing_put_listen_mixer),
  20186. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20187. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20188. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20189. msm_routing_put_listen_mixer),
  20190. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20191. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20192. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20193. msm_routing_put_listen_mixer),
  20194. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20195. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20196. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20197. msm_routing_put_listen_mixer),
  20198. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20199. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20200. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20201. msm_routing_put_listen_mixer),
  20202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20204. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20205. msm_routing_put_listen_mixer),
  20206. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20208. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20209. msm_routing_put_listen_mixer),
  20210. };
  20211. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20212. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20213. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20214. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20215. msm_routing_put_listen_mixer),
  20216. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20217. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20218. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20219. msm_routing_put_listen_mixer),
  20220. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20221. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20222. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20223. msm_routing_put_listen_mixer),
  20224. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20225. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20226. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20227. msm_routing_put_listen_mixer),
  20228. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20229. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20230. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20231. msm_routing_put_listen_mixer),
  20232. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20233. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20234. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20235. msm_routing_put_listen_mixer),
  20236. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20237. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20238. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20239. msm_routing_put_listen_mixer),
  20240. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20242. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20243. msm_routing_put_listen_mixer),
  20244. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20245. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20246. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20247. msm_routing_put_listen_mixer),
  20248. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20249. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20250. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20251. msm_routing_put_listen_mixer),
  20252. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20253. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20254. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20255. msm_routing_put_listen_mixer),
  20256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20258. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20259. msm_routing_put_listen_mixer),
  20260. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20262. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20263. msm_routing_put_listen_mixer),
  20264. };
  20265. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20266. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20267. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20268. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20269. msm_routing_put_listen_mixer),
  20270. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20272. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20273. msm_routing_put_listen_mixer),
  20274. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20275. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20276. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20277. msm_routing_put_listen_mixer),
  20278. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20279. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20280. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20281. msm_routing_put_listen_mixer),
  20282. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20283. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20284. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20285. msm_routing_put_listen_mixer),
  20286. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20287. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20288. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20289. msm_routing_put_listen_mixer),
  20290. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20292. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20293. msm_routing_put_listen_mixer),
  20294. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20295. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20296. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20297. msm_routing_put_listen_mixer),
  20298. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20299. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20300. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20301. msm_routing_put_listen_mixer),
  20302. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20303. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20304. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20305. msm_routing_put_listen_mixer),
  20306. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20307. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20308. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20309. msm_routing_put_listen_mixer),
  20310. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20311. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20312. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20313. msm_routing_put_listen_mixer),
  20314. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20315. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20316. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20317. msm_routing_put_listen_mixer),
  20318. };
  20319. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20320. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20321. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20322. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20323. msm_routing_put_listen_mixer),
  20324. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20325. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20326. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20327. msm_routing_put_listen_mixer),
  20328. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20330. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20331. msm_routing_put_listen_mixer),
  20332. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20333. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20334. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20335. msm_routing_put_listen_mixer),
  20336. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20337. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20338. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20339. msm_routing_put_listen_mixer),
  20340. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20341. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20342. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20343. msm_routing_put_listen_mixer),
  20344. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20345. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20346. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20347. msm_routing_put_listen_mixer),
  20348. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20350. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20351. msm_routing_put_listen_mixer),
  20352. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20354. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20355. msm_routing_put_listen_mixer),
  20356. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20357. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20358. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20359. msm_routing_put_listen_mixer),
  20360. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20361. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20362. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20363. msm_routing_put_listen_mixer),
  20364. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20365. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20366. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20367. msm_routing_put_listen_mixer),
  20368. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20370. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20371. msm_routing_put_listen_mixer),
  20372. };
  20373. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20374. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20375. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20376. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20377. msm_routing_put_listen_mixer),
  20378. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20380. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20381. msm_routing_put_listen_mixer),
  20382. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20384. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20385. msm_routing_put_listen_mixer),
  20386. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20387. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20388. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20389. msm_routing_put_listen_mixer),
  20390. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20391. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20392. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20393. msm_routing_put_listen_mixer),
  20394. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20395. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20396. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20397. msm_routing_put_listen_mixer),
  20398. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20400. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20401. msm_routing_put_listen_mixer),
  20402. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20404. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20405. msm_routing_put_listen_mixer),
  20406. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20407. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20408. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20409. msm_routing_put_listen_mixer),
  20410. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20411. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20412. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20413. msm_routing_put_listen_mixer),
  20414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20416. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20417. msm_routing_put_listen_mixer),
  20418. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20419. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20420. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20421. msm_routing_put_listen_mixer),
  20422. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20423. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20424. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20425. msm_routing_put_listen_mixer),
  20426. };
  20427. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20428. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20429. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20430. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20431. msm_routing_put_listen_mixer),
  20432. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20434. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20435. msm_routing_put_listen_mixer),
  20436. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20437. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20438. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20439. msm_routing_put_listen_mixer),
  20440. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20441. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20442. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20443. msm_routing_put_listen_mixer),
  20444. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20445. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20446. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20447. msm_routing_put_listen_mixer),
  20448. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20449. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20450. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20451. msm_routing_put_listen_mixer),
  20452. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20453. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20454. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20455. msm_routing_put_listen_mixer),
  20456. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20457. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20458. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20459. msm_routing_put_listen_mixer),
  20460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20462. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20463. msm_routing_put_listen_mixer),
  20464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20466. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20467. msm_routing_put_listen_mixer),
  20468. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20469. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20470. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20471. msm_routing_put_listen_mixer),
  20472. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20473. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20474. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20475. msm_routing_put_listen_mixer),
  20476. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20477. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20478. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20479. msm_routing_put_listen_mixer),
  20480. };
  20481. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20482. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20483. 0, 1, 0, msm_routing_get_switch_mixer,
  20484. msm_routing_put_switch_mixer);
  20485. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20486. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20487. 0, 1, 0, msm_routing_get_switch_mixer,
  20488. msm_routing_put_switch_mixer);
  20489. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20490. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20491. 0, 1, 0, msm_routing_get_switch_mixer,
  20492. msm_routing_put_switch_mixer);
  20493. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20494. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20495. 0, 1, 0, msm_routing_get_switch_mixer,
  20496. msm_routing_put_switch_mixer);
  20497. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20498. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20499. 0, 1, 0, msm_routing_get_switch_mixer,
  20500. msm_routing_put_switch_mixer);
  20501. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20502. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20503. 0, 1, 0, msm_routing_get_switch_mixer,
  20504. msm_routing_put_switch_mixer);
  20505. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20506. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20507. 0, 1, 0, msm_routing_get_switch_mixer,
  20508. msm_routing_put_switch_mixer);
  20509. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20510. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20511. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20512. msm_routing_put_fm_pcmrx_switch_mixer);
  20513. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20514. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20515. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20516. msm_routing_put_int0_mi2s_switch_mixer);
  20517. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20518. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20519. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20520. msm_routing_put_int4_mi2s_switch_mixer);
  20521. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20522. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20523. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20524. msm_routing_put_pri_mi2s_switch_mixer);
  20525. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20526. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20527. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20528. msm_routing_put_sec_mi2s_switch_mixer);
  20529. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20530. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20531. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20532. msm_routing_put_tert_mi2s_switch_mixer);
  20533. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20534. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20535. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20536. msm_routing_put_quat_mi2s_switch_mixer);
  20537. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20538. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20539. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20540. msm_routing_put_quin_mi2s_switch_mixer);
  20541. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20542. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20543. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20544. msm_routing_put_sen_mi2s_switch_mixer);
  20545. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20546. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20547. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20548. msm_routing_put_hfp_switch_mixer);
  20549. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20550. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20551. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20552. msm_routing_put_hfp_switch_mixer);
  20553. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20554. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20555. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20556. msm_routing_put_hfp_switch_mixer);
  20557. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20558. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20559. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20560. msm_routing_put_hfp_switch_mixer);
  20561. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20562. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20563. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20564. msm_routing_put_usb_switch_mixer);
  20565. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20566. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20567. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20568. msm_routing_a2dp_switch_mixer_put);
  20569. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20570. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20571. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20572. msm_routing_sco_switch_mixer_put);
  20573. static const struct soc_enum lsm_port_enum =
  20574. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20575. static const char * const lsm_func_text[] = {
  20576. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20577. };
  20578. static const struct soc_enum lsm_func_enum =
  20579. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20580. static const struct snd_kcontrol_new lsm_controls[] = {
  20581. /* kcontrol of lsm_function */
  20582. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20583. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20584. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20585. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20586. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20587. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20588. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20589. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20590. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20591. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20592. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20593. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20594. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20595. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20596. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20597. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20598. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20599. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20600. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20601. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20602. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20603. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20604. /* kcontrol of lsm_port */
  20605. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20606. msm_routing_lsm_port_get,
  20607. msm_routing_lsm_port_put),
  20608. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20609. msm_routing_lsm_port_get,
  20610. msm_routing_lsm_port_put),
  20611. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20612. msm_routing_lsm_port_get,
  20613. msm_routing_lsm_port_put),
  20614. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20615. msm_routing_lsm_port_get,
  20616. msm_routing_lsm_port_put),
  20617. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20618. msm_routing_lsm_port_get,
  20619. msm_routing_lsm_port_put),
  20620. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20621. msm_routing_lsm_port_get,
  20622. msm_routing_lsm_port_put),
  20623. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20624. msm_routing_lsm_port_get,
  20625. msm_routing_lsm_port_put),
  20626. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20627. msm_routing_lsm_port_get,
  20628. msm_routing_lsm_port_put),
  20629. };
  20630. static const char * const aanc_slim_0_rx_text[] = {
  20631. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20632. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20633. };
  20634. static const struct soc_enum aanc_slim_0_rx_enum =
  20635. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20636. aanc_slim_0_rx_text);
  20637. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20638. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20639. msm_routing_slim_0_rx_aanc_mux_get,
  20640. msm_routing_slim_0_rx_aanc_mux_put)
  20641. };
  20642. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20643. struct snd_ctl_elem_value *ucontrol)
  20644. {
  20645. ucontrol->value.integer.value[0] = aanc_level;
  20646. return 0;
  20647. }
  20648. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20649. struct snd_ctl_elem_value *ucontrol)
  20650. {
  20651. int ret = 0;
  20652. mutex_lock(&routing_lock);
  20653. aanc_level = ucontrol->value.integer.value[0];
  20654. pr_debug("%s: value: %ld\n",
  20655. __func__, ucontrol->value.integer.value[0]);
  20656. ret = afe_set_aanc_noise_level(aanc_level);
  20657. mutex_unlock(&routing_lock);
  20658. return ret;
  20659. }
  20660. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20661. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20662. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20663. };
  20664. static int msm_routing_get_stereo_to_custom_stereo_control(
  20665. struct snd_kcontrol *kcontrol,
  20666. struct snd_ctl_elem_value *ucontrol)
  20667. {
  20668. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20669. return 0;
  20670. }
  20671. static int msm_routing_put_stereo_to_custom_stereo_control(
  20672. struct snd_kcontrol *kcontrol,
  20673. struct snd_ctl_elem_value *ucontrol)
  20674. {
  20675. int flag = 0, i = 0, rc = 0, idx = 0;
  20676. int be_index = 0, port_id, topo_id;
  20677. unsigned int session_id = 0;
  20678. uint16_t op_FL_ip_FL_weight = 0;
  20679. uint16_t op_FL_ip_FR_weight = 0;
  20680. uint16_t op_FR_ip_FL_weight = 0;
  20681. uint16_t op_FR_ip_FR_weight = 0;
  20682. flag = ucontrol->value.integer.value[0];
  20683. pr_debug("%s E flag %d\n", __func__, flag);
  20684. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20685. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20686. __func__, is_custom_stereo_on, flag);
  20687. return 0;
  20688. }
  20689. is_custom_stereo_on = flag ? true : false;
  20690. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20691. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20692. port_id = msm_bedais[be_index].port_id;
  20693. if (!msm_bedais[be_index].active)
  20694. continue;
  20695. if ((port_id != SLIMBUS_0_RX) &&
  20696. (port_id != RT_PROXY_PORT_001_RX) &&
  20697. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20698. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20699. continue;
  20700. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20701. MSM_FRONTEND_DAI_MM_SIZE) {
  20702. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20703. LEGACY_PCM_MODE)
  20704. goto skip_send_custom_stereo;
  20705. session_id =
  20706. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20707. if (is_custom_stereo_on) {
  20708. op_FL_ip_FL_weight =
  20709. Q14_GAIN_ZERO_POINT_FIVE;
  20710. op_FL_ip_FR_weight =
  20711. Q14_GAIN_ZERO_POINT_FIVE;
  20712. op_FR_ip_FL_weight =
  20713. Q14_GAIN_ZERO_POINT_FIVE;
  20714. op_FR_ip_FR_weight =
  20715. Q14_GAIN_ZERO_POINT_FIVE;
  20716. } else {
  20717. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20718. op_FL_ip_FR_weight = 0;
  20719. op_FR_ip_FL_weight = 0;
  20720. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20721. }
  20722. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20723. unsigned long copp =
  20724. session_copp_map[i]
  20725. [SESSION_TYPE_RX][be_index];
  20726. if (!test_bit(idx, &copp))
  20727. goto skip_send_custom_stereo;
  20728. topo_id = adm_get_topology_for_port_copp_idx(
  20729. msm_bedais[be_index].port_id, idx);
  20730. if (topo_id < 0)
  20731. pr_debug("%s:Err:custom stereo topo %d",
  20732. __func__, topo_id);
  20733. pr_debug("idx %d\n", idx);
  20734. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20735. rc = msm_ds2_dap_set_custom_stereo_onoff
  20736. (msm_bedais[be_index].port_id,
  20737. idx, is_custom_stereo_on);
  20738. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20739. rc = dolby_dap_set_custom_stereo_onoff(
  20740. msm_bedais[be_index].port_id,
  20741. idx, is_custom_stereo_on);
  20742. else
  20743. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20744. (msm_bedais[be_index].port_id,
  20745. idx, session_id,
  20746. op_FL_ip_FL_weight,
  20747. op_FL_ip_FR_weight,
  20748. op_FR_ip_FL_weight,
  20749. op_FR_ip_FR_weight);
  20750. if (rc < 0)
  20751. skip_send_custom_stereo:
  20752. pr_err("%s: err setting custom stereo\n",
  20753. __func__);
  20754. }
  20755. }
  20756. }
  20757. return 0;
  20758. }
  20759. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20760. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20761. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20762. msm_routing_put_stereo_to_custom_stereo_control),
  20763. };
  20764. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20765. struct snd_ctl_elem_value *ucontrol)
  20766. {
  20767. return 0;
  20768. }
  20769. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20770. struct snd_ctl_elem_value *ucontrol)
  20771. {
  20772. int i = 0, j;
  20773. int num_app_types = ucontrol->value.integer.value[i++];
  20774. pr_debug("%s\n", __func__);
  20775. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20776. sizeof(struct msm_pcm_routing_app_type_data));
  20777. if (num_app_types > MAX_APP_TYPES) {
  20778. pr_err("%s: number of app types exceed the max supported\n",
  20779. __func__);
  20780. return -EINVAL;
  20781. }
  20782. for (j = 0; j < num_app_types; j++) {
  20783. app_type_cfg[j].app_type =
  20784. ucontrol->value.integer.value[i++];
  20785. app_type_cfg[j].sample_rate =
  20786. ucontrol->value.integer.value[i++];
  20787. app_type_cfg[j].bit_width =
  20788. ucontrol->value.integer.value[i++];
  20789. }
  20790. return 0;
  20791. }
  20792. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  20793. struct snd_ctl_elem_value *ucontrol)
  20794. {
  20795. int j, fe_id, be_id, port_type;
  20796. int ret = 0;
  20797. unsigned long copp;
  20798. struct msm_pcm_routing_bdai_data *bedai;
  20799. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20800. SESSION_TYPE_RX;
  20801. int app_type = ucontrol->value.integer.value[1];
  20802. int gain = (ucontrol->value.integer.value[2] +
  20803. ucontrol->value.integer.value[3])/2;
  20804. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20805. MSM_AFE_PORT_TYPE_TX;
  20806. mutex_lock(&routing_lock);
  20807. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20808. if (is_be_dai_extproc(be_id))
  20809. continue;
  20810. bedai = &msm_bedais[be_id];
  20811. if (afe_get_port_type(bedai->port_id) != port_type)
  20812. continue;
  20813. if (!bedai->active)
  20814. continue;
  20815. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20816. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20817. continue;
  20818. if (app_type !=
  20819. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20820. continue;
  20821. copp = session_copp_map[fe_id][dir][be_id];
  20822. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  20823. if (!test_bit(j, &copp))
  20824. continue;
  20825. ret |= adm_set_volume(bedai->port_id, j, gain);
  20826. }
  20827. }
  20828. }
  20829. mutex_unlock(&routing_lock);
  20830. return ret ? -EINVAL : 0;
  20831. }
  20832. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  20833. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  20834. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  20835. msm_routing_put_app_type_cfg_control),
  20836. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  20837. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  20838. };
  20839. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  20840. struct snd_ctl_elem_value *ucontrol)
  20841. {
  20842. int copp_idx, fe_id, be_id, port_type;
  20843. int ret = 0;
  20844. unsigned long copp;
  20845. struct msm_pcm_routing_bdai_data *bedai;
  20846. u8 *packed_params = NULL;
  20847. struct param_hdr_v3 param_hdr;
  20848. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  20849. sizeof(uint32_t));
  20850. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  20851. SESSION_TYPE_RX;
  20852. int app_type = ucontrol->value.integer.value[1];
  20853. int module_id = ucontrol->value.integer.value[2];
  20854. int instance_id = ucontrol->value.integer.value[3];
  20855. int param_id = ucontrol->value.integer.value[4];
  20856. int param_value = ucontrol->value.integer.value[5];
  20857. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  20858. MSM_AFE_PORT_TYPE_TX;
  20859. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  20860. __func__, app_type, module_id,
  20861. instance_id, param_id, param_value);
  20862. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  20863. if (!packed_params)
  20864. return -ENOMEM;
  20865. memset(&param_hdr, 0, sizeof(param_hdr));
  20866. param_hdr.module_id = module_id;
  20867. param_hdr.instance_id = instance_id;
  20868. param_hdr.param_id = param_id;
  20869. param_hdr.param_size = sizeof(uint32_t);
  20870. packed_param_size = 0;
  20871. mutex_lock(&routing_lock);
  20872. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  20873. if (is_be_dai_extproc(be_id))
  20874. continue;
  20875. bedai = &msm_bedais[be_id];
  20876. if (afe_get_port_type(bedai->port_id) != port_type)
  20877. continue;
  20878. if (!bedai->active)
  20879. continue;
  20880. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  20881. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  20882. continue;
  20883. if (app_type !=
  20884. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  20885. continue;
  20886. copp = session_copp_map[fe_id][dir][be_id];
  20887. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  20888. copp_idx++) {
  20889. if (!test_bit(copp_idx, &copp))
  20890. continue;
  20891. ret = q6common_pack_pp_params(packed_params,
  20892. &param_hdr,
  20893. (u8 *) &param_value,
  20894. &packed_param_size);
  20895. if (ret) {
  20896. pr_err("%s: Failed to pack params, error %d\n",
  20897. __func__, ret);
  20898. goto done;
  20899. }
  20900. ret = adm_set_pp_params(bedai->port_id,
  20901. copp_idx, NULL,
  20902. packed_params,
  20903. packed_param_size);
  20904. if (ret) {
  20905. pr_err("%s: Setting param failed with err=%d\n",
  20906. __func__, ret);
  20907. ret = -EINVAL;
  20908. goto done;
  20909. }
  20910. }
  20911. }
  20912. }
  20913. done:
  20914. mutex_unlock(&routing_lock);
  20915. kfree(packed_params);
  20916. return ret;
  20917. }
  20918. static const struct snd_kcontrol_new module_cfg_controls[] = {
  20919. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  20920. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  20921. };
  20922. static int msm_routing_get_lsm_app_type_cfg_control(
  20923. struct snd_kcontrol *kcontrol,
  20924. struct snd_ctl_elem_value *ucontrol)
  20925. {
  20926. int shift = ((struct soc_multi_mixer_control *)
  20927. kcontrol->private_value)->shift;
  20928. int i = 0, j = 0;
  20929. ucontrol->value.integer.value[i] = num_app_cfg_types;
  20930. for (j = 0; j < num_app_cfg_types; ++j) {
  20931. ucontrol->value.integer.value[++i] =
  20932. lsm_app_type_cfg[j].app_type;
  20933. ucontrol->value.integer.value[++i] =
  20934. lsm_app_type_cfg[j].sample_rate;
  20935. ucontrol->value.integer.value[++i] =
  20936. lsm_app_type_cfg[j].bit_width;
  20937. if (shift == 1)
  20938. ucontrol->value.integer.value[++i] =
  20939. lsm_app_type_cfg[j].num_out_channels;
  20940. }
  20941. return 0;
  20942. }
  20943. static int msm_routing_put_lsm_app_type_cfg_control(
  20944. struct snd_kcontrol *kcontrol,
  20945. struct snd_ctl_elem_value *ucontrol)
  20946. {
  20947. int shift = ((struct soc_multi_mixer_control *)
  20948. kcontrol->private_value)->shift;
  20949. int i = 0, j;
  20950. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  20951. pr_err("%s: number of app types exceed the max supported\n",
  20952. __func__);
  20953. return -EINVAL;
  20954. }
  20955. num_app_cfg_types = ucontrol->value.integer.value[i++];
  20956. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  20957. sizeof(struct msm_pcm_routing_app_type_data));
  20958. for (j = 0; j < num_app_cfg_types; j++) {
  20959. lsm_app_type_cfg[j].app_type =
  20960. ucontrol->value.integer.value[i++];
  20961. lsm_app_type_cfg[j].sample_rate =
  20962. ucontrol->value.integer.value[i++];
  20963. lsm_app_type_cfg[j].bit_width =
  20964. ucontrol->value.integer.value[i++];
  20965. /* Shift of 1 indicates this is V2 mixer control */
  20966. if (shift == 1)
  20967. lsm_app_type_cfg[j].num_out_channels =
  20968. ucontrol->value.integer.value[i++];
  20969. }
  20970. return 0;
  20971. }
  20972. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  20973. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  20974. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20975. msm_routing_put_lsm_app_type_cfg_control),
  20976. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  20977. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  20978. msm_routing_put_lsm_app_type_cfg_control),
  20979. };
  20980. static int msm_routing_get_use_ds1_or_ds2_control(
  20981. struct snd_kcontrol *kcontrol,
  20982. struct snd_ctl_elem_value *ucontrol)
  20983. {
  20984. ucontrol->value.integer.value[0] = is_ds2_on;
  20985. return 0;
  20986. }
  20987. static int msm_routing_put_use_ds1_or_ds2_control(
  20988. struct snd_kcontrol *kcontrol,
  20989. struct snd_ctl_elem_value *ucontrol)
  20990. {
  20991. is_ds2_on = ucontrol->value.integer.value[0];
  20992. return 0;
  20993. }
  20994. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  20995. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  20996. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  20997. msm_routing_put_use_ds1_or_ds2_control),
  20998. };
  20999. static int msm_routing_get_hifi_filter_control(
  21000. struct snd_kcontrol *kcontrol,
  21001. struct snd_ctl_elem_value *ucontrol)
  21002. {
  21003. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21004. return 0;
  21005. }
  21006. static int msm_routing_put_hifi_filter_control(
  21007. struct snd_kcontrol *kcontrol,
  21008. struct snd_ctl_elem_value *ucontrol)
  21009. {
  21010. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21011. return 0;
  21012. }
  21013. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21014. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21015. 1, 0, msm_routing_get_hifi_filter_control,
  21016. msm_routing_put_hifi_filter_control),
  21017. };
  21018. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21019. struct snd_ctl_elem_value *ucontrol) {
  21020. int rc = 0;
  21021. int be_idx = 0;
  21022. char *param_value;
  21023. int *update_param_value;
  21024. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21025. struct param_hdr_v3 param_hdr;
  21026. param_value = kzalloc(param_size, GFP_KERNEL);
  21027. if (!param_value)
  21028. return -ENOMEM;
  21029. memset(&param_hdr, 0, sizeof(param_hdr));
  21030. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21031. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21032. break;
  21033. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21034. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21035. param_hdr.instance_id = INSTANCE_ID_0;
  21036. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21037. param_hdr.param_size = param_size;
  21038. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21039. NULL, &param_hdr, (u8 *) param_value);
  21040. if (rc) {
  21041. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21042. kfree(param_value);
  21043. return -EINVAL;
  21044. }
  21045. update_param_value = (int *)param_value;
  21046. ucontrol->value.integer.value[0] = update_param_value[0];
  21047. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21048. __func__, update_param_value[0]);
  21049. }
  21050. kfree(param_value);
  21051. return 0;
  21052. }
  21053. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21054. struct snd_ctl_elem_value *ucontrol)
  21055. {
  21056. voc_session_id = ucontrol->value.integer.value[0];
  21057. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21058. return 0;
  21059. }
  21060. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21061. struct snd_ctl_elem_value *ucontrol)
  21062. {
  21063. ucontrol->value.integer.value[0] = voc_session_id;
  21064. return 0;
  21065. }
  21066. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21067. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21068. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21069. msm_voc_session_id_put),
  21070. };
  21071. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21072. struct snd_ctl_elem_info *uinfo)
  21073. {
  21074. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21075. uinfo->count = sizeof(struct sound_focus_param);
  21076. return 0;
  21077. }
  21078. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21079. struct snd_ctl_elem_value *ucontrol)
  21080. {
  21081. int ret = 0;
  21082. struct sound_focus_param soundFocusData;
  21083. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21084. sizeof(struct sound_focus_param));
  21085. ret = voc_set_sound_focus(soundFocusData);
  21086. if (ret) {
  21087. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21088. __func__, ret);
  21089. ret = -EINVAL;
  21090. }
  21091. return ret;
  21092. }
  21093. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21094. struct snd_ctl_elem_value *ucontrol)
  21095. {
  21096. int ret = 0;
  21097. struct sound_focus_param soundFocusData;
  21098. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21099. ret = voc_get_sound_focus(&soundFocusData);
  21100. if (ret) {
  21101. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21102. __func__, ret);
  21103. ret = -EINVAL;
  21104. goto done;
  21105. }
  21106. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21107. sizeof(struct sound_focus_param));
  21108. done:
  21109. return ret;
  21110. }
  21111. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21112. struct snd_ctl_elem_info *uinfo)
  21113. {
  21114. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21115. uinfo->count = sizeof(struct source_tracking_param);
  21116. return 0;
  21117. }
  21118. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21119. struct snd_ctl_elem_value *ucontrol)
  21120. {
  21121. int ret = 0;
  21122. struct source_tracking_param sourceTrackingData;
  21123. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21124. ret = voc_get_source_tracking(&sourceTrackingData);
  21125. if (ret) {
  21126. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21127. __func__, ret);
  21128. ret = -EINVAL;
  21129. goto done;
  21130. }
  21131. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21132. sizeof(struct source_tracking_param));
  21133. done:
  21134. return ret;
  21135. }
  21136. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21137. int *copp_idx)
  21138. {
  21139. int i, idx, be_idx;
  21140. int ret = 0;
  21141. unsigned long copp;
  21142. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21143. ret = q6audio_validate_port(port_id);
  21144. if (ret < 0) {
  21145. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21146. __func__, port_id, ret);
  21147. ret = -EINVAL;
  21148. goto done;
  21149. }
  21150. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21151. if (msm_bedais[be_idx].port_id == port_id)
  21152. break;
  21153. }
  21154. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21155. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21156. ret = -EINVAL;
  21157. goto done;
  21158. }
  21159. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21160. MSM_FRONTEND_DAI_MAX) {
  21161. if (!(is_mm_lsm_fe_id(i) &&
  21162. route_check_fe_id_adm_support(i)))
  21163. continue;
  21164. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21165. copp = session_copp_map[i]
  21166. [session_type][be_idx];
  21167. if (test_bit(idx, &copp))
  21168. break;
  21169. }
  21170. if (idx >= MAX_COPPS_PER_PORT)
  21171. continue;
  21172. else
  21173. break;
  21174. }
  21175. if (i >= MSM_FRONTEND_DAI_MAX) {
  21176. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21177. ret = -EINVAL;
  21178. goto done;
  21179. }
  21180. *copp_idx = idx;
  21181. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21182. done:
  21183. return ret;
  21184. }
  21185. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21186. const char *prefix, int *port_id)
  21187. {
  21188. int ret = 0;
  21189. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21190. /*
  21191. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21192. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21193. * and compare the string with the backend name to derive the port id.
  21194. */
  21195. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21196. "SLIMBUS_0")) {
  21197. *port_id = SLIMBUS_0_TX;
  21198. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21199. "TERT_MI2S")) {
  21200. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21201. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21202. "INT3_MI2S")) {
  21203. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21204. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21205. "VA_CDC_DMA_TX_0")) {
  21206. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21207. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21208. "TX_CDC_DMA_TX_3")) {
  21209. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21210. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21211. "QUIN_TDM_TX_0")) {
  21212. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21213. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21214. "PRIMARY_TDM")) {
  21215. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21216. } else {
  21217. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21218. __func__, kcontrol->id.name);
  21219. ret = -EINVAL;
  21220. goto done;
  21221. }
  21222. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21223. __func__, kcontrol->id.name, *port_id);
  21224. done:
  21225. return ret;
  21226. }
  21227. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21228. struct snd_ctl_elem_value *ucontrol)
  21229. {
  21230. int ret = 0;
  21231. struct sound_focus_param soundFocusData;
  21232. int port_id, copp_idx;
  21233. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21234. "Sound Focus Audio Tx ", &port_id);
  21235. if (ret != 0) {
  21236. pr_err("%s: Error in deriving port id, err=%d\n",
  21237. __func__, ret);
  21238. ret = -EINVAL;
  21239. goto done;
  21240. }
  21241. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21242. &copp_idx);
  21243. if (ret) {
  21244. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21245. __func__, port_id);
  21246. ret = -EINVAL;
  21247. goto done;
  21248. }
  21249. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21250. sizeof(struct sound_focus_param));
  21251. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21252. if (ret) {
  21253. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21254. __func__, ret);
  21255. ret = -EINVAL;
  21256. goto done;
  21257. }
  21258. done:
  21259. return ret;
  21260. }
  21261. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21262. struct snd_ctl_elem_value *ucontrol)
  21263. {
  21264. int ret = 0;
  21265. struct sound_focus_param soundFocusData;
  21266. int port_id, copp_idx;
  21267. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21268. "Sound Focus Audio Tx ", &port_id);
  21269. if (ret) {
  21270. pr_err("%s: Error in deriving port id, err=%d\n",
  21271. __func__, ret);
  21272. ret = -EINVAL;
  21273. goto done;
  21274. }
  21275. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21276. &copp_idx);
  21277. if (ret) {
  21278. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21279. __func__, port_id);
  21280. ret = -EINVAL;
  21281. goto done;
  21282. }
  21283. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21284. if (ret) {
  21285. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21286. __func__, ret);
  21287. ret = -EINVAL;
  21288. goto done;
  21289. }
  21290. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21291. sizeof(struct sound_focus_param));
  21292. done:
  21293. return ret;
  21294. }
  21295. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21296. struct snd_ctl_elem_value *ucontrol)
  21297. {
  21298. int ret = 0;
  21299. struct source_tracking_param sourceTrackingData;
  21300. int port_id, copp_idx;
  21301. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21302. "Source Tracking Audio Tx ", &port_id);
  21303. if (ret) {
  21304. pr_err("%s: Error in deriving port id, err=%d\n",
  21305. __func__, ret);
  21306. ret = -EINVAL;
  21307. goto done;
  21308. }
  21309. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21310. &copp_idx);
  21311. if (ret) {
  21312. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21313. __func__, port_id);
  21314. ret = -EINVAL;
  21315. goto done;
  21316. }
  21317. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21318. if (ret) {
  21319. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21320. __func__, ret);
  21321. ret = -EINVAL;
  21322. goto done;
  21323. }
  21324. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21325. sizeof(struct source_tracking_param));
  21326. done:
  21327. return ret;
  21328. }
  21329. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21330. struct snd_ctl_elem_info *uinfo)
  21331. {
  21332. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21333. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21334. return 0;
  21335. }
  21336. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21337. struct snd_ctl_elem_value *ucontrol)
  21338. {
  21339. int ret = 0;
  21340. struct doa_tracking_mon_param doa_tracking_data;
  21341. int port_id, copp_idx;
  21342. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21343. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21344. "Doa Tracking Monitor Listen ", &port_id);
  21345. if (ret) {
  21346. pr_err("%s: Error in deriving port id, err=%d\n",
  21347. __func__, ret);
  21348. ret = -EINVAL;
  21349. goto done;
  21350. }
  21351. /*
  21352. * If copp id exists for given port id, query adm to get doa data.
  21353. * Else query afe for doa tracking params.
  21354. * This is to support in cases where LSM directly connects to
  21355. * AFE for FFNS.
  21356. */
  21357. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21358. &copp_idx);
  21359. if (!ret)
  21360. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21361. &doa_tracking_data);
  21362. else
  21363. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21364. if (ret) {
  21365. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21366. __func__, ret);
  21367. ret = -EINVAL;
  21368. goto done;
  21369. }
  21370. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21371. sizeof(struct doa_tracking_mon_param));
  21372. done:
  21373. return ret;
  21374. }
  21375. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21376. {
  21377. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21378. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21379. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21380. .info = msm_sound_focus_info,
  21381. .get = msm_voice_sound_focus_get,
  21382. .put = msm_voice_sound_focus_put,
  21383. },
  21384. {
  21385. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21386. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21387. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21388. .info = msm_source_tracking_info,
  21389. .get = msm_voice_source_tracking_get,
  21390. },
  21391. {
  21392. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21393. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21394. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21395. .info = msm_sound_focus_info,
  21396. .get = msm_audio_sound_focus_get,
  21397. .put = msm_audio_sound_focus_put,
  21398. },
  21399. {
  21400. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21401. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21402. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21403. .info = msm_source_tracking_info,
  21404. .get = msm_audio_source_tracking_get,
  21405. },
  21406. {
  21407. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21408. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21409. .name = "Sound Focus Voice Tx TERT_MI2S",
  21410. .info = msm_sound_focus_info,
  21411. .get = msm_voice_sound_focus_get,
  21412. .put = msm_voice_sound_focus_put,
  21413. },
  21414. {
  21415. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21416. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21417. .name = "Source Tracking Voice Tx TERT_MI2S",
  21418. .info = msm_source_tracking_info,
  21419. .get = msm_voice_source_tracking_get,
  21420. },
  21421. {
  21422. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21423. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21424. .name = "Sound Focus Audio Tx TERT_MI2S",
  21425. .info = msm_sound_focus_info,
  21426. .get = msm_audio_sound_focus_get,
  21427. .put = msm_audio_sound_focus_put,
  21428. },
  21429. {
  21430. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21431. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21432. .name = "Source Tracking Audio Tx TERT_MI2S",
  21433. .info = msm_source_tracking_info,
  21434. .get = msm_audio_source_tracking_get,
  21435. },
  21436. {
  21437. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21438. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21439. .name = "Sound Focus Voice Tx INT3_MI2S",
  21440. .info = msm_sound_focus_info,
  21441. .get = msm_voice_sound_focus_get,
  21442. .put = msm_voice_sound_focus_put,
  21443. },
  21444. {
  21445. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21447. .name = "Source Tracking Voice Tx INT3_MI2S",
  21448. .info = msm_source_tracking_info,
  21449. .get = msm_voice_source_tracking_get,
  21450. },
  21451. {
  21452. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21453. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21454. .name = "Sound Focus Audio Tx INT3_MI2S",
  21455. .info = msm_sound_focus_info,
  21456. .get = msm_audio_sound_focus_get,
  21457. .put = msm_audio_sound_focus_put,
  21458. },
  21459. {
  21460. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21461. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21462. .name = "Source Tracking Audio Tx INT3_MI2S",
  21463. .info = msm_source_tracking_info,
  21464. .get = msm_audio_source_tracking_get,
  21465. },
  21466. {
  21467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21468. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21469. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21470. .info = msm_sound_focus_info,
  21471. .get = msm_voice_sound_focus_get,
  21472. .put = msm_voice_sound_focus_put,
  21473. },
  21474. {
  21475. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21477. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21478. .info = msm_source_tracking_info,
  21479. .get = msm_voice_source_tracking_get,
  21480. },
  21481. {
  21482. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21483. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21484. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21485. .info = msm_sound_focus_info,
  21486. .get = msm_audio_sound_focus_get,
  21487. .put = msm_audio_sound_focus_put,
  21488. },
  21489. {
  21490. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21492. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21493. .info = msm_source_tracking_info,
  21494. .get = msm_audio_source_tracking_get,
  21495. },
  21496. {
  21497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21498. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21499. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21500. .info = msm_sound_focus_info,
  21501. .get = msm_voice_sound_focus_get,
  21502. .put = msm_voice_sound_focus_put,
  21503. },
  21504. {
  21505. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21506. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21507. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21508. .info = msm_source_tracking_info,
  21509. .get = msm_voice_source_tracking_get,
  21510. },
  21511. {
  21512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21513. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21514. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21515. .info = msm_sound_focus_info,
  21516. .get = msm_audio_sound_focus_get,
  21517. .put = msm_audio_sound_focus_put,
  21518. },
  21519. {
  21520. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21522. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21523. .info = msm_source_tracking_info,
  21524. .get = msm_audio_source_tracking_get,
  21525. },
  21526. {
  21527. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21528. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21529. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21530. .info = msm_sound_focus_info,
  21531. .get = msm_voice_sound_focus_get,
  21532. .put = msm_voice_sound_focus_put,
  21533. },
  21534. {
  21535. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21536. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21537. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21538. .info = msm_source_tracking_info,
  21539. .get = msm_voice_source_tracking_get,
  21540. },
  21541. {
  21542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21543. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21544. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21545. .info = msm_sound_focus_info,
  21546. .get = msm_audio_sound_focus_get,
  21547. .put = msm_audio_sound_focus_put,
  21548. },
  21549. {
  21550. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21551. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21552. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21553. .info = msm_source_tracking_info,
  21554. .get = msm_audio_source_tracking_get,
  21555. },
  21556. {
  21557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21558. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21559. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21560. .info = msm_sound_focus_info,
  21561. .get = msm_audio_sound_focus_get,
  21562. .put = msm_audio_sound_focus_put,
  21563. },
  21564. {
  21565. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21567. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21568. .info = msm_source_tracking_info,
  21569. .get = msm_audio_source_tracking_get,
  21570. },
  21571. {
  21572. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21573. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21574. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21575. .info = msm_doa_tracking_mon_info,
  21576. .get = msm_doa_tracking_mon_get,
  21577. },
  21578. };
  21579. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21580. struct snd_ctl_elem_value *ucontrol)
  21581. {
  21582. int ret = 0;
  21583. int item;
  21584. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21585. pr_debug("%s item is %d\n", __func__,
  21586. ucontrol->value.enumerated.item[0]);
  21587. mutex_lock(&routing_lock);
  21588. item = ucontrol->value.enumerated.item[0];
  21589. if (item < e->items) {
  21590. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21591. __func__, e->shift_l, e->values[item]);
  21592. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21593. e->values[item] < MSM_BACKEND_DAI_MAX)
  21594. /* Enable feedback TX path */
  21595. ret = afe_spk_prot_feed_back_cfg(
  21596. msm_bedais[e->values[item]].port_id,
  21597. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21598. else {
  21599. pr_debug("%s values are out of range item %d\n",
  21600. __func__, e->values[item]);
  21601. /* Disable feedback TX path */
  21602. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21603. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21604. else
  21605. ret = -EINVAL;
  21606. }
  21607. } else {
  21608. pr_err("%s item value is out of range item\n", __func__);
  21609. ret = -EINVAL;
  21610. }
  21611. mutex_unlock(&routing_lock);
  21612. return ret;
  21613. }
  21614. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21615. struct snd_ctl_elem_value *ucontrol)
  21616. {
  21617. int ret = 0;
  21618. int item;
  21619. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21620. pr_debug("%s item is %d\n", __func__,
  21621. ucontrol->value.enumerated.item[0]);
  21622. mutex_lock(&routing_lock);
  21623. item = ucontrol->value.enumerated.item[0];
  21624. if (item < e->items) {
  21625. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21626. __func__, e->shift_l, e->values[item]);
  21627. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21628. e->values[item] < MSM_BACKEND_DAI_MAX)
  21629. /* Enable feedback TX path */
  21630. ret = afe_spk_prot_feed_back_cfg(
  21631. msm_bedais[e->values[item]].port_id,
  21632. msm_bedais[e->shift_l].port_id,
  21633. 1, 1, 1);
  21634. else {
  21635. pr_debug("%s values are out of range item %d\n",
  21636. __func__, e->values[item]);
  21637. /* Disable feedback TX path */
  21638. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21639. ret = afe_spk_prot_feed_back_cfg(0,
  21640. 0, 0, 0, 0);
  21641. else
  21642. ret = -EINVAL;
  21643. }
  21644. } else {
  21645. pr_err("%s item value is out of range item\n", __func__);
  21646. ret = -EINVAL;
  21647. }
  21648. mutex_unlock(&routing_lock);
  21649. return ret;
  21650. }
  21651. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21652. struct snd_ctl_elem_value *ucontrol)
  21653. {
  21654. pr_debug("%s\n", __func__);
  21655. return 0;
  21656. }
  21657. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21658. struct snd_ctl_elem_value *ucontrol)
  21659. {
  21660. pr_debug("%s\n", __func__);
  21661. ucontrol->value.enumerated.item[0] = 0;
  21662. return 0;
  21663. }
  21664. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21665. "ZERO", "SLIM4_TX"
  21666. };
  21667. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21668. "ZERO", "SLIM4_TX"
  21669. };
  21670. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21671. "ZERO", "WSA_CDC_DMA_TX_0"
  21672. };
  21673. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21674. "ZERO", "WSA_CDC_DMA_TX_0"
  21675. };
  21676. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21677. "ZERO", "SENARY_TX"
  21678. };
  21679. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21680. "ZERO", "INT5_MI2S_TX"
  21681. };
  21682. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21683. "ZERO", "INT5_MI2S_TX"
  21684. };
  21685. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21686. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21687. };
  21688. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21689. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21690. };
  21691. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21692. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21693. };
  21694. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21695. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21696. };
  21697. static const int mi2s_rx_vi_fb_tx_value[] = {
  21698. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21699. };
  21700. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21701. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21702. };
  21703. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21704. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21705. };
  21706. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21707. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21708. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21709. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21710. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21711. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21712. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21713. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21714. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21715. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21716. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21717. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21718. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21719. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21720. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21721. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21722. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21723. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21724. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21725. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21726. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21727. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21728. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21729. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21730. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21731. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21732. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21733. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21734. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21735. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21736. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21737. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21738. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21739. spkr_prot_put_vi_lch_port);
  21740. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21741. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21742. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21743. spkr_prot_put_vi_rch_port);
  21744. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21745. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21746. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21747. spkr_prot_put_vi_lch_port);
  21748. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21749. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21750. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21751. spkr_prot_put_vi_rch_port);
  21752. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21753. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21754. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21755. spkr_prot_put_vi_lch_port);
  21756. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21757. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21758. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21759. spkr_prot_put_vi_lch_port);
  21760. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21761. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21762. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21763. spkr_prot_put_vi_rch_port);
  21764. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21765. /* Frontend AIF */
  21766. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21767. * Stream name must contains substring of front-end dai name
  21768. */
  21769. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21770. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21771. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21772. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21773. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21774. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21775. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21776. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21777. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21778. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21779. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21780. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21781. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  21782. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  21783. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  21784. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  21785. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  21786. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  21787. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  21788. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  21789. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  21790. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  21791. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  21792. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  21793. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  21794. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  21795. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  21796. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  21797. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  21798. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  21799. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  21800. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  21801. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  21802. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  21803. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  21804. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  21805. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  21806. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  21807. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  21808. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  21809. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  21810. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  21811. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  21812. "VoiceMMode1 Playback", 0, 0, 0, 0),
  21813. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  21814. "VoiceMMode1 Capture", 0, 0, 0, 0),
  21815. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  21816. "VoiceMMode2 Playback", 0, 0, 0, 0),
  21817. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  21818. "VoiceMMode2 Capture", 0, 0, 0, 0),
  21819. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  21820. 0, 0, 0, 0),
  21821. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  21822. 0, 0, 0, 0),
  21823. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  21824. 0, 0, 0, 0),
  21825. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  21826. 0, 0, 0, 0),
  21827. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  21828. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  21829. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  21830. 0, 0, 0, 0),
  21831. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  21832. 0, 0, 0, 0),
  21833. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  21834. 0, 0, 0, 0),
  21835. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  21836. 0, 0, 0, 0),
  21837. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  21838. 0, 0, 0, 0),
  21839. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  21840. 0, 0, 0, 0),
  21841. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  21842. 0, 0, 0, 0),
  21843. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  21844. 0, 0, 0, 0),
  21845. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  21846. 0, 0, 0, 0),
  21847. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  21848. 0, 0, 0, 0),
  21849. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  21850. 0, 0, 0, 0),
  21851. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  21852. 0, 0, 0, 0),
  21853. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  21854. 0, 0, 0, 0),
  21855. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  21856. 0, 0, 0, 0),
  21857. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  21858. 0, 0, 0, 0),
  21859. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  21860. 0, 0, 0, 0),
  21861. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  21862. 0, 0, 0, 0),
  21863. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  21864. 0, 0, 0, 0),
  21865. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  21866. 0, 0, 0, 0),
  21867. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  21868. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  21869. 0, 0, 0, 0),
  21870. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  21871. "INT0 MI2S_RX Hostless Playback",
  21872. 0, 0, 0, 0),
  21873. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  21874. "INT4 MI2S_RX Hostless Playback",
  21875. 0, 0, 0, 0),
  21876. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  21877. "Primary MI2S_RX Hostless Playback",
  21878. 0, 0, 0, 0),
  21879. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  21880. "Secondary MI2S_RX Hostless Playback",
  21881. 0, 0, 0, 0),
  21882. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  21883. "Tertiary MI2S_RX Hostless Playback",
  21884. 0, 0, 0, 0),
  21885. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  21886. "Quaternary MI2S_RX Hostless Playback",
  21887. 0, 0, 0, 0),
  21888. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  21889. "Quinary MI2S_RX Hostless Playback",
  21890. 0, 0, 0, 0),
  21891. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  21892. "Senary MI2S_RX Hostless Playback",
  21893. 0, 0, 0, 0),
  21894. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  21895. 0, 0, 0, 0),
  21896. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  21897. 0, 0, 0, 0),
  21898. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  21899. 0, 0, 0, 0),
  21900. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  21901. 0, 0, 0, 0),
  21902. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  21903. 0, 0, 0, 0),
  21904. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  21905. "INT3 MI2S_TX Hostless Capture",
  21906. 0, 0, 0, 0),
  21907. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  21908. "Tertiary MI2S_TX Hostless Capture",
  21909. 0, 0, 0, 0),
  21910. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  21911. "Secondary MI2S_TX Hostless Capture",
  21912. 0, 0, 0, 0),
  21913. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  21914. "Primary MI2S_TX Hostless Capture",
  21915. 0, 0, 0, 0),
  21916. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  21917. 0, 0, 0, 0),
  21918. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  21919. 0, 0, 0, 0),
  21920. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  21921. "Quaternary MI2S_TX Hostless Capture",
  21922. 0, 0, 0, 0),
  21923. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  21924. "Quinary MI2S_TX Hostless Capture",
  21925. 0, 0, 0, 0),
  21926. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  21927. "Senary MI2S_TX Hostless Capture",
  21928. 0, 0, 0, 0),
  21929. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  21930. "Primary TDM0 Hostless Playback",
  21931. 0, 0, 0, 0),
  21932. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  21933. "Primary TDM0 Hostless Capture",
  21934. 0, 0, 0, 0),
  21935. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  21936. "Primary TDM1 Hostless Playback",
  21937. 0, 0, 0, 0),
  21938. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  21939. "Primary TDM1 Hostless Capture",
  21940. 0, 0, 0, 0),
  21941. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  21942. "Primary TDM2 Hostless Playback",
  21943. 0, 0, 0, 0),
  21944. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  21945. "Primary TDM2 Hostless Capture",
  21946. 0, 0, 0, 0),
  21947. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  21948. "Primary TDM3 Hostless Playback",
  21949. 0, 0, 0, 0),
  21950. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  21951. "Primary TDM3 Hostless Capture",
  21952. 0, 0, 0, 0),
  21953. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  21954. "Primary TDM4 Hostless Playback",
  21955. 0, 0, 0, 0),
  21956. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  21957. "Primary TDM4 Hostless Capture",
  21958. 0, 0, 0, 0),
  21959. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  21960. "Primary TDM5 Hostless Playback",
  21961. 0, 0, 0, 0),
  21962. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  21963. "Primary TDM5 Hostless Capture",
  21964. 0, 0, 0, 0),
  21965. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  21966. "Primary TDM6 Hostless Playback",
  21967. 0, 0, 0, 0),
  21968. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  21969. "Primary TDM6 Hostless Capture",
  21970. 0, 0, 0, 0),
  21971. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  21972. "Primary TDM7 Hostless Playback",
  21973. 0, 0, 0, 0),
  21974. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  21975. "Primary TDM7 Hostless Capture",
  21976. 0, 0, 0, 0),
  21977. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  21978. "Secondary TDM0 Hostless Playback",
  21979. 0, 0, 0, 0),
  21980. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  21981. "Secondary TDM0 Hostless Capture",
  21982. 0, 0, 0, 0),
  21983. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  21984. "Secondary TDM1 Hostless Playback",
  21985. 0, 0, 0, 0),
  21986. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  21987. "Secondary TDM1 Hostless Capture",
  21988. 0, 0, 0, 0),
  21989. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  21990. "Secondary TDM2 Hostless Playback",
  21991. 0, 0, 0, 0),
  21992. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  21993. "Secondary TDM2 Hostless Capture",
  21994. 0, 0, 0, 0),
  21995. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  21996. "Secondary TDM3 Hostless Playback",
  21997. 0, 0, 0, 0),
  21998. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  21999. "Secondary TDM3 Hostless Capture",
  22000. 0, 0, 0, 0),
  22001. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22002. "Secondary TDM4 Hostless Playback",
  22003. 0, 0, 0, 0),
  22004. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22005. "Secondary TDM4 Hostless Capture",
  22006. 0, 0, 0, 0),
  22007. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22008. "Secondary TDM5 Hostless Playback",
  22009. 0, 0, 0, 0),
  22010. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22011. "Secondary TDM5 Hostless Capture",
  22012. 0, 0, 0, 0),
  22013. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22014. "Secondary TDM6 Hostless Playback",
  22015. 0, 0, 0, 0),
  22016. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22017. "Secondary TDM6 Hostless Capture",
  22018. 0, 0, 0, 0),
  22019. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22020. "Secondary TDM7 Hostless Playback",
  22021. 0, 0, 0, 0),
  22022. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22023. "Secondary TDM7 Hostless Capture",
  22024. 0, 0, 0, 0),
  22025. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22026. "Tertiary TDM0 Hostless Playback",
  22027. 0, 0, 0, 0),
  22028. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22029. "Tertiary TDM0 Hostless Capture",
  22030. 0, 0, 0, 0),
  22031. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22032. "Tertiary TDM1 Hostless Playback",
  22033. 0, 0, 0, 0),
  22034. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22035. "Tertiary TDM1 Hostless Capture",
  22036. 0, 0, 0, 0),
  22037. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22038. "Tertiary TDM2 Hostless Playback",
  22039. 0, 0, 0, 0),
  22040. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22041. "Tertiary TDM2 Hostless Capture",
  22042. 0, 0, 0, 0),
  22043. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22044. "Tertiary TDM3 Hostless Playback",
  22045. 0, 0, 0, 0),
  22046. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22047. "Tertiary TDM3 Hostless Capture",
  22048. 0, 0, 0, 0),
  22049. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22050. "Tertiary TDM4 Hostless Playback",
  22051. 0, 0, 0, 0),
  22052. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22053. "Tertiary TDM4 Hostless Capture",
  22054. 0, 0, 0, 0),
  22055. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22056. "Tertiary TDM5 Hostless Playback",
  22057. 0, 0, 0, 0),
  22058. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22059. "Tertiary TDM5 Hostless Capture",
  22060. 0, 0, 0, 0),
  22061. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22062. "Tertiary TDM6 Hostless Playback",
  22063. 0, 0, 0, 0),
  22064. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22065. "Tertiary TDM6 Hostless Capture",
  22066. 0, 0, 0, 0),
  22067. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22068. "Tertiary TDM7 Hostless Playback",
  22069. 0, 0, 0, 0),
  22070. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22071. "Tertiary TDM7 Hostless Capture",
  22072. 0, 0, 0, 0),
  22073. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22074. "Quaternary TDM0 Hostless Playback",
  22075. 0, 0, 0, 0),
  22076. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22077. "Quaternary TDM0 Hostless Capture",
  22078. 0, 0, 0, 0),
  22079. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22080. "Quaternary TDM1 Hostless Playback",
  22081. 0, 0, 0, 0),
  22082. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22083. "Quaternary TDM1 Hostless Capture",
  22084. 0, 0, 0, 0),
  22085. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22086. "Quaternary TDM2 Hostless Playback",
  22087. 0, 0, 0, 0),
  22088. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22089. "Quaternary TDM2 Hostless Capture",
  22090. 0, 0, 0, 0),
  22091. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22092. "Quaternary TDM3 Hostless Playback",
  22093. 0, 0, 0, 0),
  22094. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22095. "Quaternary TDM3 Hostless Capture",
  22096. 0, 0, 0, 0),
  22097. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22098. "Quaternary TDM4 Hostless Playback",
  22099. 0, 0, 0, 0),
  22100. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22101. "Quaternary TDM4 Hostless Capture",
  22102. 0, 0, 0, 0),
  22103. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22104. "Quaternary TDM5 Hostless Playback",
  22105. 0, 0, 0, 0),
  22106. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22107. "Quaternary TDM5 Hostless Capture",
  22108. 0, 0, 0, 0),
  22109. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22110. "Quaternary TDM6 Hostless Playback",
  22111. 0, 0, 0, 0),
  22112. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22113. "Quaternary TDM6 Hostless Capture",
  22114. 0, 0, 0, 0),
  22115. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22116. "Quaternary TDM7 Hostless Playback",
  22117. 0, 0, 0, 0),
  22118. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22119. "Quaternary TDM7 Hostless Capture",
  22120. 0, 0, 0, 0),
  22121. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22122. "Quinary TDM0 Hostless Playback",
  22123. 0, 0, 0, 0),
  22124. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22125. "Quinary TDM0 Hostless Capture",
  22126. 0, 0, 0, 0),
  22127. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22128. "Quinary TDM1 Hostless Playback",
  22129. 0, 0, 0, 0),
  22130. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22131. "Quinary TDM1 Hostless Capture",
  22132. 0, 0, 0, 0),
  22133. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22134. "Quinary TDM2 Hostless Playback",
  22135. 0, 0, 0, 0),
  22136. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22137. "Quinary TDM2 Hostless Capture",
  22138. 0, 0, 0, 0),
  22139. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22140. "Quinary TDM3 Hostless Playback",
  22141. 0, 0, 0, 0),
  22142. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22143. "Quinary TDM3 Hostless Capture",
  22144. 0, 0, 0, 0),
  22145. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22146. "Quinary TDM4 Hostless Playback",
  22147. 0, 0, 0, 0),
  22148. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22149. "Quinary TDM4 Hostless Capture",
  22150. 0, 0, 0, 0),
  22151. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22152. "Quinary TDM5 Hostless Playback",
  22153. 0, 0, 0, 0),
  22154. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22155. "Quinary TDM5 Hostless Capture",
  22156. 0, 0, 0, 0),
  22157. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22158. "Quinary TDM6 Hostless Playback",
  22159. 0, 0, 0, 0),
  22160. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22161. "Quinary TDM6 Hostless Capture",
  22162. 0, 0, 0, 0),
  22163. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22164. "Quinary TDM7 Hostless Playback",
  22165. 0, 0, 0, 0),
  22166. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22167. "Quinary TDM7 Hostless Capture",
  22168. 0, 0, 0, 0),
  22169. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22170. "Senary TDM0 Hostless Playback",
  22171. 0, 0, 0, 0),
  22172. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22173. "Senary TDM0 Hostless Capture",
  22174. 0, 0, 0, 0),
  22175. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22176. "Senary TDM1 Hostless Playback",
  22177. 0, 0, 0, 0),
  22178. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22179. "Senary TDM1 Hostless Capture",
  22180. 0, 0, 0, 0),
  22181. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22182. "Senary TDM2 Hostless Playback",
  22183. 0, 0, 0, 0),
  22184. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22185. "Senary TDM2 Hostless Capture",
  22186. 0, 0, 0, 0),
  22187. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22188. "Senary TDM3 Hostless Playback",
  22189. 0, 0, 0, 0),
  22190. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22191. "Senary TDM3 Hostless Capture",
  22192. 0, 0, 0, 0),
  22193. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22194. "Senary TDM4 Hostless Playback",
  22195. 0, 0, 0, 0),
  22196. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22197. "Senary TDM4 Hostless Capture",
  22198. 0, 0, 0, 0),
  22199. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22200. "Senary TDM5 Hostless Playback",
  22201. 0, 0, 0, 0),
  22202. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22203. "Senary TDM5 Hostless Capture",
  22204. 0, 0, 0, 0),
  22205. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22206. "Senary TDM6 Hostless Playback",
  22207. 0, 0, 0, 0),
  22208. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22209. "Senary TDM6 Hostless Capture",
  22210. 0, 0, 0, 0),
  22211. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22212. "Senary TDM7 Hostless Playback",
  22213. 0, 0, 0, 0),
  22214. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22215. "Senary TDM7 Hostless Capture",
  22216. 0, 0, 0, 0),
  22217. /* LSM */
  22218. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22219. 0, 0, 0, 0),
  22220. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22221. 0, 0, 0, 0),
  22222. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22223. 0, 0, 0, 0),
  22224. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22225. 0, 0, 0, 0),
  22226. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22227. 0, 0, 0, 0),
  22228. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22229. 0, 0, 0, 0),
  22230. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22231. 0, 0, 0, 0),
  22232. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22233. 0, 0, 0, 0),
  22234. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22235. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22236. /* Backend AIF */
  22237. /* Stream name equals to backend dai link stream name */
  22238. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22239. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22240. 0, 0, 0, 0),
  22241. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22242. 0, 0, 0, 0),
  22243. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22244. 0, 0, 0, 0),
  22245. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22246. 0, 0, 0, 0),
  22247. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22248. 0, 0, 0, 0),
  22249. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22250. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22251. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22252. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22253. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22254. 0, 0, 0, 0),
  22255. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22256. 0, 0, 0, 0),
  22257. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22258. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22259. 0, 0, 0, 0),
  22260. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22261. 0, 0, 0, 0),
  22262. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22263. 0, 0, 0, 0),
  22264. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22265. "Secondary MI2S Playback SD1",
  22266. 0, 0, 0, 0),
  22267. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22268. 0, 0, 0, 0),
  22269. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22270. 0, 0, 0, 0),
  22271. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22272. 0, 0, 0, 0),
  22273. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22274. 0, 0, 0, 0),
  22275. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22276. 0, 0, 0, 0),
  22277. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22278. 0, 0, 0, 0),
  22279. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22280. 0, 0, 0, 0),
  22281. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22282. 0, 0, 0, 0),
  22283. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22284. 0, 0, 0, 0),
  22285. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22286. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22287. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22288. 0, 0, 0, 0),
  22289. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22290. 0, 0, 0, 0),
  22291. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22292. 0, 0, 0, 0),
  22293. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22294. 0, 0, 0, 0),
  22295. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22296. 0, 0, 0, 0),
  22297. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22298. 0, 0, 0, 0),
  22299. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22300. 0, 0, 0, 0),
  22301. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22302. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22303. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22304. 0, 0, 0, 0),
  22305. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22306. 0, 0, 0, 0),
  22307. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22308. 0, 0, 0, 0),
  22309. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22310. 0, 0, 0, 0),
  22311. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22312. 0, 0, 0, 0),
  22313. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22314. 0, 0, 0, 0),
  22315. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22316. 0, 0, 0, 0),
  22317. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22318. 0, 0, 0, 0),
  22319. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22320. 0, 0, 0, 0),
  22321. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22322. 0, 0, 0, 0),
  22323. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22324. 0, 0, 0, 0),
  22325. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22326. 0, 0, 0, 0),
  22327. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22328. 0, 0, 0, 0),
  22329. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22330. 0, 0, 0, 0),
  22331. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22332. 0, 0, 0, 0),
  22333. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22334. 0, 0, 0, 0),
  22335. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22336. 0, 0, 0, 0),
  22337. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22338. 0, 0, 0, 0),
  22339. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22340. 0, 0, 0, 0),
  22341. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22342. 0, 0, 0, 0),
  22343. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22344. 0, 0, 0, 0),
  22345. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22346. 0, 0, 0, 0),
  22347. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22348. 0, 0, 0, 0),
  22349. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22350. 0, 0, 0, 0),
  22351. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22352. 0, 0, 0, 0),
  22353. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22354. 0, 0, 0, 0),
  22355. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22356. 0, 0, 0, 0),
  22357. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22358. 0, 0, 0, 0),
  22359. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22360. 0, 0, 0, 0),
  22361. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22362. 0, 0, 0, 0),
  22363. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22364. 0, 0, 0, 0),
  22365. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22366. 0, 0, 0, 0),
  22367. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22368. 0, 0, 0, 0),
  22369. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22370. 0, 0, 0, 0),
  22371. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22372. 0, 0, 0, 0),
  22373. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22374. 0, 0, 0, 0),
  22375. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22376. 0, 0, 0, 0),
  22377. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22378. 0, 0, 0, 0),
  22379. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22380. 0, 0, 0, 0),
  22381. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22382. 0, 0, 0, 0),
  22383. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22384. 0, 0, 0, 0),
  22385. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22386. 0, 0, 0, 0),
  22387. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22388. 0, 0, 0, 0),
  22389. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22390. 0, 0, 0, 0),
  22391. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22392. 0, 0, 0, 0),
  22393. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22394. 0, 0, 0, 0),
  22395. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22396. 0, 0, 0, 0),
  22397. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22398. 0, 0, 0, 0),
  22399. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22400. 0, 0, 0, 0),
  22401. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22402. 0, 0, 0, 0),
  22403. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22404. 0, 0, 0, 0),
  22405. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22406. 0, 0, 0, 0),
  22407. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22408. 0, 0, 0, 0),
  22409. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22410. 0, 0, 0, 0),
  22411. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22412. 0, 0, 0, 0),
  22413. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22414. 0, 0, 0, 0),
  22415. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22416. 0, 0, 0, 0),
  22417. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22418. 0, 0, 0, 0),
  22419. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22420. 0, 0, 0, 0),
  22421. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22422. 0, 0, 0, 0),
  22423. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22424. 0, 0, 0, 0),
  22425. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22426. 0, 0, 0, 0),
  22427. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22428. 0, 0, 0, 0),
  22429. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22430. 0, 0, 0, 0),
  22431. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22432. 0, 0, 0, 0),
  22433. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22434. 0, 0, 0, 0),
  22435. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22436. 0, 0, 0, 0),
  22437. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22438. 0, 0, 0, 0),
  22439. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22440. 0, 0, 0, 0),
  22441. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22442. 0, 0, 0, 0),
  22443. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22444. 0, 0, 0, 0),
  22445. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22446. 0, 0, 0, 0),
  22447. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22448. 0, 0, 0, 0),
  22449. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22450. 0, 0, 0, 0),
  22451. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22452. 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22454. 0, 0, 0, 0),
  22455. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22456. 0, 0, 0, 0),
  22457. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22460. 0, 0, 0, 0),
  22461. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22462. 0, 0, 0, 0),
  22463. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22464. 0, 0, 0, 0),
  22465. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22466. 0, 0, 0, 0),
  22467. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22468. 0, 0, 0, 0),
  22469. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22470. 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22472. 0, 0, 0, 0),
  22473. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22474. 0, 0, 0, 0),
  22475. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22476. 0, 0, 0, 0),
  22477. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22478. 0, 0, 0, 0),
  22479. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22480. 0, 0, 0, 0),
  22481. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22482. 0, 0, 0, 0),
  22483. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22484. 0, 0, 0, 0),
  22485. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22486. 0, 0, 0, 0),
  22487. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22490. 0, 0, 0, 0),
  22491. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22492. 0, 0, 0, 0),
  22493. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22496. 0, 0, 0, 0),
  22497. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22498. 0, 0, 0, 0),
  22499. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22500. 0, 0, 0, 0),
  22501. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22502. 0, 0, 0, 0),
  22503. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22504. 0, 0, 0, 0),
  22505. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22506. 0, 0, 0, 0),
  22507. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22508. 0, 0, 0, 0),
  22509. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22510. 0, 0, 0, 0),
  22511. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22512. 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  22514. 0, 0, 0, 0),
  22515. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  22516. 0, 0, 0, 0),
  22517. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22518. 0, 0, 0, 0),
  22519. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22520. 0, 0, 0, 0),
  22521. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22522. 0, 0, 0, 0),
  22523. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22526. 0, 0, 0, 0),
  22527. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22528. 0, 0, 0, 0),
  22529. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22530. 0, 0, 0, 0),
  22531. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22532. 0, 0, 0, 0),
  22533. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22534. 0, 0, 0, 0),
  22535. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22536. 0, 0, 0, 0),
  22537. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22538. 0, 0, 0, 0),
  22539. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22540. 0, 0, 0, 0),
  22541. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22542. 0, 0, 0, 0),
  22543. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22544. 0, 0, 0, 0),
  22545. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22546. 0, 0, 0, 0),
  22547. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22548. 0, 0, 0, 0),
  22549. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22550. 0, 0, 0, 0),
  22551. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22552. 0, 0, 0, 0),
  22553. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22554. 0, 0, 0, 0),
  22555. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22556. 0, 0, 0, 0),
  22557. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22558. 0, 0, 0, 0),
  22559. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22560. 0, 0, 0, 0),
  22561. /* incall */
  22562. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22563. 0, 0, 0, 0),
  22564. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22565. 0, 0, 0, 0),
  22566. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22567. 0, 0, 0, 0),
  22568. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22569. 0, 0, 0, 0),
  22570. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22571. 0, 0, 0, 0),
  22572. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22573. 0, 0, 0, 0),
  22574. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22575. 0, 0, 0, 0),
  22576. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22577. 0, 0, 0, 0),
  22578. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22579. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22580. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22581. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22582. 0, 0, 0, 0),
  22583. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22584. 0, 0, 0, 0),
  22585. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22586. 0, 0, 0, 0),
  22587. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22588. 0, 0, 0, 0),
  22589. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22590. 0, 0, 0, 0),
  22591. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22592. 0, 0, 0, 0),
  22593. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22594. 0, 0, 0, 0),
  22595. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22596. 0, 0, 0, 0),
  22597. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22598. 0, 0, 0, 0),
  22599. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22600. 0, 0, 0, 0),
  22601. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22602. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22603. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22604. 0, 0, 0, 0),
  22605. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22606. 0, 0, 0, 0),
  22607. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22608. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22609. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22610. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22611. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22612. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22613. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22614. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22615. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22616. /* In- call recording */
  22617. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22618. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22619. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22620. 0, 0, 0, 0),
  22621. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22622. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22623. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22624. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22625. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22626. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22627. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22628. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22629. /* Switch Definitions */
  22630. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22631. &slim_fm_switch_mixer_controls),
  22632. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22633. &slim1_fm_switch_mixer_controls),
  22634. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22635. &slim3_fm_switch_mixer_controls),
  22636. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22637. &slim4_fm_switch_mixer_controls),
  22638. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22639. &slim6_fm_switch_mixer_controls),
  22640. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22641. &pcm_rx_switch_mixer_controls),
  22642. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22643. &int0_mi2s_rx_switch_mixer_controls),
  22644. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22645. &int4_mi2s_rx_switch_mixer_controls),
  22646. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22647. &pri_mi2s_rx_switch_mixer_controls),
  22648. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22649. &sec_mi2s_rx_switch_mixer_controls),
  22650. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22651. &tert_mi2s_rx_switch_mixer_controls),
  22652. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22653. &quat_mi2s_rx_switch_mixer_controls),
  22654. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22655. &quin_mi2s_rx_switch_mixer_controls),
  22656. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22657. &sco_slim7_switch_mixer_controls),
  22658. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22659. &sen_mi2s_rx_switch_mixer_controls),
  22660. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22661. &hfp_pri_aux_switch_mixer_controls),
  22662. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22663. &hfp_aux_switch_mixer_controls),
  22664. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22665. &hfp_int_switch_mixer_controls),
  22666. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22667. &hfp_slim7_switch_mixer_controls),
  22668. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22669. &usb_switch_mixer_controls),
  22670. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22671. &a2dp_slim7_switch_mixer_controls),
  22672. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22673. &cdc_dma_wsa_switch_mixer_controls),
  22674. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22675. &cdc_dma_rx_switch_mixer_controls),
  22676. /* Mixer definitions */
  22677. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22678. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22679. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22680. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22681. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22682. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22683. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22684. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22685. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22686. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22687. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22688. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22689. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22690. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22691. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22692. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22693. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22694. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22695. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22696. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22697. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22698. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22699. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22700. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22701. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22702. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22703. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22704. quaternary_mi2s_rx_mixer_controls,
  22705. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22706. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22707. tertiary_mi2s_rx_mixer_controls,
  22708. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22709. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22710. secondary_mi2s_rx_mixer_controls,
  22711. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22712. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22713. secondary_mi2s_rx2_mixer_controls,
  22714. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22715. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22716. primary_mi2s_rx_mixer_controls,
  22717. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22718. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22719. int0_mi2s_rx_mixer_controls,
  22720. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22721. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22722. int4_mi2s_rx_mixer_controls,
  22723. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22724. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22725. quinary_mi2s_rx_mixer_controls,
  22726. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22727. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22728. senary_mi2s_rx_mixer_controls,
  22729. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22730. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22731. pri_tdm_rx_0_mixer_controls,
  22732. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22733. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22734. pri_tdm_rx_1_mixer_controls,
  22735. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22736. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22737. pri_tdm_rx_2_mixer_controls,
  22738. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22739. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22740. pri_tdm_rx_3_mixer_controls,
  22741. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22742. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22743. pri_tdm_tx_0_mixer_controls,
  22744. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22745. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22746. sec_tdm_rx_0_mixer_controls,
  22747. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22748. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22749. sec_tdm_rx_1_mixer_controls,
  22750. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22751. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22752. sec_tdm_rx_2_mixer_controls,
  22753. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22754. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22755. sec_tdm_rx_3_mixer_controls,
  22756. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22757. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22758. sec_tdm_tx_0_mixer_controls,
  22759. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22760. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22761. tert_tdm_rx_0_mixer_controls,
  22762. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22763. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22764. tert_tdm_tx_0_mixer_controls,
  22765. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22766. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22767. tert_tdm_rx_1_mixer_controls,
  22768. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22769. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22770. tert_tdm_rx_2_mixer_controls,
  22771. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22772. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22773. tert_tdm_rx_3_mixer_controls,
  22774. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22775. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22776. tert_tdm_rx_4_mixer_controls,
  22777. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22778. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22779. quat_tdm_rx_0_mixer_controls,
  22780. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22781. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22782. quat_tdm_tx_0_mixer_controls,
  22783. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  22784. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22785. quat_tdm_rx_1_mixer_controls,
  22786. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  22787. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22788. quat_tdm_rx_2_mixer_controls,
  22789. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  22790. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22791. quat_tdm_rx_3_mixer_controls,
  22792. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  22793. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22794. quin_tdm_rx_0_mixer_controls,
  22795. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  22796. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22797. quin_tdm_tx_0_mixer_controls,
  22798. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  22799. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22800. quin_tdm_rx_1_mixer_controls,
  22801. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  22802. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22803. quin_tdm_rx_2_mixer_controls,
  22804. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  22805. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22806. quin_tdm_rx_3_mixer_controls,
  22807. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  22808. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22809. sen_tdm_tx_0_mixer_controls,
  22810. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  22811. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22812. sen_tdm_rx_0_mixer_controls,
  22813. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  22814. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22815. sen_tdm_rx_1_mixer_controls,
  22816. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  22817. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22818. sen_tdm_rx_2_mixer_controls,
  22819. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  22820. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22821. sen_tdm_rx_3_mixer_controls,
  22822. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  22823. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22824. pri_meta_mi2s_rx_mixer_controls,
  22825. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  22826. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22827. sec_meta_mi2s_rx_mixer_controls,
  22828. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  22829. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22830. wsa_cdc_dma_rx_0_mixer_controls,
  22831. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  22832. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22833. wsa_cdc_dma_rx_1_mixer_controls,
  22834. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  22835. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22836. rx_cdc_dma_rx_0_mixer_controls,
  22837. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  22838. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22839. rx_cdc_dma_rx_1_mixer_controls,
  22840. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  22841. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22842. rx_cdc_dma_rx_2_mixer_controls,
  22843. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  22844. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22845. rx_cdc_dma_rx_3_mixer_controls,
  22846. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  22847. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22848. rx_cdc_dma_rx_4_mixer_controls,
  22849. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  22850. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22851. rx_cdc_dma_rx_5_mixer_controls,
  22852. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  22853. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22854. rx_cdc_dma_rx_6_mixer_controls,
  22855. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  22856. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22857. rx_cdc_dma_rx_7_mixer_controls,
  22858. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  22859. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  22860. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  22861. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  22862. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  22863. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  22864. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  22865. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  22866. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  22867. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  22868. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  22869. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  22870. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  22871. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  22872. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  22873. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  22874. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  22875. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  22876. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  22877. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  22878. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  22879. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  22880. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  22881. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  22882. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  22883. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  22884. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  22885. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  22886. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  22887. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  22888. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  22889. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  22890. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  22891. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  22892. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  22893. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  22894. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  22895. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  22896. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  22897. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  22898. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  22899. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22900. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  22901. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22902. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  22903. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22904. tert_auxpcm_rx_mixer_controls,
  22905. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  22906. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22907. quat_auxpcm_rx_mixer_controls,
  22908. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  22909. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22910. quin_auxpcm_rx_mixer_controls,
  22911. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  22912. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22913. sen_auxpcm_rx_mixer_controls,
  22914. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  22915. /* incall */
  22916. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  22917. incall_music_delivery_mixer_controls,
  22918. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  22919. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22920. incall_music2_delivery_mixer_controls,
  22921. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  22922. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22923. slimbus_4_rx_mixer_controls,
  22924. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  22925. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22926. slimbus_6_rx_mixer_controls,
  22927. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  22928. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22929. usb_audio_rx_mixer_controls,
  22930. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  22931. /* Voice Mixer */
  22932. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  22933. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  22934. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  22935. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  22936. SND_SOC_NOPM, 0, 0,
  22937. sec_i2s_rx_voice_mixer_controls,
  22938. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  22939. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  22940. SND_SOC_NOPM, 0, 0,
  22941. sec_mi2s_rx_voice_mixer_controls,
  22942. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  22943. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  22944. SND_SOC_NOPM, 0, 0,
  22945. slimbus_rx_voice_mixer_controls,
  22946. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  22947. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  22948. SND_SOC_NOPM, 0, 0,
  22949. bt_sco_rx_voice_mixer_controls,
  22950. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  22951. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  22952. SND_SOC_NOPM, 0, 0,
  22953. afe_pcm_rx_voice_mixer_controls,
  22954. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  22955. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  22956. SND_SOC_NOPM, 0, 0,
  22957. aux_pcm_rx_voice_mixer_controls,
  22958. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  22959. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  22960. SND_SOC_NOPM, 0, 0,
  22961. sec_aux_pcm_rx_voice_mixer_controls,
  22962. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  22963. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  22964. SND_SOC_NOPM, 0, 0,
  22965. tert_aux_pcm_rx_voice_mixer_controls,
  22966. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  22967. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  22968. SND_SOC_NOPM, 0, 0,
  22969. quat_aux_pcm_rx_voice_mixer_controls,
  22970. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  22971. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  22972. SND_SOC_NOPM, 0, 0,
  22973. quin_aux_pcm_rx_voice_mixer_controls,
  22974. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  22975. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  22976. SND_SOC_NOPM, 0, 0,
  22977. sen_aux_pcm_rx_voice_mixer_controls,
  22978. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  22979. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  22980. SND_SOC_NOPM, 0, 0,
  22981. hdmi_rx_voice_mixer_controls,
  22982. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  22983. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  22984. SND_SOC_NOPM, 0, 0,
  22985. mi2s_rx_voice_mixer_controls,
  22986. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  22987. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  22988. SND_SOC_NOPM, 0, 0,
  22989. pri_mi2s_rx_voice_mixer_controls,
  22990. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  22991. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  22992. SND_SOC_NOPM, 0, 0,
  22993. int0_mi2s_rx_voice_mixer_controls,
  22994. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  22995. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  22996. SND_SOC_NOPM, 0, 0,
  22997. int4_mi2s_rx_voice_mixer_controls,
  22998. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  22999. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23000. SND_SOC_NOPM, 0, 0,
  23001. tert_mi2s_rx_voice_mixer_controls,
  23002. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23003. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23004. SND_SOC_NOPM, 0, 0,
  23005. quat_mi2s_rx_voice_mixer_controls,
  23006. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23007. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23008. SND_SOC_NOPM, 0, 0,
  23009. quin_mi2s_rx_voice_mixer_controls,
  23010. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23011. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23012. SND_SOC_NOPM, 0, 0,
  23013. pri_tdm_rx_0_voice_mixer_controls,
  23014. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23015. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23016. SND_SOC_NOPM, 0, 0,
  23017. pri_tdm_rx_1_voice_mixer_controls,
  23018. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23019. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23020. SND_SOC_NOPM, 0, 0,
  23021. pri_tdm_rx_2_voice_mixer_controls,
  23022. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23023. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23024. SND_SOC_NOPM, 0, 0,
  23025. pri_tdm_rx_3_voice_mixer_controls,
  23026. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23027. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23028. SND_SOC_NOPM, 0, 0,
  23029. sen_mi2s_rx_voice_mixer_controls,
  23030. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23031. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23032. SND_SOC_NOPM, 0, 0,
  23033. quat_tdm_rx_2_voice_mixer_controls,
  23034. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23035. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23036. SND_SOC_NOPM, 0, 0,
  23037. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23038. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23039. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23040. SND_SOC_NOPM, 0, 0,
  23041. rx_cdc_dma_rx_0_voice_mixer_controls,
  23042. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23043. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23044. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23045. ARRAY_SIZE(tx_voip_mixer_controls)),
  23046. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23047. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23048. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23049. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23050. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23051. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23052. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23053. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23054. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23055. int_bt_a2dp_rx_mixer_controls,
  23056. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23057. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23058. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23059. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23060. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23061. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23062. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23063. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23064. tx_voice2_stub_mixer_controls,
  23065. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23066. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23067. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23068. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23069. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23070. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23071. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23072. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23073. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23074. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23075. SND_SOC_NOPM, 0, 0,
  23076. slimbus_6_rx_voice_mixer_controls,
  23077. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23078. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23079. slimbus_7_rx_voice_mixer_controls,
  23080. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23081. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23082. slimbus_8_rx_voice_mixer_controls,
  23083. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23084. /* port mixer */
  23085. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23086. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23087. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23088. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23089. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23090. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23091. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23092. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23093. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23094. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23095. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23096. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23097. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23098. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23099. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23100. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23101. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23102. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23103. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23104. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23105. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23106. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23107. sbus_1_rx_port_mixer_controls,
  23108. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23109. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23110. bt_sco_rx_port_mixer_controls,
  23111. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23112. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23113. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23114. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23115. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23116. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23117. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23118. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23119. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23120. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23121. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23122. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23123. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23124. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23125. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23126. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23127. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23128. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23129. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23130. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23131. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23132. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23133. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23134. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23135. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23136. primary_mi2s_rx_port_mixer_controls,
  23137. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23138. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23139. sec_mi2s_rx_port_mixer_controls,
  23140. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23141. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23142. tert_mi2s_rx_port_mixer_controls,
  23143. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23144. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23145. quat_mi2s_rx_port_mixer_controls,
  23146. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23147. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23148. quin_mi2s_rx_port_mixer_controls,
  23149. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23150. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23151. sen_mi2s_rx_port_mixer_controls,
  23152. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23153. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23154. pri_tdm_rx_0_port_mixer_controls,
  23155. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23156. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23157. pri_tdm_rx_1_port_mixer_controls,
  23158. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23159. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23160. pri_tdm_rx_2_port_mixer_controls,
  23161. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23162. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23163. pri_tdm_rx_3_port_mixer_controls,
  23164. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23165. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23166. sec_tdm_rx_0_port_mixer_controls,
  23167. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23168. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23169. sec_tdm_rx_1_port_mixer_controls,
  23170. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23171. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23172. sec_tdm_rx_2_port_mixer_controls,
  23173. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23174. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23175. sec_tdm_rx_3_port_mixer_controls,
  23176. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23177. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23178. sec_tdm_rx_7_port_mixer_controls,
  23179. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23180. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23181. tert_tdm_rx_0_port_mixer_controls,
  23182. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23183. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23184. tert_tdm_rx_1_port_mixer_controls,
  23185. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23186. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23187. tert_tdm_rx_2_port_mixer_controls,
  23188. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23189. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23190. tert_tdm_rx_3_port_mixer_controls,
  23191. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23192. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23193. quat_tdm_rx_0_port_mixer_controls,
  23194. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23195. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23196. quat_tdm_rx_1_port_mixer_controls,
  23197. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23198. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23199. quat_tdm_rx_2_port_mixer_controls,
  23200. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23201. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23202. quat_tdm_rx_3_port_mixer_controls,
  23203. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23204. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23205. quat_tdm_rx_7_port_mixer_controls,
  23206. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23207. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23208. quin_tdm_rx_0_port_mixer_controls,
  23209. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23210. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23211. quin_tdm_rx_1_port_mixer_controls,
  23212. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23213. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23214. quin_tdm_rx_2_port_mixer_controls,
  23215. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23216. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23217. quin_tdm_rx_3_port_mixer_controls,
  23218. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23219. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23220. quin_tdm_rx_7_port_mixer_controls,
  23221. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23222. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23223. sen_tdm_rx_0_port_mixer_controls,
  23224. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23225. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23226. sen_tdm_rx_1_port_mixer_controls,
  23227. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23228. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23229. sen_tdm_rx_2_port_mixer_controls,
  23230. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23231. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23232. sen_tdm_rx_3_port_mixer_controls,
  23233. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23234. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23235. int0_mi2s_rx_port_mixer_controls,
  23236. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23237. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23238. int4_mi2s_rx_port_mixer_controls,
  23239. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23240. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23241. wsa_cdc_dma_rx_0_port_mixer_controls,
  23242. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23243. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23244. rx_cdc_dma_rx_0_port_mixer_controls,
  23245. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23246. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23247. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23248. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23249. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23250. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23251. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23252. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23253. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23254. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23255. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23256. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23257. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23258. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23259. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23260. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23261. /* lsm mixer definitions */
  23262. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23263. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23264. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23265. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23266. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23267. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23268. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23269. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23270. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23271. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23272. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23273. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23274. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23275. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23276. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23277. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23278. /* Virtual Pins to force backends ON atm */
  23279. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23280. SND_SOC_DAPM_INPUT("BE_IN"),
  23281. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23282. &slim0_rx_vi_fb_lch_mux),
  23283. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23284. &slim0_rx_vi_fb_rch_mux),
  23285. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23286. &wsa_rx_0_vi_fb_lch_mux),
  23287. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23288. &wsa_rx_0_vi_fb_rch_mux),
  23289. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23290. &mi2s_rx_vi_fb_mux),
  23291. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23292. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23293. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23294. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23295. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23296. &voc_ext_ec_mux),
  23297. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23298. &ext_ec_ref_mux_ul1),
  23299. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23300. &ext_ec_ref_mux_ul2),
  23301. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23302. &ext_ec_ref_mux_ul3),
  23303. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23304. &ext_ec_ref_mux_ul4),
  23305. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23306. &ext_ec_ref_mux_ul5),
  23307. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23308. &ext_ec_ref_mux_ul6),
  23309. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23310. &ext_ec_ref_mux_ul8),
  23311. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23312. &ext_ec_ref_mux_ul9),
  23313. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23314. &ext_ec_ref_mux_ul10),
  23315. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23316. &ext_ec_ref_mux_ul16),
  23317. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23318. &ext_ec_ref_mux_ul17),
  23319. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23320. &ext_ec_ref_mux_ul18),
  23321. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23322. &ext_ec_ref_mux_ul19),
  23323. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23324. &ext_ec_ref_mux_ul28),
  23325. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23326. &ext_ec_ref_mux_ul29),
  23327. };
  23328. static const struct snd_soc_dapm_route intercon[] = {
  23329. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23330. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23331. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23332. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23333. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23334. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23335. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23336. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23337. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23338. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23339. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23340. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23341. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23342. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23343. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23344. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23345. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23346. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23347. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23348. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23349. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23350. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23351. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23352. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23353. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23354. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23355. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23356. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23357. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23358. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23359. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23360. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23361. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23362. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23363. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23364. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23365. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23366. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23367. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23368. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23369. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23370. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23371. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23372. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23373. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23374. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23375. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23376. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23377. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23378. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23379. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23380. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23381. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23382. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23383. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23384. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23385. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23386. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23387. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23388. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23389. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23390. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23391. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23392. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23393. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23394. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23395. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23396. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23397. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23398. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23399. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23400. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23401. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23402. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23403. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23404. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23405. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23406. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23407. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23408. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23409. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23410. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23411. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23412. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23413. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23414. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23415. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23416. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23417. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23418. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23419. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23420. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23421. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23422. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23423. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23424. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23425. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23426. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23427. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23428. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23429. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23430. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23431. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23432. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23433. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23434. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23435. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23436. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23437. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23438. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23439. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23440. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23441. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23442. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23443. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23444. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23445. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23446. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23447. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23448. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23449. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23450. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23451. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23452. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23453. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23454. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23455. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23456. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23457. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23458. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23459. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23460. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23461. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23462. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23463. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23464. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23465. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23466. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23467. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23468. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23469. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23470. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23471. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23472. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23473. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23474. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23475. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23476. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23477. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23478. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23479. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23480. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23481. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23482. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23483. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23484. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23485. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23486. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23487. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23488. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23489. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23490. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23491. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23492. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23493. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23494. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23495. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23496. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23497. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23498. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23499. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23500. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23501. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23502. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23503. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23504. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23505. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23506. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23507. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23508. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23509. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23510. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23511. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23512. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23513. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23514. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23515. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23516. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23517. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23518. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23519. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23520. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23521. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23522. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23523. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23524. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23525. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23526. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23527. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23528. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23529. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23530. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23531. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23532. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23533. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23534. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23535. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23536. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23537. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23538. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23539. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23540. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23541. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23542. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23543. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23544. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23545. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23546. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23547. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23548. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23549. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23550. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23551. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23552. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23553. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23554. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23555. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23556. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23557. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23558. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23559. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23560. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23561. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23562. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23563. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23564. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23565. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23566. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23567. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23568. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23569. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23570. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23571. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23572. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23573. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23574. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23575. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23576. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23577. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23578. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23579. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23580. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23581. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23582. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23583. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23584. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23585. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23586. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23587. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23588. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23589. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23590. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23591. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23592. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23593. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23594. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23595. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23596. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23597. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23598. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23599. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23600. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23601. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23602. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23603. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23604. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23605. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23606. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23607. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23608. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23609. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23610. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23611. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23612. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23613. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23614. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23615. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23616. {"HDMI", NULL, "HDMI Mixer"},
  23617. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23618. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23619. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23620. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23621. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23622. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23623. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23624. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23625. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23626. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23627. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23628. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23629. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23630. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23631. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23632. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23633. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23634. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23635. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23636. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23637. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23638. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23639. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23640. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23641. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23642. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23643. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23644. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23645. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23646. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23647. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23648. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23649. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23650. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23651. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23652. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23653. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23654. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23655. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23656. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23657. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23658. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23659. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23660. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23661. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23662. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23663. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23664. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23665. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23666. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23667. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23668. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23669. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23670. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23671. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23672. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23673. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23674. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23675. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23676. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23677. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23678. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23679. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23680. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23681. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23682. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23683. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23684. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23685. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23686. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23687. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23688. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23689. /* incall */
  23690. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23691. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23692. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23693. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23694. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23695. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23696. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23697. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23698. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23699. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23700. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23701. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23702. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23703. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23704. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23705. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23706. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23707. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23708. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23709. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23710. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23711. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23712. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23713. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23714. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23715. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23716. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23717. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23718. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23719. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23720. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23721. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23722. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23723. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23724. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23725. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23726. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23727. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23728. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23729. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23730. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23731. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23732. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23733. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23734. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23735. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23736. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23737. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23738. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23739. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23740. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23741. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23742. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23743. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23744. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23745. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23746. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23747. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23748. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23749. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23750. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23751. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23752. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23753. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23754. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23755. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23756. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23757. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23758. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23759. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23760. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23761. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23762. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23763. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23764. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23765. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23766. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23767. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23768. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23769. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23770. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23771. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23772. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23773. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23774. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23775. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23776. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  23777. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23778. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23779. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23780. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23781. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23782. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23783. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  23784. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23785. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23786. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23787. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23788. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23789. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23790. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23791. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23792. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23793. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23794. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23795. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23796. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23797. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23798. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23799. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23800. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23801. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23802. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23803. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23804. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23805. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23806. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23807. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23808. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23809. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23810. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23811. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23812. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23813. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23814. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23815. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23816. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23817. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23818. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23819. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23820. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23821. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23822. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23823. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23824. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23825. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23826. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23827. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23828. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23829. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23830. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23831. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23832. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23833. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  23834. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23835. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23836. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23837. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23838. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23839. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23840. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23841. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23842. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23843. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  23844. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23845. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23846. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23847. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23848. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23849. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23850. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23851. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23852. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23853. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23854. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23855. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23856. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23857. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23858. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23859. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23860. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23861. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23862. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23863. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23864. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23865. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23866. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23867. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23868. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23869. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23870. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23871. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23872. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23873. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23874. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  23875. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23876. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23877. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23878. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23879. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23880. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23881. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23882. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23883. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23884. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23885. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23886. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23887. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23888. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23889. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23890. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23891. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  23892. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23893. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23894. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23895. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23896. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23897. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23898. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23899. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23900. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23901. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23902. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23903. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23904. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23905. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23906. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23907. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  23908. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23909. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23910. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23911. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23912. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23913. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23914. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23915. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23916. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23917. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23918. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23919. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23920. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23921. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23922. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23923. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  23924. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23925. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  23926. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23927. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23928. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23929. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23930. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23931. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23932. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23933. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23934. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23935. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23936. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23937. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23938. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23939. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23940. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23941. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23942. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23943. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23944. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23945. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  23946. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23947. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23948. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23949. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23950. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23951. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23952. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23953. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23954. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23955. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23956. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23957. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23958. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23959. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23960. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23961. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  23962. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23963. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23964. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23965. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23966. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23967. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23968. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23969. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23970. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23971. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23972. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23973. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23974. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23975. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23976. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23977. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  23978. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23979. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23980. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23981. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23982. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23983. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23984. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23985. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23986. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23987. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23988. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23989. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23990. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23991. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23992. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23993. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23994. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23995. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  23996. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23997. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23998. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23999. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24000. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24001. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24002. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24003. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24004. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24005. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24006. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24007. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24008. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24009. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24010. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24011. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24012. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24013. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24014. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24015. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24016. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24017. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24018. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24019. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24020. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24021. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24022. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24023. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24024. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24025. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24026. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24027. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24028. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24029. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24030. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24031. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24032. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24033. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24034. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24035. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24036. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24037. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24038. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24039. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24040. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24041. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24042. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24043. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24044. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24045. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24046. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24047. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24048. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24049. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24050. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24051. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24052. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24053. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24054. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24055. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24056. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24057. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24058. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24059. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24060. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24061. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24062. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24063. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24064. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24065. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24066. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24067. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24068. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24069. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24070. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24071. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24072. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24073. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24074. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24075. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24076. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24077. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24078. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24079. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24080. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24081. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24082. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24083. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24084. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24085. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24086. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24087. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24088. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24089. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24090. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24091. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24092. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24093. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24094. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24095. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24096. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24097. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24098. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24099. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24100. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24101. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24102. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24103. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24104. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24105. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24106. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24107. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24108. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24109. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24110. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24111. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24112. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24113. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24114. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24115. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24116. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24117. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24118. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24119. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24120. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24121. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24122. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24123. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24124. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24125. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24126. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24127. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24128. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24129. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24130. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24131. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24132. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24133. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24134. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24135. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24136. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24137. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24138. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24139. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24140. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24141. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24142. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24143. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24144. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24145. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24146. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24147. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24148. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24149. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24150. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24151. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24152. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24153. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24154. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24155. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24156. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24157. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24158. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24159. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24160. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24161. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24162. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24163. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24164. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24165. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24166. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24167. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24168. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24169. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24170. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24171. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24172. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24173. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24174. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24175. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24176. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24177. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24178. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24179. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24180. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24181. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24182. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24183. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24184. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24185. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24186. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24187. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24188. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24189. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24190. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24191. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24192. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24193. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24194. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24195. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24196. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24197. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24198. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24199. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24200. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24201. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24202. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24203. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24204. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24205. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24206. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24207. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24208. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24209. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24210. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24211. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24212. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24213. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24214. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24215. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24216. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24217. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24218. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24219. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24220. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24221. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24222. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24223. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24224. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24225. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24226. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24227. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24228. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24229. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24230. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24231. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24232. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24233. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24234. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24235. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24236. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24237. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24238. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24239. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24240. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24241. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24242. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24243. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24244. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24245. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24246. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24247. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24248. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24249. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24250. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24251. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24252. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24253. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24254. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24255. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24256. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24257. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24258. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24259. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24260. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24261. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24262. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24263. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24264. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24265. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24266. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24267. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24268. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24269. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24270. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24271. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24272. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24273. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24274. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24275. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24276. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24277. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24278. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24279. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24280. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24281. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24282. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24283. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24284. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24285. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24286. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24287. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24288. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24289. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24290. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24291. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24292. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24293. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24294. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24295. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24296. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24297. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24298. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24299. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24300. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24301. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24302. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24303. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24304. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24305. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24306. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24307. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24308. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24309. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24310. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24311. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24312. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24313. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24314. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24315. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24316. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24317. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24318. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24319. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24320. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24321. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24322. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24323. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24324. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24325. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24326. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24327. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24328. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24329. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24330. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24331. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24332. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24333. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24334. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24335. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24336. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24337. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24338. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24339. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24340. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24341. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24342. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24343. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24344. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24345. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24346. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24347. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24348. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24349. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24350. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24351. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24352. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24353. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24354. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24355. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24356. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24357. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24358. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24359. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24360. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24361. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24362. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24363. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24364. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24365. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24366. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24367. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24368. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24369. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24370. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24371. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24372. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24373. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24374. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24375. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24376. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24377. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24378. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24379. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24380. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24381. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24382. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24383. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24384. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24385. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24386. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24387. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24388. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24389. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24390. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24391. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24392. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24393. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24394. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24395. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24396. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24397. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24398. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24399. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24400. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24401. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24402. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24403. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24404. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24405. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24406. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24407. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24408. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24409. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24410. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24411. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24412. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24413. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24414. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24415. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24416. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24417. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24418. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24419. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24420. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24421. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24422. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24423. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24424. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24425. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24426. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24427. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24428. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24429. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24430. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24431. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24432. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24433. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24434. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24435. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24436. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24437. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24438. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24439. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24440. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24441. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24442. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24443. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24444. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24445. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24446. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24447. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24448. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24449. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24450. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24451. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24452. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24453. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24454. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24455. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24456. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24457. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24458. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24459. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24460. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24461. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24462. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  24463. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24464. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24465. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24466. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24467. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24468. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24469. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24470. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24471. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24472. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24473. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24474. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24475. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24476. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24477. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24478. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24479. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24480. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24481. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24482. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24483. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24484. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24485. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24486. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24487. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24488. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24489. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24490. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24491. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24492. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24493. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24494. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24495. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24496. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24497. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24498. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24499. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24500. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24501. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24502. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24503. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24504. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24505. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24506. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24507. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24508. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24509. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24510. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24511. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24512. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24513. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24514. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24515. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24516. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24517. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24518. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24519. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24520. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24521. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24522. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24523. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24524. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24525. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24526. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24527. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24528. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24529. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24530. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24531. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24532. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24533. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24534. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24535. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24536. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24537. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24538. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24539. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24540. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24541. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24542. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24543. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24544. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24545. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24546. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24547. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24548. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24549. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24550. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24551. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24552. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24553. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24554. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24555. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24556. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24557. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24558. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24559. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24560. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24561. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24562. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24563. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24564. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24565. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24566. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24567. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24568. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24569. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24570. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24571. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24572. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24573. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24574. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24575. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24576. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24577. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24578. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24579. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24580. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24581. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24582. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24583. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24584. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24585. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24586. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24587. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24588. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24589. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24590. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24591. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24592. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24593. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24594. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24595. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24596. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24597. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24598. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24599. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24600. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24601. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24602. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24603. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24604. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24605. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24606. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24607. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24608. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24609. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24610. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24611. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24612. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24613. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24614. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24615. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24616. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24617. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24618. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24619. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24620. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24621. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24622. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24623. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24624. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24625. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24626. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24627. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24628. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24629. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24630. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24631. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24632. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24633. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24634. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24635. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24636. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24637. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24638. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24639. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24640. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24641. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24642. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24643. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24644. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24645. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24646. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24647. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24648. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24649. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24650. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24651. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24652. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24653. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24654. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24655. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24656. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24657. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24658. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24659. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24660. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24661. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24662. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24663. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24664. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24665. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24666. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24667. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24668. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24669. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24670. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24671. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24672. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24673. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24674. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24675. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24676. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24677. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24678. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24679. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24680. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24681. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24682. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24683. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24684. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24685. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24686. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24687. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24688. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24689. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24690. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24691. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24692. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24693. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24694. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24695. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24696. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24697. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24698. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24699. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24700. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24701. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24702. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24703. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24704. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24705. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24706. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24707. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24708. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24709. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24710. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24711. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24712. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24713. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24714. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24715. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24716. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24717. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24718. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24719. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24720. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24721. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24722. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24723. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24724. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24725. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24726. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24727. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24728. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24729. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24730. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24731. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24732. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24733. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24734. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24735. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24736. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24737. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24738. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24739. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24740. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24741. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24742. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24743. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24744. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24745. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24746. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24747. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24748. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24749. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24750. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24751. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24752. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24753. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24754. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24755. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24756. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24757. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24758. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24759. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24760. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24761. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24762. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24763. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24764. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24765. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24766. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24767. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24768. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24769. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24770. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24771. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24772. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24773. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24774. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24775. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24776. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24777. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24778. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24779. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24780. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24781. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24782. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24783. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24784. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24785. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24786. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24787. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24788. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24789. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24790. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24791. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24792. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24793. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24794. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24795. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24796. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24797. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24798. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24799. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24800. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24801. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24802. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24803. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24804. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24805. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24806. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24807. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24808. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24809. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24810. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24811. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24812. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24813. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24814. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24815. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24816. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24817. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24818. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24819. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24820. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24821. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24822. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24823. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24824. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24825. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24826. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24827. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24828. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24829. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24830. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24831. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24832. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24833. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24834. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24835. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24836. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24837. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24838. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24839. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24840. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24841. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24842. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24843. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24844. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24845. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24846. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24847. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24848. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24849. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24850. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24851. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24852. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24853. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24854. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24855. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24856. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24857. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24858. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24859. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24860. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24861. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24862. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24863. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24864. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24865. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24866. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24867. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24868. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24869. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24870. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24871. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24872. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24873. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24874. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24875. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24876. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24877. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24878. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24879. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24880. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24881. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24882. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24883. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24884. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24885. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24886. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24887. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24888. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24889. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24890. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24891. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24892. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24893. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24894. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24895. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24896. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24897. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24898. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24899. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24900. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24901. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24902. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24903. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24904. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24905. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24906. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24907. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24908. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24909. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24910. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24911. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24912. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24913. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24914. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24915. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24916. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24917. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24918. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24919. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24920. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24921. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24922. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24923. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24924. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24925. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24926. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24927. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24928. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24929. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24930. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24931. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24932. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24933. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24934. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24935. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24936. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24937. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24938. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24939. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24940. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24941. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24942. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24943. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24944. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24945. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24946. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24947. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24948. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24949. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24950. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24951. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24952. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24953. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24954. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24955. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24956. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24957. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24958. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24959. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24960. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24961. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24962. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24963. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24964. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24965. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24966. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24967. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24968. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24969. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24970. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24971. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24972. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24973. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24974. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24975. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24976. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24977. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24978. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24979. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24980. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24981. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24982. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24983. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24984. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24985. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24986. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24987. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24988. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24989. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24990. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24991. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24992. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24993. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24994. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24995. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24996. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24997. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24998. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24999. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25000. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25001. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25002. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25003. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25004. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25005. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25006. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25007. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25008. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25009. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25010. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25011. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25012. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25013. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25014. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25015. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25016. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25017. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25018. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25019. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25020. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25021. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25022. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25023. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25024. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25025. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25026. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25027. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25028. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25029. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25030. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25031. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25032. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25033. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25034. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25035. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25036. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25037. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25038. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25039. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25040. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25041. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25042. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25043. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25044. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25045. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25046. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25047. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25048. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25049. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25050. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25051. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25052. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25053. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25054. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25055. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25056. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25057. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25058. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25059. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25060. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25061. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25062. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25063. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25064. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25065. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25066. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25067. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25068. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25069. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25070. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25071. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25072. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25073. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25074. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25075. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25076. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25077. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25078. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25079. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25080. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25081. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25082. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25083. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25084. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25085. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25086. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25087. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25088. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25089. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25090. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25091. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25092. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25093. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25094. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25095. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25096. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25097. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25098. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25099. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25100. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25101. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25102. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25103. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25104. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25105. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25106. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25107. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25108. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25109. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25110. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25111. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25112. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25113. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25114. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25115. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25116. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25117. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25118. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25119. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25120. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25121. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25122. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25123. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25124. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25125. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25126. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25127. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25128. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25129. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25130. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25131. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25132. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25133. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25134. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25135. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25136. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25137. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25138. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25139. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25140. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25141. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25142. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25143. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25144. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25145. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25146. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25147. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25148. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25149. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25150. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25151. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25152. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25153. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25154. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25155. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25156. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25157. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25158. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25159. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25160. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25161. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25162. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25163. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25164. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25165. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25166. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25167. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25168. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25169. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25170. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25171. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25172. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25173. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25174. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25175. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25176. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25177. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25178. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25179. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25180. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25181. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25182. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25183. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25184. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25185. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25186. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25187. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25188. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25189. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25190. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25191. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25192. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25193. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25194. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25195. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25196. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25197. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25198. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25199. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25200. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25201. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25202. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25203. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25204. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25205. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25206. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25207. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25208. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25209. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25210. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25211. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25212. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25213. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25214. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25215. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25216. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25217. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25218. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25219. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25220. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25221. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25222. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25223. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25224. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25225. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25226. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25227. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25228. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25229. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25230. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25231. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25232. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25233. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25234. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25235. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25236. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25237. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25238. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25239. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25240. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25241. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25242. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25243. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25244. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25245. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25246. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25247. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25248. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25249. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25250. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25251. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25252. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25253. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25254. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25255. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25256. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25257. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25258. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25259. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25260. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25261. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25262. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25263. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25264. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25265. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25266. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25267. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25268. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25269. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25270. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25271. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25272. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25273. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25274. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25275. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25276. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25277. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25278. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25279. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25280. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25281. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25282. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25283. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25284. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25285. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25286. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25287. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25288. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25289. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25290. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25291. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25292. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25293. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25294. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25295. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25296. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25297. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25298. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25299. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25300. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25301. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25302. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25303. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25304. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25305. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25306. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25307. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25308. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25309. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25310. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25311. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25312. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25313. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25314. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25315. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25316. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25317. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25318. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25319. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25320. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25321. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25322. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25323. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25324. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25325. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25326. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25327. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25328. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25329. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25330. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25331. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25332. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25333. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25334. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25335. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25336. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25337. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25338. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25339. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25340. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25341. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25342. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25343. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25344. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25345. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25346. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25347. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25348. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25349. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25350. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25351. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25352. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25353. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25354. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25355. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25356. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25357. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25358. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25359. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25360. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25361. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25362. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25363. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25364. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25365. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25366. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25367. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25368. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25369. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25370. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25371. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25372. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25373. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25374. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25375. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25376. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25377. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25378. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25379. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25380. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25381. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25382. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25383. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25384. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25385. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25386. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25387. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25388. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25389. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25390. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25391. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25392. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25393. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25394. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25395. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25396. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25397. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25398. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25399. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25400. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25401. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25402. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25403. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25404. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25405. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25406. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25407. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25408. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25409. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25410. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25411. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25412. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25413. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25414. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25415. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25416. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25417. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25418. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25419. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25420. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25421. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25422. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25423. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25424. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25425. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25426. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25427. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25428. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25429. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25430. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25431. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25432. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25433. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25434. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25435. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25436. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25437. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25438. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25439. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25440. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25441. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25442. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25443. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25444. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25445. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  25446. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25447. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25448. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25449. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25450. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25451. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25452. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25453. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25454. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25455. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25456. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25457. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25458. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25459. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25460. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25461. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25462. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  25463. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25464. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25465. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25466. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25467. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25468. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25469. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25470. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25471. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25472. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25473. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25474. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25475. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25476. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25477. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25478. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25479. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  25480. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25481. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25482. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25483. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25484. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25485. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  25486. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25487. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25488. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25489. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  25490. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25491. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25492. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25493. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25494. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25495. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25496. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25497. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  25498. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25499. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25500. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25501. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25502. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25503. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25504. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25505. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25506. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25507. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25508. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25509. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25510. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25511. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25512. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25513. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25514. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25515. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25516. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25517. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25518. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25519. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25520. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25521. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25522. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25523. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25524. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25525. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25526. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25527. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25528. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25529. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25530. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25531. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25532. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25533. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25534. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25535. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25536. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25537. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25538. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25539. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25540. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25541. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25542. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25543. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25544. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25545. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25546. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25547. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25548. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25549. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25550. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25551. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25552. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25553. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25554. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25555. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25556. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25557. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25558. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25559. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25560. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25561. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25562. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25563. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25564. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25565. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25566. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25567. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25568. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25569. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25570. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25571. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25572. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25573. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25574. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25575. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25576. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25577. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25578. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25579. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25580. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25581. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25582. {"HDMI", NULL, "HDMI_DL_HL"},
  25583. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25584. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25585. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25586. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25587. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25588. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25589. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25590. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25591. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25592. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25593. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25594. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25595. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25596. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25597. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25598. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25599. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25600. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25601. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25602. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25603. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25604. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25605. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25606. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25607. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25608. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25609. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25610. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25611. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25612. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25613. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25614. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25615. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25616. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25617. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25618. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25619. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25620. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25621. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25622. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25623. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25624. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25625. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25626. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25627. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25628. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25629. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25630. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25631. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25632. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25633. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25634. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25635. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25636. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25637. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25638. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25639. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25640. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25641. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25642. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25643. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25644. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25645. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25646. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25647. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25648. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25649. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25650. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25651. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25652. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25653. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25654. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25655. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25656. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25657. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25658. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25659. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25660. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25661. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25662. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25663. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25664. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25665. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25666. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25667. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25668. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25669. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25670. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25671. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25672. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25673. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25674. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25675. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25676. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25677. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25678. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25679. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25680. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25681. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25682. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25683. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25684. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25685. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25686. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25687. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25688. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25689. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25690. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  25691. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25692. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25693. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25694. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25695. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25696. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25697. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25698. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25699. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25700. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25701. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25702. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25703. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25704. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25705. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25706. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25707. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25708. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25709. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25710. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25711. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25712. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25713. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25714. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25715. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25716. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25717. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25718. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25719. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25720. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25721. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25722. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25723. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25724. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25725. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25726. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25727. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25728. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25729. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25730. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25731. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25732. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25733. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25734. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25735. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25736. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25737. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25738. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25739. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25740. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25741. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25742. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25743. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25744. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25745. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25746. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25747. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25748. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25749. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25750. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25751. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25752. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25753. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25754. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25755. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25756. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25757. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25758. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25759. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25760. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25761. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25762. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25763. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25764. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25765. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25766. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25767. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25768. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25769. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25770. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25771. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25772. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25773. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25774. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25775. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25776. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25777. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25778. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25779. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25780. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  25781. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  25782. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  25783. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  25784. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  25785. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  25786. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  25787. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  25788. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  25789. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  25790. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  25791. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  25792. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  25793. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  25794. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  25795. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  25796. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  25797. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  25798. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  25799. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  25800. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  25801. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  25802. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  25803. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  25804. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  25805. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  25806. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  25807. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  25808. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  25809. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  25810. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  25811. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  25812. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  25813. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  25814. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  25815. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  25816. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  25817. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  25818. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  25819. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  25820. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  25821. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  25822. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  25823. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  25824. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  25825. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  25826. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  25827. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  25828. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  25829. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  25830. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  25831. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  25832. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  25833. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  25834. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  25835. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  25836. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  25837. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  25838. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  25839. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  25840. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  25841. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  25842. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  25843. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  25844. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  25845. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  25846. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  25847. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  25848. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  25849. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  25850. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  25851. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  25852. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  25853. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  25854. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  25855. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  25856. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  25857. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  25858. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  25859. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  25860. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  25861. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  25862. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  25863. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  25864. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  25865. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  25866. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  25867. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  25868. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  25869. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  25870. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  25871. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  25872. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  25873. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  25874. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  25875. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  25876. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  25877. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  25878. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  25879. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  25880. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  25881. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  25882. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  25883. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  25884. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  25885. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  25886. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  25887. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  25888. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  25889. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  25890. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  25891. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  25892. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  25893. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  25894. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  25895. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25896. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  25897. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  25898. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  25899. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  25900. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  25901. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25902. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25903. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25904. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25905. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25906. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25907. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25908. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25909. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25910. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25911. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25912. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25913. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25914. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  25915. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25916. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25917. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25918. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25919. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25920. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25921. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25922. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25923. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25924. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25925. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25926. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25927. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25928. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  25929. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25930. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25931. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25932. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25933. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25934. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25935. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25936. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25937. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25938. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25939. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25940. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25941. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25942. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  25943. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25944. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25945. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25946. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25947. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25948. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25949. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25950. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25951. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25952. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25953. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25954. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25955. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25956. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  25957. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25958. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25959. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25960. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25961. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25962. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25963. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25964. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25965. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25966. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25967. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25968. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25969. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25970. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  25971. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25972. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25973. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25974. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25975. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25976. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25977. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25978. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25979. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25980. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25981. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25982. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  25983. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25984. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25985. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25986. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25987. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  25988. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25989. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25990. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25991. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25992. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25993. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25994. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  25995. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  25996. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  25997. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  25998. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  25999. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26000. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26001. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26002. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26003. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26004. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26005. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26006. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26007. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26008. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26009. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26010. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26011. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26012. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26013. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26014. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26015. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26016. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26017. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26018. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26019. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26020. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26021. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26022. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26023. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26024. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26025. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26026. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26027. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26028. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26029. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26030. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26031. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26032. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26033. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26034. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26035. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26036. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26037. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26038. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26039. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26040. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26041. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26042. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26043. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26044. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26045. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26046. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26047. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26048. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26049. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26050. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26051. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26052. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26053. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26054. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26055. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26056. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26057. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26058. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26059. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26060. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26061. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26062. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26063. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26064. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26065. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26066. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26067. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26068. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26069. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26070. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26071. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26072. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26073. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26074. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26075. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26076. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26077. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26078. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26079. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26080. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26081. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26082. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26083. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26084. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26085. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26086. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26087. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26088. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26089. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26090. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26091. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26092. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26093. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26094. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26095. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26096. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26097. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26098. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26099. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26100. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26101. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26102. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26103. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26104. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26105. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26106. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26107. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26108. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26109. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26110. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26111. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26112. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26113. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26114. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26115. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26116. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26117. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26118. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26119. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26120. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26121. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26122. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26123. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26124. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26125. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26126. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26127. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26128. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26129. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26130. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26131. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26132. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26133. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26134. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26135. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26136. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26137. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26138. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26139. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26140. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26141. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26142. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26143. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26144. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26145. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26146. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26147. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26148. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26149. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26150. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26151. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26152. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26153. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26154. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26155. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26156. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26157. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26158. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26159. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26160. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26161. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26162. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26163. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26164. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26165. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26166. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26167. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26168. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26169. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26170. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26171. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26172. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26173. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26174. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26175. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26176. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26177. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26178. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26179. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26180. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26181. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26182. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26183. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26184. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26185. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26186. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26187. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26188. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26189. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26190. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26191. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26192. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26193. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26194. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26195. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26196. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26197. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26198. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26199. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26200. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26201. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26202. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26203. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26204. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26205. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26206. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26207. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26208. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26209. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26210. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26211. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26212. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26213. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26214. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26215. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26216. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26217. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26218. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26219. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26220. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26221. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26222. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26223. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26224. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26225. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26226. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26227. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26228. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26229. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26230. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26231. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26232. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26233. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26234. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26235. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26236. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26237. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26238. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26239. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26240. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26241. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26242. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26243. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26244. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26245. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26246. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26247. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26248. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26249. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26250. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26251. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26252. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26253. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26254. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26255. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26256. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26257. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26258. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26259. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26260. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26261. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26262. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26263. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26264. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26265. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26266. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26267. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26268. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26269. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26270. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26271. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26272. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26273. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26274. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26275. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26276. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26277. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26278. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26279. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26280. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26281. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26282. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26283. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26284. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26285. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26286. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26287. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26288. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26289. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26290. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26291. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26292. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26293. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26294. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26295. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26296. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26297. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26298. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26299. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26300. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26301. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26302. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26303. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26304. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26305. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26306. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26307. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26308. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26309. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26310. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26311. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26312. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26313. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26314. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26315. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26316. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26317. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26318. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26319. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26320. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26321. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26322. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26323. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26324. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26325. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26326. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26327. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26328. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26329. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26330. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26331. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26332. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26333. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26334. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26335. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26336. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26337. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26338. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26339. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26340. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26341. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26342. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26343. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26344. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26345. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26346. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26347. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26348. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26349. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26350. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26351. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26352. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26353. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26354. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26355. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26356. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26357. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26358. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26359. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26360. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26361. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26362. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26363. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26364. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26365. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26366. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26367. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26368. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26369. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26370. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26371. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26372. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26373. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26374. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26375. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26376. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26377. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26378. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26379. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26380. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26381. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26382. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26383. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26384. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26385. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26386. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26387. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26388. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26389. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26390. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26391. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26392. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26393. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26394. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26395. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26396. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26397. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26398. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26399. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26400. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26401. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26402. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26403. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26404. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26405. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26406. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26407. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26408. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26409. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26410. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26411. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26412. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26413. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26414. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26415. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26416. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26417. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26418. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26419. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26420. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26421. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26422. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26423. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26424. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26425. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26426. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26427. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26428. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26429. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  26430. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26431. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26432. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26433. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26434. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26435. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26436. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26437. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26438. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26439. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26440. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26441. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26442. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26443. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26444. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26445. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26446. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26447. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26448. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26449. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26450. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26451. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26452. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26453. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26454. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  26455. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26456. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26457. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26458. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26459. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26460. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26461. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26462. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26463. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26464. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26465. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26466. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26467. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26468. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26469. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26470. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26471. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26472. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26473. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26474. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26475. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26476. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26477. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26478. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26479. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  26480. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26481. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26482. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26483. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26484. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26485. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26486. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26487. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26488. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26489. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26490. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26491. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26492. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26493. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26494. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26495. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26496. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26497. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26498. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26499. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26500. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26501. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26502. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26503. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26504. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  26505. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26506. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26507. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26508. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26509. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26510. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26511. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26512. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26513. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26514. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26515. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26516. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26517. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26518. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26519. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26520. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26521. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26522. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26523. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26524. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26525. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26526. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26527. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26528. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26529. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26530. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26531. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26532. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26533. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26534. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26535. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26536. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26537. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26538. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26539. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26540. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26541. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26542. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26543. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26544. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26545. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26546. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26547. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26548. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26549. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26550. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26551. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26552. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26553. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26554. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26555. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26556. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26557. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26558. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26559. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26560. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26561. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26562. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26563. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26564. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26565. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26566. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26567. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26568. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26569. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26570. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26571. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26572. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26573. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26574. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26575. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26576. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26577. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26578. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26579. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26580. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26581. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26582. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26583. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26584. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26585. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26586. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26587. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26588. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26589. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26590. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26591. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26592. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26593. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26594. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26595. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26596. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26597. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26598. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26599. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26600. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26601. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26602. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26603. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26604. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26605. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26606. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26607. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26608. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26609. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26610. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26611. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26612. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26613. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26614. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26615. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26616. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26617. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26618. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26619. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26620. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26621. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26622. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26623. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26624. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26625. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26626. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26627. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26628. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26629. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26630. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26631. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26632. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26633. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26634. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26635. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26636. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26637. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26638. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26639. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26640. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26641. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26642. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26643. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26644. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26645. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26646. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26647. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26648. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26649. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26650. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26651. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26652. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26653. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26654. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26655. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26656. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26657. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26658. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26659. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26660. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26661. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26662. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26663. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26664. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26665. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26666. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26667. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26668. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26669. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26670. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26671. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26672. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26673. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26674. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26675. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26676. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26677. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26678. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26679. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26680. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26681. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26682. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26683. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26684. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26685. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26686. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26687. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26688. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26689. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26690. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26691. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26692. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26693. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26694. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26695. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26696. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26697. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26698. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26699. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26700. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26701. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26702. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26703. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26704. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26705. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26706. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26707. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26708. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26709. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26710. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26711. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26712. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26713. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26714. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26715. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26716. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26717. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26718. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26719. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26720. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26721. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26722. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26723. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26724. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26725. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26726. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26727. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26728. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26729. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26730. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26731. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26732. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26733. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26734. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26735. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26736. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26737. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26738. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26739. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26740. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26741. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26742. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26743. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26744. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26745. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26746. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26747. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26748. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26749. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26750. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26751. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26752. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26753. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26754. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26755. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26756. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26757. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26758. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26759. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26760. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26761. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26762. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26763. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26764. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26765. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26766. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26767. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26768. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26769. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26770. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26771. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26772. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26773. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26774. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26775. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26776. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26777. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26778. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26779. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  26780. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26781. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  26782. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  26783. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  26784. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  26785. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26786. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26787. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26788. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26789. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26790. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26791. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26792. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  26793. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26794. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26795. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26796. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26797. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  26798. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26799. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26800. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26801. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  26802. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26803. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26804. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26805. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  26806. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26807. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26808. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26809. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  26810. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26811. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26812. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26813. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26814. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26815. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26816. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26817. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26818. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26819. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26820. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  26821. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26822. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26823. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26824. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26825. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26826. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26827. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26828. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26829. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26830. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  26831. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26832. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26833. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26834. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26835. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26836. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26837. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26838. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26839. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26840. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26841. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26842. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  26843. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  26844. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26845. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  26846. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26847. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26848. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  26849. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26850. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26851. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  26852. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26853. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26854. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26855. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  26856. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26857. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26858. {"STUB_RX", NULL, "STUB_RX Mixer"},
  26859. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26860. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26861. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  26862. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26863. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26864. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  26865. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26866. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26867. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26868. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26869. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26870. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  26871. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  26872. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  26873. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  26874. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  26875. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  26876. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  26877. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26878. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26879. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26880. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  26881. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26882. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26883. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  26884. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  26885. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26886. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  26887. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  26888. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  26889. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  26890. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26891. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26892. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26893. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26894. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26895. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26896. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26897. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26898. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26899. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26900. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26901. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26902. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26903. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  26904. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26905. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  26906. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26907. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  26908. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  26909. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  26910. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26911. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  26912. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26913. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26914. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  26915. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26916. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26917. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26918. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26919. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26920. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26921. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26922. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26923. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26924. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26925. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26926. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  26927. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26928. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26929. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26930. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26931. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26932. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26933. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26934. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26935. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26936. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26937. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  26938. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26939. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26940. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26941. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26942. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26943. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26944. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26945. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26946. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  26947. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26948. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26949. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26950. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26951. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26952. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26953. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26954. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26955. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26956. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26957. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  26958. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26959. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26960. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26961. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26962. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26963. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26964. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26965. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26966. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  26967. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26968. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26969. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26970. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26971. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26972. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26973. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26974. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  26975. /* Backend Enablement */
  26976. {"BE_OUT", NULL, "PRI_I2S_RX"},
  26977. {"BE_OUT", NULL, "SEC_I2S_RX"},
  26978. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  26979. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  26980. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  26981. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  26982. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  26983. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  26984. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  26985. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  26986. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  26987. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  26988. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  26989. {"BE_OUT", NULL, "HDMI"},
  26990. {"BE_OUT", NULL, "DISPLAY_PORT"},
  26991. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  26992. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  26993. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  26994. {"BE_OUT", NULL, "MI2S_RX"},
  26995. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  26996. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  26997. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  26998. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  26999. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27000. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27001. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27002. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27003. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27004. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27005. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27006. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27007. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27008. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27009. {"BE_OUT", NULL, "INT_FM_RX"},
  27010. {"BE_OUT", NULL, "PCM_RX"},
  27011. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27012. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27013. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27014. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27015. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27016. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27017. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27018. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27019. {"BE_OUT", NULL, "INT_FM_RX"},
  27020. {"BE_OUT", NULL, "PCM_RX"},
  27021. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27022. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27023. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27024. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27025. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27026. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27027. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27028. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27029. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27030. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27031. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27032. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27033. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27034. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27035. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27036. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27037. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27038. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27039. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27040. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27041. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27042. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27043. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27044. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27045. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27046. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27047. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27048. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27049. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27050. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27051. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27052. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27053. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27054. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27055. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27056. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27057. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27058. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27059. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27060. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27061. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27062. {"PRI_I2S_TX", NULL, "BE_IN"},
  27063. {"MI2S_TX", NULL, "BE_IN"},
  27064. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27065. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27066. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27067. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27068. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27069. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27070. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27071. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27072. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27073. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27074. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27075. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27076. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27077. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27078. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27079. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27080. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27081. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27082. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27083. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27084. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27085. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27086. {"INT_FM_TX", NULL, "BE_IN"},
  27087. {"PCM_TX", NULL, "BE_IN"},
  27088. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27089. {"BE_OUT", NULL, "STUB_RX"},
  27090. {"STUB_TX", NULL, "BE_IN"},
  27091. {"STUB_1_TX", NULL, "BE_IN"},
  27092. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27093. {"AUX_PCM_TX", NULL, "BE_IN"},
  27094. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27095. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27096. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27097. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27098. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27099. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27100. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27101. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27102. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27103. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27104. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27105. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27106. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27107. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27108. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27109. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27110. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27111. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27112. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27113. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27114. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27115. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27116. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27117. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27118. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27119. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27120. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27121. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27122. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27123. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27124. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27125. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27126. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27127. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27128. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27129. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27130. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27131. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27132. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27133. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27134. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27135. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27136. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27137. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27138. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27139. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27140. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27141. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27142. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27143. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27144. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27145. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27146. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27147. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27148. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27149. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27150. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27151. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27152. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27153. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27154. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27155. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27156. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27157. };
  27158. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27159. struct snd_pcm_hw_params *params)
  27160. {
  27161. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27162. unsigned int be_id = rtd->dai_link->id;
  27163. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27164. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27165. return -EINVAL;
  27166. }
  27167. mutex_lock(&routing_lock);
  27168. msm_bedais[be_id].sample_rate = params_rate(params);
  27169. msm_bedais[be_id].channel = params_channels(params);
  27170. msm_bedais[be_id].format = params_format(params);
  27171. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27172. __func__, msm_bedais[be_id].sample_rate,
  27173. msm_bedais[be_id].format, be_id);
  27174. mutex_unlock(&routing_lock);
  27175. return 0;
  27176. }
  27177. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27178. {
  27179. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27180. unsigned int be_id = rtd->dai_link->id;
  27181. int i, session_type, path_type, topology;
  27182. struct msm_pcm_routing_bdai_data *bedai;
  27183. struct msm_pcm_routing_fdai_data *fdai;
  27184. pr_debug("%s: substream->pcm->id:%s\n",
  27185. __func__, substream->pcm->id);
  27186. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27187. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27188. return -EINVAL;
  27189. }
  27190. bedai = &msm_bedais[be_id];
  27191. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27192. 0 : 1);
  27193. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27194. path_type = ADM_PATH_PLAYBACK;
  27195. else
  27196. path_type = ADM_PATH_LIVE_REC;
  27197. mutex_lock(&routing_lock);
  27198. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27199. if (!is_mm_lsm_fe_id(i))
  27200. continue;
  27201. fdai = &fe_dai_map[i][session_type];
  27202. if (fdai->strm_id != INVALID_SESSION) {
  27203. int idx;
  27204. int port_id;
  27205. unsigned long copp =
  27206. session_copp_map[i][session_type][be_id];
  27207. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27208. if (test_bit(idx, &copp))
  27209. break;
  27210. if (idx >= MAX_COPPS_PER_PORT) {
  27211. pr_debug("%s: copp idx is invalid, exiting\n",
  27212. __func__);
  27213. continue;
  27214. }
  27215. fdai->be_srate = bedai->sample_rate;
  27216. port_id = get_port_id(bedai->port_id);
  27217. topology = adm_get_topology_for_port_copp_idx(port_id,
  27218. idx);
  27219. msm_routing_unload_topology(topology);
  27220. adm_close(port_id, fdai->perf_mode, idx);
  27221. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27222. __func__, copp, i, session_type, be_id,
  27223. topology);
  27224. clear_bit(idx,
  27225. &session_copp_map[i][session_type][be_id]);
  27226. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27227. (fdai->passthr_mode == LEGACY_PCM))
  27228. msm_pcm_routing_deinit_pp(port_id,
  27229. topology);
  27230. }
  27231. }
  27232. bedai->active = 0;
  27233. bedai->sample_rate = 0;
  27234. bedai->channel = 0;
  27235. mutex_unlock(&routing_lock);
  27236. return 0;
  27237. }
  27238. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27239. {
  27240. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27241. unsigned int be_id = rtd->dai_link->id;
  27242. int i, path_type, topology;
  27243. int session_type = INVALID_SESSION;
  27244. struct msm_pcm_routing_bdai_data *bedai;
  27245. u32 channels, sample_rate;
  27246. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27247. struct msm_pcm_routing_fdai_data *fdai;
  27248. u32 session_id;
  27249. struct media_format_info voc_be_media_format;
  27250. bool is_lsm;
  27251. pr_debug("%s: substream->pcm->id:%s\n",
  27252. __func__, substream->pcm->id);
  27253. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27254. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27255. return -EINVAL;
  27256. }
  27257. bedai = &msm_bedais[be_id];
  27258. mutex_lock(&routing_lock);
  27259. if (bedai->active == 1)
  27260. goto done; /* Ignore prepare if back-end already active */
  27261. /* AFE port is not active at this point. However, still
  27262. * go ahead setting active flag under the notion that
  27263. * QDSP6 is able to handle ADM starting before AFE port
  27264. * is started.
  27265. */
  27266. bedai->active = 1;
  27267. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27268. if (!(is_mm_lsm_fe_id(i) &&
  27269. route_check_fe_id_adm_support(i)))
  27270. continue;
  27271. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27272. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27273. fdai = &fe_dai_map[i][session_type];
  27274. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27275. if (fdai->passthr_mode != LEGACY_PCM)
  27276. path_type = ADM_PATH_COMPRESSED_RX;
  27277. else
  27278. path_type = ADM_PATH_PLAYBACK;
  27279. } else {
  27280. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27281. (fdai->passthr_mode != LISTEN))
  27282. path_type = ADM_PATH_COMPRESSED_TX;
  27283. else
  27284. path_type = ADM_PATH_LIVE_REC;
  27285. }
  27286. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27287. (i <= MSM_FRONTEND_DAI_LSM8);
  27288. if (fdai->strm_id != INVALID_SESSION) {
  27289. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27290. int port_id = get_port_id(bedai->port_id);
  27291. if (session_type == SESSION_TYPE_TX &&
  27292. fdai->be_srate &&
  27293. (fdai->be_srate != bedai->sample_rate)) {
  27294. pr_debug("%s: flush strm %d diff BE rates\n",
  27295. __func__,
  27296. fdai->strm_id);
  27297. if (fdai->event_info.event_func)
  27298. fdai->event_info.event_func(
  27299. MSM_PCM_RT_EVT_BUF_RECFG,
  27300. fdai->event_info.priv_data);
  27301. fdai->be_srate = 0; /* might not need it */
  27302. }
  27303. bits_per_sample = msm_routing_get_bit_width(
  27304. bedai->format);
  27305. app_type =
  27306. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27307. if (app_type && is_lsm) {
  27308. app_type_idx =
  27309. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27310. sample_rate =
  27311. fe_dai_app_type_cfg[i][session_type][be_id]
  27312. .sample_rate;
  27313. bits_per_sample =
  27314. lsm_app_type_cfg[app_type_idx].bit_width;
  27315. } else if (app_type) {
  27316. app_type_idx =
  27317. msm_pcm_routing_get_app_type_idx(app_type);
  27318. sample_rate =
  27319. fe_dai_app_type_cfg[i][session_type]
  27320. [be_id].sample_rate;
  27321. bits_per_sample =
  27322. app_type_cfg[app_type_idx].bit_width;
  27323. } else
  27324. sample_rate = bedai->sample_rate;
  27325. /*
  27326. * check if ADM needs to be configured with different
  27327. * channel mapping than backend
  27328. */
  27329. if (!bedai->adm_override_ch)
  27330. channels = bedai->channel;
  27331. else
  27332. channels = bedai->adm_override_ch;
  27333. acdb_dev_id =
  27334. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27335. topology = msm_routing_get_adm_topology(i, session_type,
  27336. be_id);
  27337. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27338. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27339. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27340. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27341. be_bit_width = msm_routing_get_bit_width(
  27342. bedai->format);
  27343. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27344. || bedai->sample_rate == 352800) &&
  27345. be_bit_width == 32)
  27346. bits_per_sample = msm_routing_get_bit_width(
  27347. SNDRV_PCM_FORMAT_S32_LE);
  27348. copp_idx = adm_open(port_id, path_type,
  27349. sample_rate, channels, topology,
  27350. fdai->perf_mode, bits_per_sample,
  27351. app_type, acdb_dev_id,
  27352. session_type);
  27353. if ((copp_idx < 0) ||
  27354. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27355. pr_err("%s: adm open failed\n", __func__);
  27356. mutex_unlock(&routing_lock);
  27357. return -EINVAL;
  27358. }
  27359. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27360. __func__, i, session_type, be_id);
  27361. set_bit(copp_idx,
  27362. &session_copp_map[i][session_type][be_id]);
  27363. if (msm_is_resample_needed(
  27364. sample_rate,
  27365. bedai->sample_rate))
  27366. adm_copp_mfc_cfg(port_id, copp_idx,
  27367. bedai->sample_rate);
  27368. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27369. fdai->perf_mode, fdai->passthr_mode);
  27370. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27371. (fdai->passthr_mode == LEGACY_PCM))
  27372. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27373. topology, channels);
  27374. }
  27375. }
  27376. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27377. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27378. if (session_id) {
  27379. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27380. session_id);
  27381. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27382. voc_path_type = RX_PATH;
  27383. else
  27384. voc_path_type = TX_PATH;
  27385. voc_set_route_flag(session_id, voc_path_type, 1);
  27386. memset(&voc_be_media_format, 0,
  27387. sizeof(struct media_format_info));
  27388. voc_be_media_format.port_id = bedai->port_id;
  27389. voc_be_media_format.num_channels = bedai->channel;
  27390. voc_be_media_format.sample_rate = bedai->sample_rate;
  27391. voc_be_media_format.bits_per_sample = bedai->format;
  27392. /* Defaulting this to 1 for voice call usecases */
  27393. voc_be_media_format.channel_mapping[0] = 1;
  27394. voc_set_device_config(session_id, voc_path_type,
  27395. &voc_be_media_format);
  27396. if (voc_get_route_flag(session_id, RX_PATH) &&
  27397. voc_get_route_flag(session_id, TX_PATH))
  27398. voc_enable_device(session_id);
  27399. }
  27400. }
  27401. /* Check if backend is an external ec ref port and set as needed */
  27402. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27403. memset(&voc_be_media_format, 0,
  27404. sizeof(struct media_format_info));
  27405. /* Get format info for ec ref port from msm_bedais[] */
  27406. voc_be_media_format.port_id = bedai->port_id;
  27407. voc_be_media_format.num_channels = bedai->channel;
  27408. voc_be_media_format.bits_per_sample = bedai->format;
  27409. voc_be_media_format.sample_rate = bedai->sample_rate;
  27410. /* Defaulting this to 1 for voice call usecases */
  27411. voc_be_media_format.channel_mapping[0] = 1;
  27412. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27413. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  27414. __func__, voc_be_media_format.port_id,
  27415. voc_be_media_format.num_channels,
  27416. voc_be_media_format.bits_per_sample,
  27417. voc_be_media_format.sample_rate);
  27418. }
  27419. done:
  27420. mutex_unlock(&routing_lock);
  27421. return 0;
  27422. }
  27423. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  27424. int fe_id)
  27425. {
  27426. int index, topo_id, be_idx;
  27427. unsigned long pp_config = 0;
  27428. bool mute_on;
  27429. int latency, session_type;
  27430. bool compr_passthr_mode = true;
  27431. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  27432. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  27433. pr_err("%s: Device pp params on invalid port %d\n",
  27434. __func__, port_id);
  27435. return -EINVAL;
  27436. }
  27437. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27438. if (port_id == msm_bedais[be_idx].port_id)
  27439. break;
  27440. }
  27441. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27442. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27443. return -EINVAL;
  27444. }
  27445. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27446. if (msm_bedais_pp_params[index].port_id == port_id)
  27447. break;
  27448. }
  27449. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27450. pr_err("%s: Invalid backend pp params index %d\n",
  27451. __func__, index);
  27452. return -EINVAL;
  27453. }
  27454. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  27455. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  27456. pr_err("%s: Invalid passthrough topology 0x%x\n",
  27457. __func__, topo_id);
  27458. return -EINVAL;
  27459. }
  27460. session_type =
  27461. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27462. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27463. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  27464. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  27465. compr_passthr_mode = false;
  27466. pp_config = msm_bedais_pp_params[index].pp_params_config;
  27467. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  27468. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27469. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  27470. mute_on = msm_bedais_pp_params[index].mute_on;
  27471. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27472. adm_send_compressed_device_mute(port_id,
  27473. copp_idx,
  27474. mute_on);
  27475. }
  27476. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  27477. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27478. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  27479. &pp_config);
  27480. latency = msm_bedais_pp_params[index].latency;
  27481. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27482. adm_send_compressed_device_latency(port_id,
  27483. copp_idx,
  27484. latency);
  27485. }
  27486. return 0;
  27487. }
  27488. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  27489. {
  27490. uint32_t topology = NULL_COPP_TOPOLOGY;
  27491. void *cal_info = NULL;
  27492. uint32_t size = 0;
  27493. /* Retrieve cal_info size from cal data*/
  27494. if (data_size < sizeof(struct audio_cal_type_basic) +
  27495. sizeof(struct audio_cal_info_adm_top)) {
  27496. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  27497. goto done;
  27498. }
  27499. size = data_size - sizeof(struct audio_cal_type_basic);
  27500. cal_info = kzalloc(size, GFP_KERNEL);
  27501. if (!cal_info)
  27502. goto done;
  27503. memcpy(cal_info,
  27504. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  27505. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  27506. kfree(cal_info);
  27507. cal_info = NULL;
  27508. done:
  27509. pr_debug("%s: Using topology %d\n", __func__, topology);
  27510. return topology;
  27511. }
  27512. static void msm_routing_load_topology(size_t data_size, void *data)
  27513. {
  27514. uint32_t topology_id;
  27515. int ret = -EINVAL;
  27516. topology_id = msm_routing_get_topology(data_size, data);
  27517. if (topology_id != NULL_COPP_TOPOLOGY)
  27518. ret = q6core_load_unload_topo_modules(topology_id,
  27519. CORE_LOAD_TOPOLOGY);
  27520. if (ret < 0)
  27521. pr_debug("%s %d load topology failed\n",
  27522. __func__, topology_id);
  27523. }
  27524. static void msm_routing_unload_topology(uint32_t topology_id)
  27525. {
  27526. int ret = -EINVAL;
  27527. if (topology_id != NULL_COPP_TOPOLOGY)
  27528. ret = q6core_load_unload_topo_modules(topology_id,
  27529. CORE_UNLOAD_TOPOLOGY);
  27530. if (ret < 0)
  27531. pr_debug("%s %d unload topology failed\n",
  27532. __func__, topology_id);
  27533. }
  27534. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27535. struct snd_ctl_elem_value *ucontrol)
  27536. {
  27537. int pp_id = ucontrol->value.integer.value[0];
  27538. int port_id = 0;
  27539. int index, be_idx, i, topo_id, idx;
  27540. bool mute;
  27541. int latency, session_type;
  27542. bool compr_passthr_mode = true;
  27543. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27544. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27545. port_id = msm_bedais[be_idx].port_id;
  27546. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27547. break;
  27548. }
  27549. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27550. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27551. return -EINVAL;
  27552. }
  27553. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27554. if (msm_bedais_pp_params[index].port_id == port_id)
  27555. break;
  27556. }
  27557. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27558. pr_err("%s: Invalid pp params backend index %d\n",
  27559. __func__, index);
  27560. return -EINVAL;
  27561. }
  27562. session_type =
  27563. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27564. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27565. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27566. MSM_FRONTEND_DAI_MM_SIZE) {
  27567. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27568. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27569. compr_passthr_mode = false;
  27570. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27571. unsigned long copp =
  27572. session_copp_map[i]
  27573. [SESSION_TYPE_RX][be_idx];
  27574. if (!test_bit(idx, &copp))
  27575. continue;
  27576. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27577. idx);
  27578. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27579. continue;
  27580. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27581. __func__, port_id, copp, msm_bedais[be_idx].active,
  27582. fe_dai_map[i][session_type].passthr_mode);
  27583. switch (pp_id) {
  27584. case ADM_PP_PARAM_MUTE_ID:
  27585. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27586. mute = ucontrol->value.integer.value[1] ? true : false;
  27587. msm_bedais_pp_params[index].mute_on = mute;
  27588. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27589. &msm_bedais_pp_params[index].pp_params_config);
  27590. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27591. adm_send_compressed_device_mute(port_id,
  27592. idx, mute);
  27593. break;
  27594. case ADM_PP_PARAM_LATENCY_ID:
  27595. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27596. msm_bedais_pp_params[index].latency =
  27597. ucontrol->value.integer.value[1];
  27598. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27599. &msm_bedais_pp_params[index].pp_params_config);
  27600. latency = msm_bedais_pp_params[index].latency =
  27601. ucontrol->value.integer.value[1];
  27602. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27603. adm_send_compressed_device_latency(port_id,
  27604. idx, latency);
  27605. break;
  27606. default:
  27607. pr_info("%s, device pp param %d not supported\n",
  27608. __func__, pp_id);
  27609. break;
  27610. }
  27611. }
  27612. }
  27613. return 0;
  27614. }
  27615. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27616. struct snd_ctl_elem_value *ucontrol)
  27617. {
  27618. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27619. return 0;
  27620. }
  27621. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27622. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27623. 0, 3, msm_routing_get_device_pp_params_mixer,
  27624. msm_routing_put_device_pp_params_mixer),
  27625. };
  27626. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27627. struct snd_ctl_elem_value *ucontrol)
  27628. {
  27629. ucontrol->value.integer.value[0] =
  27630. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27631. pr_debug("%s: status %ld\n", __func__,
  27632. ucontrol->value.integer.value[0]);
  27633. return 0;
  27634. }
  27635. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27636. struct snd_ctl_elem_value *ucontrol)
  27637. {
  27638. int32_t status = 0;
  27639. status = core_set_license(ucontrol->value.integer.value[0],
  27640. APTX_CLASSIC_DEC_LICENSE_ID);
  27641. pr_debug("%s: status %d\n", __func__, status);
  27642. return status;
  27643. }
  27644. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27645. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27646. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27647. msm_aptx_dec_license_control_put),
  27648. };
  27649. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27650. struct snd_ctl_elem_value *ucontrol)
  27651. {
  27652. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27653. uint32_t be_idx = ucontrol->value.integer.value[0];
  27654. int i;
  27655. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27656. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  27657. return -EINVAL;
  27658. }
  27659. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27660. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27661. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27662. pr_err("%s: Invalid channel map %d\n",
  27663. __func__, channel_map[i]);
  27664. return -EINVAL;
  27665. }
  27666. }
  27667. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27668. return 0;
  27669. }
  27670. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27671. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27672. MSM_BACKEND_DAI_MAX, 0,
  27673. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27674. msm_routing_put_port_chmap_mixer),
  27675. };
  27676. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27677. struct snd_ctl_elem_info *uinfo)
  27678. {
  27679. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27680. uinfo->count = sizeof(be_dai_name_table);
  27681. return 0;
  27682. }
  27683. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27684. unsigned int __user *bytes,
  27685. unsigned int size)
  27686. {
  27687. int i;
  27688. int ret = 0;
  27689. if (size < sizeof(be_dai_name_table)) {
  27690. pr_err("%s: invalid size %d requested, returning\n",
  27691. __func__, size);
  27692. ret = -EINVAL;
  27693. goto done;
  27694. }
  27695. /*
  27696. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27697. * needed when adding new backends
  27698. */
  27699. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27700. be_dai_name_table[i].be_id = i;
  27701. strlcpy(be_dai_name_table[i].be_name,
  27702. msm_bedais[i].name,
  27703. LPASS_BE_NAME_MAX_LENGTH);
  27704. }
  27705. ret = copy_to_user(bytes, &be_dai_name_table,
  27706. sizeof(be_dai_name_table));
  27707. if (ret) {
  27708. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27709. ret = -EFAULT;
  27710. }
  27711. done:
  27712. return ret;
  27713. }
  27714. static const struct snd_kcontrol_new
  27715. msm_routing_be_dai_name_table_mixer_controls[] = {
  27716. {
  27717. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27718. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27719. .info = msm_routing_be_dai_name_table_info,
  27720. .name = "Backend DAI Name Table",
  27721. .tlv.c = snd_soc_bytes_tlv_callback,
  27722. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27723. .max = sizeof(be_dai_name_table),
  27724. .get = msm_routing_be_dai_name_table_tlv_get,
  27725. }
  27726. },
  27727. };
  27728. static int msm_routing_stereo_channel_reverse_control_get(
  27729. struct snd_kcontrol *kcontrol,
  27730. struct snd_ctl_elem_value *ucontrol)
  27731. {
  27732. ucontrol->value.integer.value[0] = swap_ch;
  27733. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27734. ucontrol->value.integer.value[0]);
  27735. return 0;
  27736. }
  27737. static int msm_routing_stereo_channel_reverse_control_put(
  27738. struct snd_kcontrol *kcontrol,
  27739. struct snd_ctl_elem_value *ucontrol)
  27740. {
  27741. int i, idx, be_index, port_id;
  27742. int ret = 0;
  27743. unsigned long copp;
  27744. pr_debug("%s Swap channel value:%ld\n", __func__,
  27745. ucontrol->value.integer.value[0]);
  27746. swap_ch = ucontrol->value.integer.value[0];
  27747. mutex_lock(&routing_lock);
  27748. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27749. port_id = msm_bedais[be_index].port_id;
  27750. if (!msm_bedais[be_index].active)
  27751. continue;
  27752. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27753. MSM_FRONTEND_DAI_MM_SIZE) {
  27754. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27755. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27756. if (!test_bit(idx, &copp))
  27757. continue;
  27758. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27759. __func__, port_id, idx);
  27760. ret = adm_swap_speaker_channels(
  27761. port_id, idx,
  27762. msm_bedais[be_index].sample_rate,
  27763. swap_ch);
  27764. if (ret) {
  27765. pr_err("%s:Swap_channel failed, err=%d\n",
  27766. __func__, ret);
  27767. goto done;
  27768. }
  27769. }
  27770. }
  27771. }
  27772. done:
  27773. mutex_unlock(&routing_lock);
  27774. return ret;
  27775. }
  27776. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  27777. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  27778. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  27779. msm_routing_stereo_channel_reverse_control_put),
  27780. };
  27781. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  27782. struct snd_ctl_elem_info *uinfo)
  27783. {
  27784. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  27785. uinfo->count = 1;
  27786. return 0;
  27787. }
  27788. static int msm_routing_instance_id_support_put(
  27789. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27790. {
  27791. bool supported = ucontrol->value.integer.value[0] ? true : false;
  27792. q6common_update_instance_id_support(supported);
  27793. return 0;
  27794. }
  27795. static int msm_routing_instance_id_support_get(
  27796. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  27797. {
  27798. bool supported = false;
  27799. supported = q6common_is_instance_id_supported();
  27800. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  27801. return 0;
  27802. }
  27803. static const struct snd_kcontrol_new
  27804. msm_routing_feature_support_mixer_controls[] = {
  27805. {
  27806. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  27807. SNDRV_CTL_ELEM_ACCESS_WRITE,
  27808. .info = msm_routing_instance_id_support_info,
  27809. .name = "Instance ID Support",
  27810. .put = msm_routing_instance_id_support_put,
  27811. .get = msm_routing_instance_id_support_get,
  27812. },
  27813. };
  27814. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  27815. .hw_params = msm_pcm_routing_hw_params,
  27816. .close = msm_pcm_routing_close,
  27817. .prepare = msm_pcm_routing_prepare,
  27818. };
  27819. /* Not used but frame seems to require it */
  27820. static int msm_routing_probe(struct snd_soc_component *component)
  27821. {
  27822. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  27823. ARRAY_SIZE(msm_qdsp6_widgets));
  27824. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  27825. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  27826. snd_soc_dapm_add_routes(&component->dapm, intercon,
  27827. ARRAY_SIZE(intercon));
  27828. snd_soc_dapm_new_widgets(component->dapm.card);
  27829. snd_soc_add_component_controls(component, lsm_controls,
  27830. ARRAY_SIZE(lsm_controls));
  27831. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  27832. ARRAY_SIZE(aanc_slim_0_rx_mux));
  27833. snd_soc_add_component_controls(component, aanc_noise_level,
  27834. ARRAY_SIZE(aanc_noise_level));
  27835. snd_soc_add_component_controls(component, msm_voc_session_controls,
  27836. ARRAY_SIZE(msm_voc_session_controls));
  27837. snd_soc_add_component_controls(component, app_type_cfg_controls,
  27838. ARRAY_SIZE(app_type_cfg_controls));
  27839. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  27840. ARRAY_SIZE(lsm_app_type_cfg_controls));
  27841. snd_soc_add_component_controls(component, module_cfg_controls,
  27842. ARRAY_SIZE(module_cfg_controls));
  27843. snd_soc_add_component_controls(component,
  27844. stereo_to_custom_stereo_controls,
  27845. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  27846. snd_soc_add_component_controls(component, ec_ref_param_controls,
  27847. ARRAY_SIZE(ec_ref_param_controls));
  27848. snd_soc_add_component_controls(component, channel_mixer_controls,
  27849. ARRAY_SIZE(channel_mixer_controls));
  27850. msm_qti_pp_add_controls(component);
  27851. msm_dts_srs_tm_add_controls(component);
  27852. msm_dolby_dap_add_controls(component);
  27853. snd_soc_add_component_controls(component,
  27854. use_ds1_or_ds2_controls,
  27855. ARRAY_SIZE(use_ds1_or_ds2_controls));
  27856. snd_soc_add_component_controls(component,
  27857. hifi_filter_controls,
  27858. ARRAY_SIZE(hifi_filter_controls));
  27859. snd_soc_add_component_controls(component,
  27860. device_pp_params_mixer_controls,
  27861. ARRAY_SIZE(device_pp_params_mixer_controls));
  27862. snd_soc_add_component_controls(component,
  27863. msm_routing_be_dai_name_table_mixer_controls,
  27864. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  27865. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  27866. ARRAY_SIZE(msm_source_tracking_controls));
  27867. snd_soc_add_component_controls(component, adm_channel_config_controls,
  27868. ARRAY_SIZE(adm_channel_config_controls));
  27869. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  27870. ARRAY_SIZE(aptx_dec_license_controls));
  27871. snd_soc_add_component_controls(component,
  27872. stereo_channel_reverse_control,
  27873. ARRAY_SIZE(stereo_channel_reverse_control));
  27874. snd_soc_add_component_controls(
  27875. component, msm_routing_feature_support_mixer_controls,
  27876. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  27877. snd_soc_add_component_controls(component,
  27878. port_multi_channel_map_mixer_controls,
  27879. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  27880. return 0;
  27881. }
  27882. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  27883. {
  27884. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  27885. }
  27886. void msm_routing_pcm_free(struct snd_pcm *pcm)
  27887. {
  27888. msm_pcm_routing_hwdep_free(pcm);
  27889. }
  27890. static struct snd_soc_component_driver msm_soc_routing_component = {
  27891. .name = DRV_NAME,
  27892. .ops = &msm_routing_pcm_ops,
  27893. .probe = msm_routing_probe,
  27894. .pcm_new = msm_routing_pcm_new,
  27895. .pcm_free = msm_routing_pcm_free,
  27896. };
  27897. static int msm_routing_pcm_probe(struct platform_device *pdev)
  27898. {
  27899. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  27900. return snd_soc_register_component(&pdev->dev,
  27901. &msm_soc_routing_component,
  27902. NULL, 0);
  27903. }
  27904. static int msm_routing_pcm_remove(struct platform_device *pdev)
  27905. {
  27906. snd_soc_unregister_component(&pdev->dev);
  27907. return 0;
  27908. }
  27909. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  27910. {.compatible = "qcom,msm-pcm-routing"},
  27911. {}
  27912. };
  27913. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  27914. static struct platform_driver msm_routing_pcm_driver = {
  27915. .driver = {
  27916. .name = "msm-pcm-routing",
  27917. .owner = THIS_MODULE,
  27918. .of_match_table = msm_pcm_routing_dt_match,
  27919. .suppress_bind_attrs = true,
  27920. },
  27921. .probe = msm_routing_pcm_probe,
  27922. .remove = msm_routing_pcm_remove,
  27923. };
  27924. int msm_routing_check_backend_enabled(int fedai_id)
  27925. {
  27926. int i;
  27927. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  27928. /* bad ID assigned in machine driver */
  27929. pr_err("%s: bad MM ID\n", __func__);
  27930. return 0;
  27931. }
  27932. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27933. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  27934. return msm_bedais[i].active;
  27935. }
  27936. return 0;
  27937. }
  27938. static int get_cal_type_index(int32_t cal_type)
  27939. {
  27940. int ret = -EINVAL;
  27941. switch (cal_type) {
  27942. case ADM_TOPOLOGY_CAL_TYPE:
  27943. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  27944. break;
  27945. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  27946. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  27947. break;
  27948. default:
  27949. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  27950. }
  27951. return ret;
  27952. }
  27953. static int msm_routing_set_cal(int32_t cal_type,
  27954. size_t data_size, void *data)
  27955. {
  27956. int ret = 0;
  27957. int cal_index;
  27958. pr_debug("%s\n", __func__);
  27959. cal_index = get_cal_type_index(cal_type);
  27960. if (cal_index < 0) {
  27961. pr_err("%s: Could not get cal index %d\n",
  27962. __func__, cal_index);
  27963. ret = -EINVAL;
  27964. goto done;
  27965. }
  27966. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  27967. if (ret < 0) {
  27968. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  27969. __func__, ret, cal_type);
  27970. ret = -EINVAL;
  27971. goto done;
  27972. }
  27973. /* Pre-load if it is ADM topology */
  27974. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  27975. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  27976. msm_routing_load_topology(data_size, data);
  27977. }
  27978. done:
  27979. return ret;
  27980. }
  27981. static void msm_routing_delete_cal_data(void)
  27982. {
  27983. pr_debug("%s\n", __func__);
  27984. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  27985. }
  27986. static int msm_routing_init_cal_data(void)
  27987. {
  27988. int ret = 0;
  27989. struct cal_type_info cal_type_info[] = {
  27990. {{ADM_TOPOLOGY_CAL_TYPE,
  27991. {NULL, NULL, NULL,
  27992. msm_routing_set_cal, NULL, NULL} },
  27993. {NULL, NULL, cal_utils_match_buf_num} },
  27994. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  27995. {NULL, NULL, NULL,
  27996. msm_routing_set_cal, NULL, NULL} },
  27997. {NULL, NULL, cal_utils_match_buf_num} },
  27998. };
  27999. pr_debug("%s\n", __func__);
  28000. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  28001. &cal_type_info[0]);
  28002. if (ret < 0) {
  28003. pr_err("%s: could not create cal type!\n",
  28004. __func__);
  28005. ret = -EINVAL;
  28006. goto err;
  28007. }
  28008. return ret;
  28009. err:
  28010. msm_routing_delete_cal_data();
  28011. return ret;
  28012. }
  28013. int __init msm_soc_routing_platform_init(void)
  28014. {
  28015. mutex_init(&routing_lock);
  28016. if (msm_routing_init_cal_data())
  28017. pr_err("%s: could not init cal data!\n", __func__);
  28018. afe_set_routing_callback(
  28019. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28020. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28021. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28022. return platform_driver_register(&msm_routing_pcm_driver);
  28023. }
  28024. void msm_soc_routing_platform_exit(void)
  28025. {
  28026. msm_routing_delete_cal_data();
  28027. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28028. mutex_destroy(&routing_lock);
  28029. platform_driver_unregister(&msm_routing_pcm_driver);
  28030. }
  28031. MODULE_DESCRIPTION("MSM routing platform driver");
  28032. MODULE_LICENSE("GPL v2");