msm-pcm-routing-v2.c 1.2 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/pcm_params.h>
  21. #include <sound/hwdep.h>
  22. #include <audio/sound/audio_effects.h>
  23. #include <dsp/msm-dts-srs-tm-config.h>
  24. #include <dsp/q6voice.h>
  25. #include <dsp/q6adm-v2.h>
  26. #include <dsp/q6asm-v2.h>
  27. #include <dsp/q6afe-v2.h>
  28. #include <dsp/q6lsm.h>
  29. #include <dsp/q6core.h>
  30. #include <dsp/q6common.h>
  31. #include <dsp/audio_cal_utils.h>
  32. #include "msm-pcm-routing-v2.h"
  33. #include "msm-pcm-routing-devdep.h"
  34. #include "msm-qti-pp-config.h"
  35. #include "msm-dolby-dap-config.h"
  36. #include "msm-ds2-dap-config.h"
  37. #define DRV_NAME "msm-pcm-routing-v2"
  38. #ifndef CONFIG_DOLBY_DAP
  39. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  40. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  41. #endif
  42. #ifndef CONFIG_DOLBY_DS2
  43. #undef DS2_ADM_COPP_TOPOLOGY_ID
  44. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  45. #endif
  46. #define STRING_LENGTH_OF_INT 12
  47. #define MAX_USR_CTRL_CNT 128
  48. static struct mutex routing_lock;
  49. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  50. static int fm_switch_enable;
  51. static int hfp_switch_enable;
  52. static int a2dp_switch_enable;
  53. static int sco_switch_enable;
  54. static int int0_mi2s_switch_enable;
  55. static int int4_mi2s_switch_enable;
  56. static int pri_mi2s_switch_enable;
  57. static int sec_mi2s_switch_enable;
  58. static int tert_mi2s_switch_enable;
  59. static int quat_mi2s_switch_enable;
  60. static int quin_mi2s_switch_enable;
  61. static int sen_mi2s_switch_enable;
  62. static int fm_pcmrx_switch_enable;
  63. static int usb_switch_enable;
  64. static int lsm_port_index[MAX_LSM_SESSIONS];
  65. static int slim0_rx_aanc_fb_port;
  66. static int msm_route_ec_ref_rx;
  67. static int msm_ec_ref_ch = 4;
  68. static int msm_ec_ref_ch_downmixed = 4;
  69. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  70. static int msm_ec_ref_sampling_rate = 48000;
  71. static uint32_t voc_session_id = ALL_SESSION_VSID;
  72. static int msm_route_ext_ec_ref;
  73. static bool is_custom_stereo_on;
  74. static bool is_ds2_on;
  75. static bool ffecns_freeze_event;
  76. static bool swap_ch;
  77. static bool hifi_filter_enabled;
  78. static int aanc_level;
  79. static int num_app_cfg_types;
  80. static int msm_ec_ref_port_id;
  81. static int afe_loopback_tx_port_index;
  82. static int afe_loopback_tx_port_id = -1;
  83. #define WEIGHT_0_DB 0x4000
  84. /* all the FEs which can support channel mixer */
  85. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  86. /* all the FES which can support channel mixer for bidirection */
  87. static struct msm_pcm_channel_mixer
  88. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  89. /* input BE for each FE */
  90. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  91. enum {
  92. MADNONE,
  93. MADAUDIO,
  94. MADBEACON,
  95. MADULTRASOUND,
  96. MADSWAUDIO,
  97. };
  98. #define ADM_LSM_PORT_INDEX 9
  99. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  100. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  101. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  102. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  103. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  104. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  105. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  106. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  107. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  108. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  109. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  110. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  111. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  112. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  113. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  114. #define TERT_TDM_TX_TEXT "TERT_TDM_TX_0"
  115. #define LSM_FUNCTION_TEXT "LSM Function"
  116. static const char * const lsm_port_text[] = {
  117. "None",
  118. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  119. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  120. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  121. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  122. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT,
  123. TERT_TDM_TX_TEXT
  124. };
  125. struct msm_pcm_route_bdai_pp_params {
  126. u16 port_id; /* AFE port ID */
  127. unsigned long pp_params_config;
  128. bool mute_on;
  129. int latency;
  130. };
  131. static struct msm_pcm_route_bdai_pp_params
  132. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  133. {HDMI_RX, 0, 0, 0},
  134. {HDMI_RX_MS, 0, 0, 0},
  135. {DISPLAY_PORT_RX, 0, 0, 0},
  136. };
  137. /*
  138. * The be_dai_name_table is passed to HAL so that it can specify the
  139. * BE ID for the BE it wants to enable based on the name. Thus there
  140. * is a matching table and structure in HAL that need to be updated
  141. * if any changes to these are made.
  142. */
  143. struct msm_pcm_route_bdai_name {
  144. unsigned int be_id;
  145. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  146. };
  147. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  148. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  149. int fe_id);
  150. static void msm_routing_load_topology(size_t data_size, void *data);
  151. static void msm_routing_unload_topology(uint32_t topology_id);
  152. #ifndef SND_PCM_ADD_VOLUME_CTL
  153. static int pcm_volume_ctl_info(struct snd_kcontrol *kcontrol,
  154. struct snd_ctl_elem_info *uinfo)
  155. {
  156. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  157. uinfo->count = 1;
  158. uinfo->value.integer.min = 0;
  159. uinfo->value.integer.max = 0x2000;
  160. return 0;
  161. }
  162. static void pcm_volume_ctl_private_free(struct snd_kcontrol *kcontrol)
  163. {
  164. struct snd_pcm_volume *info = snd_kcontrol_chip(kcontrol);
  165. kfree(info);
  166. }
  167. /**
  168. * snd_pcm_add_volume_ctls - create volume control elements
  169. * @pcm: the assigned PCM instance
  170. * @stream: stream direction
  171. * @max_length: the max length of the volume parameter of stream
  172. * @private_value: the value passed to each kcontrol's private_value field
  173. * @info_ret: store struct snd_pcm_volume instance if non-NULL
  174. *
  175. * Create volume control elements assigned to the given PCM stream(s).
  176. * Returns zero if succeed, or a negative error value.
  177. */
  178. int snd_pcm_add_volume_ctls(struct snd_pcm *pcm, int stream,
  179. const struct snd_pcm_volume_elem *volume,
  180. int max_length,
  181. unsigned long private_value,
  182. struct snd_pcm_volume **info_ret)
  183. {
  184. int err = 0;
  185. int size = 0;
  186. struct snd_pcm_volume *info;
  187. struct snd_kcontrol_new knew = {
  188. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  189. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  190. SNDRV_CTL_ELEM_ACCESS_READWRITE,
  191. .info = pcm_volume_ctl_info,
  192. };
  193. info = kzalloc(sizeof(*info), GFP_KERNEL);
  194. if (!info)
  195. return -ENOMEM;
  196. info->pcm = pcm;
  197. info->stream = stream;
  198. info->volume = volume;
  199. info->max_length = max_length;
  200. size = sizeof("Playback ") + sizeof(" Volume") +
  201. STRING_LENGTH_OF_INT*sizeof(char) + 1;
  202. knew.name = kzalloc(size, GFP_KERNEL);
  203. if (!knew.name) {
  204. kfree(info);
  205. return -ENOMEM;
  206. }
  207. if (stream == SNDRV_PCM_STREAM_PLAYBACK)
  208. snprintf((char *)knew.name, size, "%s %d %s",
  209. "Playback", pcm->device, "Volume");
  210. else
  211. snprintf((char *)knew.name, size, "%s %d %s",
  212. "Capture", pcm->device, "Volume");
  213. knew.device = pcm->device;
  214. knew.count = pcm->streams[stream].substream_count;
  215. knew.private_value = private_value;
  216. info->kctl = snd_ctl_new1(&knew, info);
  217. if (!info->kctl) {
  218. kfree(info);
  219. kfree(knew.name);
  220. return -ENOMEM;
  221. }
  222. info->kctl->private_free = pcm_volume_ctl_private_free;
  223. err = snd_ctl_add(pcm->card, info->kctl);
  224. if (err < 0) {
  225. kfree(info);
  226. kfree(knew.name);
  227. return -ENOMEM;
  228. }
  229. if (info_ret)
  230. *info_ret = info;
  231. kfree(knew.name);
  232. return 0;
  233. }
  234. EXPORT_SYMBOL(snd_pcm_add_volume_ctls);
  235. #endif
  236. #ifndef SND_PCM_ADD_USR_CTL
  237. static int pcm_usr_ctl_info(struct snd_kcontrol *kcontrol,
  238. struct snd_ctl_elem_info *uinfo)
  239. {
  240. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  241. uinfo->count = MAX_USR_CTRL_CNT;
  242. uinfo->value.integer.min = 0;
  243. uinfo->value.integer.max = INT_MAX;
  244. return 0;
  245. }
  246. static void pcm_usr_ctl_private_free(struct snd_kcontrol *kcontrol)
  247. {
  248. struct snd_pcm_usr *info = snd_kcontrol_chip(kcontrol);
  249. kfree(info);
  250. }
  251. /**
  252. * snd_pcm_add_usr_ctls - create user control elements
  253. * @pcm: the assigned PCM instance
  254. * @stream: stream direction
  255. * @max_length: the max length of the user parameter of stream
  256. * @private_value: the value passed to each kcontrol's private_value field
  257. * @info_ret: store struct snd_pcm_usr instance if non-NULL
  258. *
  259. * Create usr control elements assigned to the given PCM stream(s).
  260. * Returns zero if succeed, or a negative error value.
  261. */
  262. int snd_pcm_add_usr_ctls(struct snd_pcm *pcm, int stream,
  263. const struct snd_pcm_usr_elem *usr,
  264. int max_length, int max_kctrl_str_len,
  265. unsigned long private_value,
  266. struct snd_pcm_usr **info_ret)
  267. {
  268. int err = 0;
  269. char *buf = NULL;
  270. struct snd_pcm_usr *info;
  271. struct snd_kcontrol_new knew = {
  272. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  273. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  274. .info = pcm_usr_ctl_info,
  275. };
  276. info = kzalloc(sizeof(*info), GFP_KERNEL);
  277. if (!info)
  278. return -ENOMEM;
  279. info->pcm = pcm;
  280. info->stream = stream;
  281. info->usr = usr;
  282. info->max_length = max_length;
  283. buf = kzalloc(max_kctrl_str_len, GFP_KERNEL);
  284. if (!buf) {
  285. pr_err("%s: buffer allocation failed\n", __func__);
  286. kfree(info);
  287. return -ENOMEM;
  288. }
  289. knew.name = buf;
  290. if (stream == SNDRV_PCM_STREAM_PLAYBACK)
  291. snprintf(buf, max_kctrl_str_len, "%s %d %s",
  292. "Playback", pcm->device, "User kcontrol");
  293. else
  294. snprintf(buf, max_kctrl_str_len, "%s %d %s",
  295. "Capture", pcm->device, "User kcontrol");
  296. knew.device = pcm->device;
  297. knew.count = pcm->streams[stream].substream_count;
  298. knew.private_value = private_value;
  299. info->kctl = snd_ctl_new1(&knew, info);
  300. if (!info->kctl) {
  301. kfree(info);
  302. kfree(knew.name);
  303. pr_err("%s: snd_ctl_new failed\n", __func__);
  304. return -ENOMEM;
  305. }
  306. info->kctl->private_free = pcm_usr_ctl_private_free;
  307. err = snd_ctl_add(pcm->card, info->kctl);
  308. if (err < 0) {
  309. kfree(info);
  310. kfree(knew.name);
  311. pr_err("%s: snd_ctl_add failed:%d\n", __func__,
  312. err);
  313. return -ENOMEM;
  314. }
  315. if (info_ret)
  316. *info_ret = info;
  317. kfree(knew.name);
  318. return 0;
  319. }
  320. EXPORT_SYMBOL(snd_pcm_add_usr_ctls);
  321. #endif
  322. static int msm_routing_get_bit_width(unsigned int format)
  323. {
  324. int bit_width;
  325. switch (format) {
  326. case SNDRV_PCM_FORMAT_S32_LE:
  327. bit_width = 32;
  328. break;
  329. case SNDRV_PCM_FORMAT_S24_LE:
  330. case SNDRV_PCM_FORMAT_S24_3LE:
  331. bit_width = 24;
  332. break;
  333. case SNDRV_PCM_FORMAT_S16_LE:
  334. default:
  335. bit_width = 16;
  336. }
  337. return bit_width;
  338. }
  339. static bool msm_is_resample_needed(int input_sr, int output_sr)
  340. {
  341. bool rc = false;
  342. if (input_sr != output_sr)
  343. rc = true;
  344. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  345. (rc ? "oh yes" : "not really"),
  346. input_sr, output_sr);
  347. return rc;
  348. }
  349. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  350. int channels)
  351. {
  352. int rc = 0;
  353. switch (topology) {
  354. case SRS_TRUMEDIA_TOPOLOGY_ID:
  355. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  356. msm_dts_srs_tm_init(port_id, copp_idx);
  357. break;
  358. case DS2_ADM_COPP_TOPOLOGY_ID:
  359. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  360. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  361. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  362. is_custom_stereo_on);
  363. if (rc < 0)
  364. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  365. __func__, topology, port_id,
  366. is_custom_stereo_on, rc);
  367. break;
  368. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  369. if (is_ds2_on) {
  370. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  371. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  372. is_custom_stereo_on);
  373. if (rc < 0)
  374. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  375. __func__, topology, port_id, rc);
  376. } else {
  377. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  378. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  379. is_custom_stereo_on);
  380. if (rc < 0)
  381. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  382. __func__, topology, port_id, rc);
  383. }
  384. break;
  385. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  386. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  387. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  388. if (rc < 0)
  389. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  390. __func__, topology, port_id, copp_idx, rc);
  391. break;
  392. default:
  393. /* custom topology specific feature param handlers */
  394. break;
  395. }
  396. }
  397. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  398. {
  399. switch (topology) {
  400. case SRS_TRUMEDIA_TOPOLOGY_ID:
  401. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  402. msm_dts_srs_tm_deinit(port_id);
  403. break;
  404. case DS2_ADM_COPP_TOPOLOGY_ID:
  405. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  406. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  407. msm_ds2_dap_deinit(port_id);
  408. break;
  409. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  410. if (is_ds2_on) {
  411. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  412. msm_ds2_dap_deinit(port_id);
  413. } else {
  414. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  415. msm_dolby_dap_deinit(port_id);
  416. }
  417. break;
  418. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  419. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  420. msm_qti_pp_asphere_deinit(port_id);
  421. break;
  422. default:
  423. /* custom topology specific feature deinit handlers */
  424. break;
  425. }
  426. }
  427. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  428. int path_type, int perf_mode)
  429. {
  430. int itr = 0, rc = 0;
  431. if ((path_type == ADM_PATH_PLAYBACK) &&
  432. (perf_mode == LEGACY_PCM_MODE) &&
  433. is_custom_stereo_on) {
  434. for (itr = 0; itr < payload.num_copps; itr++) {
  435. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  436. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  437. continue;
  438. }
  439. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  440. payload.port_id[itr],
  441. payload.copp_idx[itr],
  442. payload.session_id,
  443. Q14_GAIN_ZERO_POINT_FIVE,
  444. Q14_GAIN_ZERO_POINT_FIVE,
  445. Q14_GAIN_ZERO_POINT_FIVE,
  446. Q14_GAIN_ZERO_POINT_FIVE);
  447. if (rc < 0)
  448. pr_err("%s: err setting custom stereo\n",
  449. __func__);
  450. }
  451. }
  452. }
  453. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  454. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  455. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  456. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  457. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  458. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  459. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  460. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  461. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  462. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  463. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  464. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  465. LPASS_BE_AFE_PCM_RX},
  466. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  467. LPASS_BE_AFE_PCM_TX},
  468. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  469. LPASS_BE_AUXPCM_RX},
  470. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  471. LPASS_BE_AUXPCM_TX},
  472. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  473. LPASS_BE_VOICE_PLAYBACK_TX},
  474. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  475. LPASS_BE_VOICE2_PLAYBACK_TX},
  476. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  477. LPASS_BE_INCALL_RECORD_RX},
  478. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  479. LPASS_BE_INCALL_RECORD_TX},
  480. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  481. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  482. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  483. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  484. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  485. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  486. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  487. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  488. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  489. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  490. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  491. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  492. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  493. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  494. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  495. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  496. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  497. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  498. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  499. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  500. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  501. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  502. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  503. LPASS_BE_QUAT_MI2S_RX},
  504. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  505. LPASS_BE_QUAT_MI2S_TX},
  506. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  507. LPASS_BE_SEC_MI2S_RX},
  508. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  509. LPASS_BE_SEC_MI2S_TX},
  510. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  511. LPASS_BE_PRI_MI2S_RX},
  512. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  513. LPASS_BE_PRI_MI2S_TX},
  514. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  515. LPASS_BE_TERT_MI2S_RX},
  516. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  517. LPASS_BE_TERT_MI2S_TX},
  518. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  519. LPASS_BE_AUDIO_I2S_RX},
  520. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  521. LPASS_BE_SEC_AUXPCM_RX},
  522. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  523. LPASS_BE_SEC_AUXPCM_TX},
  524. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  525. LPASS_BE_PRI_SPDIF_RX},
  526. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  527. LPASS_BE_SEC_MI2S_RX_SD1},
  528. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  529. LPASS_BE_QUIN_MI2S_RX},
  530. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  531. LPASS_BE_QUIN_MI2S_TX},
  532. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  533. LPASS_BE_SENARY_MI2S_TX},
  534. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  535. LPASS_BE_PRI_TDM_RX_0},
  536. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  537. LPASS_BE_PRI_TDM_TX_0},
  538. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  539. LPASS_BE_PRI_TDM_RX_1},
  540. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  541. LPASS_BE_PRI_TDM_TX_1},
  542. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  543. LPASS_BE_PRI_TDM_RX_2},
  544. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  545. LPASS_BE_PRI_TDM_TX_2},
  546. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  547. LPASS_BE_PRI_TDM_RX_3},
  548. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  549. LPASS_BE_PRI_TDM_TX_3},
  550. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  551. LPASS_BE_PRI_TDM_RX_4},
  552. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  553. LPASS_BE_PRI_TDM_TX_4},
  554. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  555. LPASS_BE_PRI_TDM_RX_5},
  556. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  557. LPASS_BE_PRI_TDM_TX_5},
  558. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  559. LPASS_BE_PRI_TDM_RX_6},
  560. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  561. LPASS_BE_PRI_TDM_TX_6},
  562. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  563. LPASS_BE_PRI_TDM_RX_7},
  564. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  565. LPASS_BE_PRI_TDM_TX_7},
  566. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  567. LPASS_BE_SEC_TDM_RX_0},
  568. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  569. LPASS_BE_SEC_TDM_TX_0},
  570. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  571. LPASS_BE_SEC_TDM_RX_1},
  572. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  573. LPASS_BE_SEC_TDM_TX_1},
  574. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  575. LPASS_BE_SEC_TDM_RX_2},
  576. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  577. LPASS_BE_SEC_TDM_TX_2},
  578. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  579. LPASS_BE_SEC_TDM_RX_3},
  580. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  581. LPASS_BE_SEC_TDM_TX_3},
  582. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  583. LPASS_BE_SEC_TDM_RX_4},
  584. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  585. LPASS_BE_SEC_TDM_TX_4},
  586. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  587. LPASS_BE_SEC_TDM_RX_5},
  588. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  589. LPASS_BE_SEC_TDM_TX_5},
  590. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  591. LPASS_BE_SEC_TDM_RX_6},
  592. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  593. LPASS_BE_SEC_TDM_TX_6},
  594. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  595. LPASS_BE_SEC_TDM_RX_7},
  596. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  597. LPASS_BE_SEC_TDM_TX_7},
  598. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  599. LPASS_BE_TERT_TDM_RX_0},
  600. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  601. LPASS_BE_TERT_TDM_TX_0},
  602. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  603. LPASS_BE_TERT_TDM_RX_1},
  604. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  605. LPASS_BE_TERT_TDM_TX_1},
  606. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  607. LPASS_BE_TERT_TDM_RX_2},
  608. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  609. LPASS_BE_TERT_TDM_TX_2},
  610. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  611. LPASS_BE_TERT_TDM_RX_3},
  612. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  613. LPASS_BE_TERT_TDM_TX_3},
  614. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  615. LPASS_BE_TERT_TDM_RX_4},
  616. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  617. LPASS_BE_TERT_TDM_TX_4},
  618. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  619. LPASS_BE_TERT_TDM_RX_5},
  620. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  621. LPASS_BE_TERT_TDM_TX_5},
  622. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  623. LPASS_BE_TERT_TDM_RX_6},
  624. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  625. LPASS_BE_TERT_TDM_TX_6},
  626. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  627. LPASS_BE_TERT_TDM_RX_7},
  628. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  629. LPASS_BE_TERT_TDM_TX_7},
  630. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  631. LPASS_BE_QUAT_TDM_RX_0},
  632. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  633. LPASS_BE_QUAT_TDM_TX_0},
  634. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  635. LPASS_BE_QUAT_TDM_RX_1},
  636. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  637. LPASS_BE_QUAT_TDM_TX_1},
  638. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  639. LPASS_BE_QUAT_TDM_RX_2},
  640. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  641. LPASS_BE_QUAT_TDM_TX_2},
  642. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  643. LPASS_BE_QUAT_TDM_RX_3},
  644. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  645. LPASS_BE_QUAT_TDM_TX_3},
  646. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  647. LPASS_BE_QUAT_TDM_RX_4},
  648. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  649. LPASS_BE_QUAT_TDM_TX_4},
  650. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  651. LPASS_BE_QUAT_TDM_RX_5},
  652. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  653. LPASS_BE_QUAT_TDM_TX_5},
  654. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  655. LPASS_BE_QUAT_TDM_RX_6},
  656. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  657. LPASS_BE_QUAT_TDM_TX_6},
  658. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  659. LPASS_BE_QUAT_TDM_RX_7},
  660. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_QUAT_TDM_TX_7},
  662. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_QUIN_TDM_RX_0},
  664. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  665. LPASS_BE_QUIN_TDM_TX_0},
  666. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  667. LPASS_BE_QUIN_TDM_RX_1},
  668. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  669. LPASS_BE_QUIN_TDM_TX_1},
  670. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  671. LPASS_BE_QUIN_TDM_RX_2},
  672. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  673. LPASS_BE_QUIN_TDM_TX_2},
  674. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  675. LPASS_BE_QUIN_TDM_RX_3},
  676. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  677. LPASS_BE_QUIN_TDM_TX_3},
  678. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  679. LPASS_BE_QUIN_TDM_RX_4},
  680. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  681. LPASS_BE_QUIN_TDM_TX_4},
  682. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  683. LPASS_BE_QUIN_TDM_RX_5},
  684. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  685. LPASS_BE_QUIN_TDM_TX_5},
  686. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  687. LPASS_BE_QUIN_TDM_RX_6},
  688. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  689. LPASS_BE_QUIN_TDM_TX_6},
  690. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  691. LPASS_BE_QUIN_TDM_RX_7},
  692. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  693. LPASS_BE_QUIN_TDM_TX_7},
  694. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  695. LPASS_BE_SEN_TDM_RX_0},
  696. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  697. LPASS_BE_SEN_TDM_TX_0},
  698. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  699. LPASS_BE_SEN_TDM_RX_1},
  700. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  701. LPASS_BE_SEN_TDM_TX_1},
  702. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  703. LPASS_BE_SEN_TDM_RX_2},
  704. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  705. LPASS_BE_SEN_TDM_TX_2},
  706. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  707. LPASS_BE_SEN_TDM_RX_3},
  708. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  709. LPASS_BE_SEN_TDM_TX_3},
  710. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  711. LPASS_BE_SEN_TDM_RX_4},
  712. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  713. LPASS_BE_SEN_TDM_TX_4},
  714. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  715. LPASS_BE_SEN_TDM_RX_5},
  716. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  717. LPASS_BE_SEN_TDM_TX_5},
  718. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  719. LPASS_BE_SEN_TDM_RX_6},
  720. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  721. LPASS_BE_SEN_TDM_TX_6},
  722. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  723. LPASS_BE_SEN_TDM_RX_7},
  724. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  725. LPASS_BE_SEN_TDM_TX_7},
  726. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  727. LPASS_BE_INT_BT_A2DP_RX},
  728. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  729. LPASS_BE_USB_AUDIO_RX},
  730. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  731. LPASS_BE_USB_AUDIO_TX},
  732. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  733. LPASS_BE_DISPLAY_PORT},
  734. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  735. LPASS_BE_DISPLAY_PORT1},
  736. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  737. LPASS_BE_TERT_AUXPCM_RX},
  738. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  739. LPASS_BE_TERT_AUXPCM_TX},
  740. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  741. LPASS_BE_QUAT_AUXPCM_RX},
  742. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  743. LPASS_BE_QUAT_AUXPCM_TX},
  744. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  745. LPASS_BE_QUIN_AUXPCM_RX},
  746. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  747. LPASS_BE_QUIN_AUXPCM_TX},
  748. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  749. LPASS_BE_INT0_MI2S_RX},
  750. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  751. LPASS_BE_INT0_MI2S_TX},
  752. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  753. LPASS_BE_INT1_MI2S_RX},
  754. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  755. LPASS_BE_INT1_MI2S_TX},
  756. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  757. LPASS_BE_INT2_MI2S_RX},
  758. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  759. LPASS_BE_INT2_MI2S_TX},
  760. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  761. LPASS_BE_INT3_MI2S_RX},
  762. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  763. LPASS_BE_INT3_MI2S_TX},
  764. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  765. LPASS_BE_INT4_MI2S_RX},
  766. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  767. LPASS_BE_INT4_MI2S_TX},
  768. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  769. LPASS_BE_INT5_MI2S_RX},
  770. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  771. LPASS_BE_INT5_MI2S_TX},
  772. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  773. LPASS_BE_INT6_MI2S_RX},
  774. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  775. LPASS_BE_INT6_MI2S_TX},
  776. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  777. LPASS_BE_SEN_AUXPCM_RX},
  778. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  779. LPASS_BE_SEN_AUXPCM_TX},
  780. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  781. LPASS_BE_SENARY_MI2S_RX},
  782. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  783. LPASS_BE_WSA_CDC_DMA_RX_0},
  784. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  785. LPASS_BE_WSA_CDC_DMA_TX_0},
  786. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  787. LPASS_BE_WSA_CDC_DMA_RX_1},
  788. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  789. LPASS_BE_WSA_CDC_DMA_TX_1},
  790. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  791. LPASS_BE_WSA_CDC_DMA_TX_2},
  792. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  793. LPASS_BE_VA_CDC_DMA_TX_0},
  794. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  795. LPASS_BE_VA_CDC_DMA_TX_1},
  796. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  797. LPASS_BE_VA_CDC_DMA_TX_2},
  798. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  799. LPASS_BE_RX_CDC_DMA_RX_0},
  800. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  801. LPASS_BE_TX_CDC_DMA_TX_0},
  802. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  803. LPASS_BE_RX_CDC_DMA_RX_1},
  804. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  805. LPASS_BE_TX_CDC_DMA_TX_1},
  806. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  807. LPASS_BE_RX_CDC_DMA_RX_2},
  808. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  809. LPASS_BE_TX_CDC_DMA_TX_2},
  810. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  811. LPASS_BE_RX_CDC_DMA_RX_3},
  812. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  813. LPASS_BE_TX_CDC_DMA_TX_3},
  814. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  815. LPASS_BE_RX_CDC_DMA_RX_4},
  816. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  817. LPASS_BE_TX_CDC_DMA_TX_4},
  818. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  819. LPASS_BE_RX_CDC_DMA_RX_5},
  820. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  821. LPASS_BE_TX_CDC_DMA_TX_5},
  822. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  823. LPASS_BE_RX_CDC_DMA_RX_6},
  824. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  825. LPASS_BE_RX_CDC_DMA_RX_7},
  826. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  827. LPASS_BE_PRI_SPDIF_TX},
  828. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  829. LPASS_BE_SEC_SPDIF_RX},
  830. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  831. LPASS_BE_SEC_SPDIF_TX},
  832. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  833. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  834. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  835. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  836. LPASS_BE_PRI_META_MI2S_RX},
  837. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  838. LPASS_BE_SEC_META_MI2S_RX},
  839. { RT_PROXY_PORT_002_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_RX},
  840. { RT_PROXY_PORT_002_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PROXY_TX},
  841. { HDMI_RX_MS, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI_MS},
  842. };
  843. /* Track ASM playback & capture sessions of DAI
  844. * Track LSM listen sessions
  845. */
  846. static struct msm_pcm_routing_fdai_data
  847. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  848. /* MULTIMEDIA1 */
  849. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  850. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  851. /* MULTIMEDIA2 */
  852. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  853. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  854. /* MULTIMEDIA3 */
  855. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  856. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  857. /* MULTIMEDIA4 */
  858. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  859. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  860. /* MULTIMEDIA5 */
  861. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  862. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  863. /* MULTIMEDIA6 */
  864. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  865. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  866. /* MULTIMEDIA7*/
  867. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  868. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  869. /* MULTIMEDIA8 */
  870. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  871. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  872. /* MULTIMEDIA9 */
  873. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  874. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  875. /* MULTIMEDIA10 */
  876. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  877. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  878. /* MULTIMEDIA11 */
  879. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  880. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  881. /* MULTIMEDIA12 */
  882. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  883. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  884. /* MULTIMEDIA13 */
  885. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  886. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  887. /* MULTIMEDIA14 */
  888. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  889. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  890. /* MULTIMEDIA15 */
  891. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  892. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  893. /* MULTIMEDIA16 */
  894. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  895. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  896. /* MULTIMEDIA17 */
  897. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  898. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  899. /* MULTIMEDIA18 */
  900. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  901. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  902. /* MULTIMEDIA19 */
  903. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  904. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  905. /* MULTIMEDIA20 */
  906. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  907. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  908. /* MULTIMEDIA21 */
  909. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  910. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  911. /* MULTIMEDIA22 */
  912. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  913. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  914. /* MULTIMEDIA23 */
  915. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  916. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  917. /* MULTIMEDIA24 */
  918. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  919. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  920. /* MULTIMEDIA25 */
  921. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  922. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  923. /* MULTIMEDIA26 */
  924. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  925. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  926. /* MULTIMEDIA27 */
  927. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  928. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  929. /* MULTIMEDIA28 */
  930. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  931. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  932. /* MULTIMEDIA29 */
  933. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  934. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  935. /* MULTIMEDIA30 */
  936. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  937. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  938. /* VOIP */
  939. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  940. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  941. /* AFE_RX */
  942. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  943. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  944. /* AFE_TX */
  945. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  946. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  947. /* VOICE_STUB */
  948. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  949. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  950. /* DTMF_RX */
  951. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  952. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  953. /* QCHAT */
  954. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  955. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  956. /* VOLTE_STUB */
  957. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  958. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  959. /* LSM1 */
  960. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  961. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  962. /* LSM2 */
  963. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  964. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  965. /* LSM3 */
  966. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  967. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  968. /* LSM4 */
  969. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  970. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  971. /* LSM5 */
  972. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  973. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  974. /* LSM6 */
  975. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  976. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  977. /* LSM7 */
  978. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  979. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  980. /* LSM8 */
  981. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  982. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  983. /* VOICE2_STUB */
  984. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  985. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  986. /* VOICEMMODE1 */
  987. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  988. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  989. /* VOICEMMODE2 */
  990. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  991. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  992. };
  993. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  994. [MSM_BACKEND_DAI_MAX];
  995. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  996. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  997. static struct msm_pcm_stream_app_type_cfg
  998. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  999. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  1000. /* The caller of this should acquire routing lock */
  1001. void msm_pcm_routing_get_bedai_info(int be_idx,
  1002. struct msm_pcm_routing_bdai_data *be_dai)
  1003. {
  1004. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  1005. memcpy(be_dai, &msm_bedais[be_idx],
  1006. sizeof(struct msm_pcm_routing_bdai_data));
  1007. }
  1008. /* The caller of this should acquire routing lock */
  1009. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  1010. struct msm_pcm_routing_fdai_data *fe_dai)
  1011. {
  1012. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  1013. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  1014. sizeof(struct msm_pcm_routing_fdai_data));
  1015. }
  1016. void msm_pcm_routing_acquire_lock(void)
  1017. {
  1018. mutex_lock(&routing_lock);
  1019. }
  1020. void msm_pcm_routing_release_lock(void)
  1021. {
  1022. mutex_unlock(&routing_lock);
  1023. }
  1024. static int msm_pcm_routing_get_app_type_idx(int app_type)
  1025. {
  1026. int idx;
  1027. pr_debug("%s: app_type: %d\n", __func__, app_type);
  1028. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  1029. if (app_type_cfg[idx].app_type == app_type)
  1030. return idx;
  1031. }
  1032. pr_info("%s: App type not available, fallback to default\n", __func__);
  1033. return 0;
  1034. }
  1035. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  1036. {
  1037. int idx;
  1038. pr_debug("%s: app_type: %d\n", __func__, app_type);
  1039. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  1040. if (lsm_app_type_cfg[idx].app_type == app_type)
  1041. return idx;
  1042. }
  1043. pr_debug("%s: App type not available, fallback to default\n", __func__);
  1044. return 0;
  1045. }
  1046. static int get_port_id(int port_id)
  1047. {
  1048. int ret = port_id;
  1049. if (port_id == AFE_LOOPBACK_TX) {
  1050. /*
  1051. * Return afe_loopback_tx_port_id if set. Else return
  1052. * msm_ec_ref_port_id to maintain backward compatibility.
  1053. */
  1054. if (afe_loopback_tx_port_id != -1)
  1055. ret = afe_loopback_tx_port_id;
  1056. else
  1057. ret = msm_ec_ref_port_id;
  1058. }
  1059. return ret;
  1060. }
  1061. static bool is_mm_lsm_fe_id(int fe_id)
  1062. {
  1063. bool rc = true;
  1064. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  1065. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  1066. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  1067. rc = false;
  1068. }
  1069. return rc;
  1070. }
  1071. /*
  1072. * msm_pcm_routing_send_chmix_cfg:
  1073. * send the channel mixer command to mix the input channels
  1074. * into output channels.
  1075. *
  1076. * @fe_id: front end id
  1077. * @ip_channel_cnt: input channel count
  1078. * @op_channel_cnt: output channel count
  1079. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  1080. * @session_type: indicates session is of type TX or RX
  1081. * @stream_type: indicates either Audio or Listen stream type
  1082. */
  1083. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  1084. int op_channel_cnt, int *ch_wght_coeff,
  1085. int session_type, int stream_type)
  1086. {
  1087. int rc = 0, idx = 0;
  1088. int be_index = 0, port_id;
  1089. unsigned int session_id = 0;
  1090. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  1091. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  1092. stream_type);
  1093. if (!is_mm_lsm_fe_id(fe_id)) {
  1094. /* bad ID assigned in machine driver */
  1095. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1096. return -EINVAL;
  1097. }
  1098. if (ch_wght_coeff == NULL) {
  1099. pr_err("%s: Null channel weightage coefficients passed\n",
  1100. __func__);
  1101. return -EINVAL;
  1102. }
  1103. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  1104. port_id = msm_bedais[be_index].port_id;
  1105. if (!msm_bedais[be_index].active ||
  1106. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  1107. continue;
  1108. session_id = fe_dai_map[fe_id][session_type].strm_id;
  1109. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  1110. unsigned long copp =
  1111. session_copp_map[fe_id][session_type][be_index];
  1112. if (!test_bit(idx, &copp))
  1113. continue;
  1114. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  1115. session_id, ip_channel_cnt,
  1116. op_channel_cnt, ch_wght_coeff,
  1117. session_type, stream_type);
  1118. if (rc < 0)
  1119. pr_err("%s: err setting channel mix config\n",
  1120. __func__);
  1121. }
  1122. }
  1123. return 0;
  1124. }
  1125. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  1126. /**
  1127. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  1128. * setting before use case start.
  1129. *
  1130. * @fe_id: frontend idx
  1131. * @type: stream direction type
  1132. * @params: parameters of channel mixer setting
  1133. *
  1134. * Return 0 for success
  1135. */
  1136. int msm_pcm_routing_set_channel_mixer_cfg(
  1137. int fe_id, int type,
  1138. struct msm_pcm_channel_mixer *params)
  1139. {
  1140. int i, j = 0;
  1141. channel_mixer_v2[fe_id][type].enable = params->enable;
  1142. channel_mixer_v2[fe_id][type].rule = params->rule;
  1143. channel_mixer_v2[fe_id][type].input_channel =
  1144. params->input_channel;
  1145. channel_mixer_v2[fe_id][type].output_channel =
  1146. params->output_channel;
  1147. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  1148. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1149. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  1150. params->in_ch_map[i];
  1151. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1152. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  1153. params->out_ch_map[i];
  1154. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  1155. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  1156. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  1157. params->channel_weight[i][j];
  1158. channel_mixer_v2[fe_id][type].override_in_ch_map =
  1159. params->override_in_ch_map;
  1160. channel_mixer_v2[fe_id][type].override_out_ch_map =
  1161. params->override_out_ch_map;
  1162. return 0;
  1163. }
  1164. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  1165. int msm_pcm_routing_reg_stream_app_type_cfg(
  1166. int fedai_id, int session_type, int be_id,
  1167. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1168. {
  1169. int ret = 0;
  1170. if (cfg_data == NULL) {
  1171. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  1172. ret = -EINVAL;
  1173. goto done;
  1174. }
  1175. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d copp_token %d\n",
  1176. __func__, fedai_id, session_type, be_id,
  1177. cfg_data->app_type, cfg_data->acdb_dev_id,
  1178. cfg_data->sample_rate, cfg_data->copp_token);
  1179. if (!is_mm_lsm_fe_id(fedai_id)) {
  1180. pr_err("%s: Invalid machine driver ID %d\n",
  1181. __func__, fedai_id);
  1182. ret = -EINVAL;
  1183. goto done;
  1184. }
  1185. if (session_type != SESSION_TYPE_RX &&
  1186. session_type != SESSION_TYPE_TX) {
  1187. pr_err("%s: Invalid session type %d\n",
  1188. __func__, session_type);
  1189. ret = -EINVAL;
  1190. goto done;
  1191. }
  1192. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1193. pr_err("%s: Received out of bounds be_id %d\n",
  1194. __func__, be_id);
  1195. ret = -EINVAL;
  1196. goto done;
  1197. }
  1198. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1199. /*
  1200. * Store the BE ID of the configuration information set as the latest so
  1201. * the get mixer control knows what to return.
  1202. */
  1203. last_be_id_configured[fedai_id][session_type] = be_id;
  1204. done:
  1205. return ret;
  1206. }
  1207. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1208. /**
  1209. * msm_pcm_routing_get_stream_app_type_cfg
  1210. *
  1211. * Receives fedai_id, session_type, be_id, and populates app_type,
  1212. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1213. * -EINVAL and does not alter passed values.
  1214. *
  1215. * fedai_id - Passed value, front end ID for which app type config is wanted
  1216. * session_type - Passed value, session type for which app type config
  1217. * is wanted
  1218. * be_id - Returned value, back end device id the app type config data is for
  1219. * cfg_data - Returned value, configuration data used by app type config
  1220. */
  1221. int msm_pcm_routing_get_stream_app_type_cfg(
  1222. int fedai_id, int session_type, int *bedai_id,
  1223. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1224. {
  1225. int be_id;
  1226. int ret = 0;
  1227. if (bedai_id == NULL) {
  1228. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1229. ret = -EINVAL;
  1230. goto done;
  1231. } else if (cfg_data == NULL) {
  1232. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1233. ret = -EINVAL;
  1234. goto done;
  1235. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1236. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1237. ret = -EINVAL;
  1238. goto done;
  1239. } else if (session_type != SESSION_TYPE_RX &&
  1240. session_type != SESSION_TYPE_TX) {
  1241. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1242. ret = -EINVAL;
  1243. goto done;
  1244. }
  1245. be_id = last_be_id_configured[fedai_id][session_type];
  1246. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1247. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1248. ret = -EINVAL;
  1249. goto done;
  1250. }
  1251. *bedai_id = be_id;
  1252. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1253. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d copp_token %d\n",
  1254. __func__, fedai_id, session_type, *bedai_id,
  1255. cfg_data->app_type, cfg_data->acdb_dev_id,
  1256. cfg_data->sample_rate, cfg_data->copp_token);
  1257. done:
  1258. return ret;
  1259. }
  1260. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1261. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1262. int cal_index)
  1263. {
  1264. struct list_head *ptr, *next;
  1265. struct cal_block_data *cal_block = NULL;
  1266. pr_debug("%s\n", __func__);
  1267. list_for_each_safe(ptr, next,
  1268. &cal_data[cal_index]->cal_blocks) {
  1269. cal_block = list_entry(ptr,
  1270. struct cal_block_data, list);
  1271. if (cal_utils_is_cal_stale(cal_block))
  1272. continue;
  1273. if (((struct audio_cal_info_adm_top *)cal_block
  1274. ->cal_info)->path == path) {
  1275. return cal_block;
  1276. }
  1277. }
  1278. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1279. return NULL;
  1280. }
  1281. static struct cal_block_data *msm_routing_find_topology(int path,
  1282. int app_type,
  1283. int acdb_id,
  1284. int cal_index,
  1285. bool exact)
  1286. {
  1287. struct list_head *ptr, *next;
  1288. struct cal_block_data *cal_block = NULL;
  1289. struct audio_cal_info_adm_top *cal_info;
  1290. pr_debug("%s\n", __func__);
  1291. list_for_each_safe(ptr, next,
  1292. &cal_data[cal_index]->cal_blocks) {
  1293. cal_block = list_entry(ptr,
  1294. struct cal_block_data, list);
  1295. if (cal_utils_is_cal_stale(cal_block))
  1296. continue;
  1297. cal_info = (struct audio_cal_info_adm_top *)
  1298. cal_block->cal_info;
  1299. if ((cal_info->path == path) &&
  1300. (cal_info->app_type == app_type) &&
  1301. (cal_info->acdb_id == acdb_id)) {
  1302. return cal_block;
  1303. }
  1304. }
  1305. pr_debug("%s: Can't find topology for path %d, app %d, "
  1306. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1307. exact ? "fail" : "defaulting to search by path");
  1308. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1309. cal_index);
  1310. }
  1311. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1312. int acdb_dev_id, int idx,
  1313. bool exact)
  1314. {
  1315. int topology = -EINVAL;
  1316. struct cal_block_data *cal_block = NULL;
  1317. mutex_lock(&cal_data[idx]->lock);
  1318. cal_block = msm_routing_find_topology(session_type, app_type,
  1319. acdb_dev_id, idx, exact);
  1320. if (cal_block != NULL) {
  1321. topology = ((struct audio_cal_info_adm_top *)
  1322. cal_block->cal_info)->topology;
  1323. }
  1324. mutex_unlock(&cal_data[idx]->lock);
  1325. return topology;
  1326. }
  1327. /*
  1328. * Retrieving cal_block will mark cal_block as stale.
  1329. * Hence it cannot be reused or resent unless the flag
  1330. * is reset.
  1331. */
  1332. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1333. int be_id)
  1334. {
  1335. int topology = NULL_COPP_TOPOLOGY;
  1336. int app_type = 0, acdb_dev_id = 0;
  1337. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1338. __func__, fedai_id, session_type, be_id);
  1339. if (cal_data == NULL)
  1340. goto done;
  1341. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1342. acdb_dev_id =
  1343. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1344. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1345. topology = msm_routing_find_topology_on_index(session_type,
  1346. app_type,
  1347. acdb_dev_id,
  1348. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1349. true /*exact*/);
  1350. if (topology < 0) {
  1351. pr_debug("%s: Check for compatible topology\n", __func__);
  1352. topology = msm_routing_find_topology_on_index(session_type,
  1353. app_type,
  1354. acdb_dev_id,
  1355. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1356. false /*exact*/);
  1357. if (topology < 0)
  1358. topology = NULL_COPP_TOPOLOGY;
  1359. }
  1360. done:
  1361. pr_debug("%s: Using topology %d\n", __func__, topology);
  1362. return topology;
  1363. }
  1364. static uint8_t is_be_dai_extproc(int be_dai)
  1365. {
  1366. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1367. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1368. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1369. return 1;
  1370. else
  1371. return 0;
  1372. }
  1373. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1374. int path_type, int perf_mode,
  1375. uint32_t passthr_mode)
  1376. {
  1377. int i, port_type, j, num_copps = 0;
  1378. struct route_payload payload;
  1379. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1380. path_type == ADM_PATH_COMPRESSED_RX) ?
  1381. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1382. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1383. if (!is_be_dai_extproc(i) &&
  1384. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1385. (msm_bedais[i].active) &&
  1386. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1387. int port_id = get_port_id(msm_bedais[i].port_id);
  1388. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1389. unsigned long copp =
  1390. session_copp_map[fedai_id][sess_type][i];
  1391. if (test_bit(j, &copp)) {
  1392. payload.port_id[num_copps] = port_id;
  1393. payload.copp_idx[num_copps] = j;
  1394. payload.app_type[num_copps] =
  1395. fe_dai_app_type_cfg
  1396. [fedai_id][sess_type][i]
  1397. .app_type;
  1398. payload.acdb_dev_id[num_copps] =
  1399. fe_dai_app_type_cfg
  1400. [fedai_id][sess_type][i]
  1401. .acdb_dev_id;
  1402. payload.sample_rate[num_copps] =
  1403. fe_dai_app_type_cfg
  1404. [fedai_id][sess_type][i]
  1405. .sample_rate;
  1406. num_copps++;
  1407. }
  1408. }
  1409. }
  1410. }
  1411. if (num_copps) {
  1412. payload.num_copps = num_copps;
  1413. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1414. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1415. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1416. }
  1417. }
  1418. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1419. int stream_type)
  1420. {
  1421. int i, session_type, path_type, port_type;
  1422. u32 mode = 0;
  1423. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1424. /* bad ID assigned in machine driver */
  1425. pr_err("%s: bad MM ID\n", __func__);
  1426. return;
  1427. }
  1428. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1429. session_type = SESSION_TYPE_RX;
  1430. path_type = ADM_PATH_PLAYBACK;
  1431. port_type = MSM_AFE_PORT_TYPE_RX;
  1432. } else {
  1433. session_type = SESSION_TYPE_TX;
  1434. path_type = ADM_PATH_LIVE_REC;
  1435. port_type = MSM_AFE_PORT_TYPE_TX;
  1436. }
  1437. mutex_lock(&routing_lock);
  1438. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1439. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1440. if (!is_be_dai_extproc(i) &&
  1441. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1442. (msm_bedais[i].active) &&
  1443. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1444. mode = afe_get_port_type(msm_bedais[i].port_id);
  1445. adm_connect_afe_port(mode, dspst_id,
  1446. msm_bedais[i].port_id);
  1447. break;
  1448. }
  1449. }
  1450. mutex_unlock(&routing_lock);
  1451. }
  1452. static bool route_check_fe_id_adm_support(int fe_id)
  1453. {
  1454. bool rc = true;
  1455. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1456. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1457. /* fe id is listen while port is set to afe */
  1458. if (lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1] !=
  1459. ADM_LSM_PORT_INDEX) {
  1460. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1461. __func__, fe_id,
  1462. lsm_port_index[fe_id - MSM_FRONTEND_DAI_LSM1]);
  1463. rc = false;
  1464. }
  1465. }
  1466. return rc;
  1467. }
  1468. /*
  1469. * msm_pcm_routing_get_pp_ch_cnt:
  1470. * Read the processed channel count
  1471. *
  1472. * @fe_id: Front end ID
  1473. * @session_type: Inidicates RX or TX session type
  1474. */
  1475. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1476. {
  1477. struct msm_pcm_stream_app_type_cfg cfg_data;
  1478. int be_id = 0, app_type_idx = 0, app_type = 0;
  1479. int ret = -EINVAL;
  1480. memset(&cfg_data, 0, sizeof(cfg_data));
  1481. if (!is_mm_lsm_fe_id(fe_id)) {
  1482. pr_err("%s: bad MM ID\n", __func__);
  1483. return -EINVAL;
  1484. }
  1485. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1486. &be_id, &cfg_data);
  1487. if (ret) {
  1488. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1489. return ret;
  1490. }
  1491. app_type = cfg_data.app_type;
  1492. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1493. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1494. }
  1495. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1496. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1497. int dspst_id, int stream_type,
  1498. uint32_t passthr_mode)
  1499. {
  1500. int i, j, session_type, path_type, port_type, topology;
  1501. int num_copps = 0;
  1502. struct route_payload payload;
  1503. u32 channels, sample_rate;
  1504. u16 bit_width = 16, be_bit_width;
  1505. bool is_lsm;
  1506. uint32_t copp_token = 0;
  1507. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1508. __func__, fe_id, perf_mode, dspst_id,
  1509. stream_type, passthr_mode);
  1510. if (!is_mm_lsm_fe_id(fe_id)) {
  1511. /* bad ID assigned in machine driver */
  1512. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1513. return -EINVAL;
  1514. }
  1515. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1516. session_type = SESSION_TYPE_RX;
  1517. if (passthr_mode != LEGACY_PCM)
  1518. path_type = ADM_PATH_COMPRESSED_RX;
  1519. else
  1520. path_type = ADM_PATH_PLAYBACK;
  1521. port_type = MSM_AFE_PORT_TYPE_RX;
  1522. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1523. session_type = SESSION_TYPE_TX;
  1524. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1525. path_type = ADM_PATH_COMPRESSED_TX;
  1526. else
  1527. path_type = ADM_PATH_LIVE_REC;
  1528. port_type = MSM_AFE_PORT_TYPE_TX;
  1529. } else {
  1530. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1531. return -EINVAL;
  1532. }
  1533. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1534. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1535. mutex_lock(&routing_lock);
  1536. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1537. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1538. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1539. if (!route_check_fe_id_adm_support(fe_id)) {
  1540. /* ignore adm open if not supported for fe_id */
  1541. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1542. mutex_unlock(&routing_lock);
  1543. return 0;
  1544. }
  1545. payload.num_copps = 0; /* only RX needs to use payload */
  1546. /* re-enable EQ if active */
  1547. msm_qti_pp_send_eq_values(fe_id);
  1548. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1549. if (!is_be_dai_extproc(i) &&
  1550. (afe_get_port_type(msm_bedais[i].port_id) ==
  1551. port_type) &&
  1552. (msm_bedais[i].active) &&
  1553. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1554. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1555. int port_id = get_port_id(msm_bedais[i].port_id);
  1556. /*
  1557. * check if ADM needs to be configured with different
  1558. * channel mapping than backend
  1559. */
  1560. if (!msm_bedais[i].adm_override_ch)
  1561. channels = msm_bedais[i].channel;
  1562. else
  1563. channels = msm_bedais[i].adm_override_ch;
  1564. bit_width = msm_routing_get_bit_width(
  1565. msm_bedais[i].format);
  1566. app_type =
  1567. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1568. if (app_type && is_lsm) {
  1569. app_type_idx =
  1570. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1571. sample_rate =
  1572. fe_dai_app_type_cfg[fe_id][session_type][i]
  1573. .sample_rate;
  1574. bit_width =
  1575. lsm_app_type_cfg[app_type_idx].bit_width;
  1576. } else if (app_type) {
  1577. app_type_idx =
  1578. msm_pcm_routing_get_app_type_idx(
  1579. app_type);
  1580. sample_rate =
  1581. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1582. bit_width =
  1583. app_type_cfg[app_type_idx].bit_width;
  1584. copp_token =
  1585. fe_dai_app_type_cfg[fe_id][session_type][i].copp_token;
  1586. } else {
  1587. sample_rate = msm_bedais[i].sample_rate;
  1588. }
  1589. acdb_dev_id =
  1590. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1591. topology = msm_routing_get_adm_topology(fe_id,
  1592. session_type,
  1593. i);
  1594. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1595. || (passthr_mode ==
  1596. COMPRESSED_PASSTHROUGH_GEN)
  1597. || (passthr_mode ==
  1598. COMPRESSED_PASSTHROUGH_IEC61937))
  1599. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1600. pr_debug("%s: Before adm open topology %d\n", __func__,
  1601. topology);
  1602. be_bit_width = msm_routing_get_bit_width(
  1603. msm_bedais[i].format);
  1604. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1605. == 384000 || msm_bedais[i].sample_rate ==
  1606. 352800) && be_bit_width == 32)
  1607. bit_width = msm_routing_get_bit_width(
  1608. SNDRV_PCM_FORMAT_S32_LE);
  1609. copp_idx =
  1610. adm_open(port_id, path_type, sample_rate,
  1611. channels, topology, perf_mode,
  1612. bit_width, app_type, acdb_dev_id,
  1613. session_type, passthr_mode, copp_token);
  1614. if ((copp_idx < 0) ||
  1615. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1616. pr_err("%s:adm open failed coppid:%d\n",
  1617. __func__, copp_idx);
  1618. mutex_unlock(&routing_lock);
  1619. return -EINVAL;
  1620. }
  1621. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1622. __func__, fe_id, session_type, i);
  1623. set_bit(copp_idx,
  1624. &session_copp_map[fe_id][session_type][i]);
  1625. if (msm_is_resample_needed(
  1626. sample_rate,
  1627. msm_bedais[i].sample_rate))
  1628. adm_copp_mfc_cfg(port_id, copp_idx,
  1629. msm_bedais[i].sample_rate);
  1630. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1631. unsigned long copp =
  1632. session_copp_map[fe_id][session_type][i];
  1633. if (test_bit(j, &copp)) {
  1634. payload.port_id[num_copps] = port_id;
  1635. payload.copp_idx[num_copps] = j;
  1636. payload.app_type[num_copps] =
  1637. fe_dai_app_type_cfg
  1638. [fe_id][session_type][i]
  1639. .app_type;
  1640. payload.acdb_dev_id[num_copps] =
  1641. fe_dai_app_type_cfg
  1642. [fe_id][session_type][i]
  1643. .acdb_dev_id;
  1644. payload.sample_rate[num_copps] =
  1645. fe_dai_app_type_cfg
  1646. [fe_id][session_type][i]
  1647. .sample_rate;
  1648. num_copps++;
  1649. }
  1650. }
  1651. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1652. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1653. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1654. msm_routing_send_device_pp_params(port_id,
  1655. copp_idx, fe_id);
  1656. }
  1657. }
  1658. if (num_copps) {
  1659. payload.num_copps = num_copps;
  1660. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1661. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1662. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1663. }
  1664. mutex_unlock(&routing_lock);
  1665. return 0;
  1666. }
  1667. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1668. {
  1669. u32 session_id;
  1670. switch (val) {
  1671. case MSM_FRONTEND_DAI_QCHAT:
  1672. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1673. break;
  1674. case MSM_FRONTEND_DAI_VOIP:
  1675. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1676. break;
  1677. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1678. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1679. break;
  1680. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1681. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1682. break;
  1683. default:
  1684. session_id = 0;
  1685. }
  1686. pr_debug("%s session_id 0x%x", __func__, session_id);
  1687. return session_id;
  1688. }
  1689. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1690. int dspst_id, int stream_type)
  1691. {
  1692. int copp_idx = 0;
  1693. int sess_type = 0;
  1694. int j = 0, be_id = 0;
  1695. int ret = 0;
  1696. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1697. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1698. return 0;
  1699. }
  1700. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1701. sess_type = SESSION_TYPE_RX;
  1702. else
  1703. sess_type = SESSION_TYPE_TX;
  1704. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1705. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1706. __func__, fe_id, sess_type);
  1707. return 0;
  1708. }
  1709. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1710. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1711. channel_mixer_v2[fe_id][sess_type].input_channel;
  1712. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1713. __func__, sess_type, fe_id,
  1714. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1715. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1716. msm_bedais[be_id].active);
  1717. if ((msm_bedais[be_id].active) &&
  1718. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1719. unsigned long copp =
  1720. session_copp_map[fe_id][sess_type][be_id];
  1721. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1722. if (test_bit(j, &copp)) {
  1723. copp_idx = j;
  1724. break;
  1725. }
  1726. }
  1727. ret = adm_programable_channel_mixer(
  1728. msm_bedais[be_id].port_id,
  1729. copp_idx, dspst_id, sess_type,
  1730. &channel_mixer_v2[fe_id][sess_type], 0);
  1731. }
  1732. return ret;
  1733. }
  1734. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1735. int dspst_id, int stream_type)
  1736. {
  1737. int copp_idx = 0;
  1738. int sess_type = 0;
  1739. int i = 0, j = 0, be_id;
  1740. int ret = 0;
  1741. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1742. dspst_id, stream_type);
  1743. if (ret) {
  1744. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1745. fe_id);
  1746. return ret;
  1747. }
  1748. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1749. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1750. return 0;
  1751. }
  1752. if (!(channel_mixer[fe_id].enable)) {
  1753. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1754. __func__, fe_id);
  1755. return 0;
  1756. }
  1757. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1758. sess_type = SESSION_TYPE_RX;
  1759. else
  1760. sess_type = SESSION_TYPE_TX;
  1761. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1762. ++i) {
  1763. be_id = channel_input[fe_id][i] - 1;
  1764. channel_mixer[fe_id].input_channels[i] =
  1765. msm_bedais[be_id].channel;
  1766. if ((msm_bedais[be_id].active) &&
  1767. test_bit(fe_id,
  1768. &msm_bedais[be_id].fe_sessions[0])) {
  1769. unsigned long copp =
  1770. session_copp_map[fe_id][sess_type][be_id];
  1771. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1772. if (test_bit(j, &copp)) {
  1773. copp_idx = j;
  1774. break;
  1775. }
  1776. }
  1777. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1778. __func__,
  1779. fe_id, be_id, msm_bedais[be_id].channel,
  1780. copp_idx);
  1781. ret = adm_programable_channel_mixer(
  1782. get_port_id(msm_bedais[be_id].port_id),
  1783. copp_idx, dspst_id, sess_type,
  1784. channel_mixer + fe_id, i);
  1785. }
  1786. }
  1787. return ret;
  1788. }
  1789. /**
  1790. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1791. * setting during runtime.
  1792. *
  1793. * @be_id: backend index
  1794. * @session_id: session index
  1795. * @session_type: session type
  1796. * @params: parameters for channel mixer
  1797. *
  1798. * Retuen: 0 for success, else error
  1799. */
  1800. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1801. int session_type,
  1802. struct msm_pcm_channel_mixer *params)
  1803. {
  1804. int rc = 0;
  1805. int port_id, copp_idx = 0;
  1806. be_id--;
  1807. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1808. pr_err("%s: invalid backend id %d\n", __func__,
  1809. be_id);
  1810. return -EINVAL;
  1811. }
  1812. port_id = msm_bedais[be_id].port_id;
  1813. copp_idx = adm_get_default_copp_idx(port_id);
  1814. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1815. __func__, port_id, copp_idx, session_id);
  1816. if ((params->input_channel < 0) ||
  1817. (params->input_channel > ADM_MAX_CHANNELS)) {
  1818. pr_err("%s: invalid input channel %d\n", __func__,
  1819. params->input_channel);
  1820. return -EINVAL;
  1821. }
  1822. if ((params->output_channel < 0) ||
  1823. (params->output_channel > ADM_MAX_CHANNELS)) {
  1824. pr_err("%s: invalid output channel %d\n", __func__,
  1825. params->output_channel);
  1826. return -EINVAL;
  1827. }
  1828. params->input_channels[0] = params->input_channel;
  1829. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1830. __func__, session_type,
  1831. params->override_in_ch_map,
  1832. params->override_out_ch_map,
  1833. msm_bedais[be_id].active);
  1834. rc = adm_programable_channel_mixer(port_id,
  1835. copp_idx,
  1836. session_id,
  1837. session_type,
  1838. params,
  1839. 0);
  1840. if (rc) {
  1841. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1842. rc = -EINVAL;
  1843. }
  1844. return rc;
  1845. }
  1846. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1847. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1848. int dspst_id, int stream_type)
  1849. {
  1850. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1851. struct route_payload payload;
  1852. u32 channels, sample_rate;
  1853. uint16_t bits_per_sample = 16, be_bit_width;
  1854. uint32_t passthr_mode = LEGACY_PCM;
  1855. int ret = 0;
  1856. uint32_t copp_token = 0;
  1857. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1858. /* bad ID assigned in machine driver */
  1859. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1860. return -EINVAL;
  1861. }
  1862. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1863. session_type = SESSION_TYPE_RX;
  1864. path_type = ADM_PATH_PLAYBACK;
  1865. port_type = MSM_AFE_PORT_TYPE_RX;
  1866. } else {
  1867. session_type = SESSION_TYPE_TX;
  1868. path_type = ADM_PATH_LIVE_REC;
  1869. port_type = MSM_AFE_PORT_TYPE_TX;
  1870. }
  1871. mutex_lock(&routing_lock);
  1872. payload.num_copps = 0; /* only RX needs to use payload */
  1873. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1874. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1875. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1876. /* re-enable EQ if active */
  1877. msm_qti_pp_send_eq_values(fedai_id);
  1878. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1879. if (!is_be_dai_extproc(i) &&
  1880. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1881. (msm_bedais[i].active) &&
  1882. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1883. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1884. int port_id = get_port_id(msm_bedais[i].port_id);
  1885. /*
  1886. * check if ADM needs to be configured with different
  1887. * channel mapping than backend
  1888. */
  1889. if (!msm_bedais[i].adm_override_ch)
  1890. channels = msm_bedais[i].channel;
  1891. else
  1892. channels = msm_bedais[i].adm_override_ch;
  1893. bits_per_sample = msm_routing_get_bit_width(
  1894. msm_bedais[i].format);
  1895. app_type =
  1896. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1897. if (app_type) {
  1898. app_type_idx =
  1899. msm_pcm_routing_get_app_type_idx(app_type);
  1900. sample_rate =
  1901. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1902. .sample_rate;
  1903. bits_per_sample =
  1904. app_type_cfg[app_type_idx].bit_width;
  1905. copp_token =
  1906. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1907. .copp_token;
  1908. } else
  1909. sample_rate = msm_bedais[i].sample_rate;
  1910. acdb_dev_id =
  1911. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1912. .acdb_dev_id;
  1913. topology = msm_routing_get_adm_topology(fedai_id,
  1914. session_type,
  1915. i);
  1916. be_bit_width = msm_routing_get_bit_width(
  1917. msm_bedais[i].format);
  1918. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1919. 384000 ||msm_bedais[i].sample_rate == 352800)
  1920. && be_bit_width == 32)
  1921. bits_per_sample = msm_routing_get_bit_width(
  1922. SNDRV_PCM_FORMAT_S32_LE);
  1923. copp_idx = adm_open(port_id, path_type,
  1924. sample_rate, channels, topology,
  1925. perf_mode, bits_per_sample,
  1926. app_type, acdb_dev_id,
  1927. session_type, passthr_mode, copp_token);
  1928. if ((copp_idx < 0) ||
  1929. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1930. pr_err("%s: adm open failed copp_idx:%d\n",
  1931. __func__, copp_idx);
  1932. mutex_unlock(&routing_lock);
  1933. return -EINVAL;
  1934. }
  1935. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1936. __func__, fedai_id, session_type, i);
  1937. set_bit(copp_idx,
  1938. &session_copp_map[fedai_id][session_type][i]);
  1939. if (msm_is_resample_needed(
  1940. sample_rate,
  1941. msm_bedais[i].sample_rate))
  1942. adm_copp_mfc_cfg(port_id, copp_idx,
  1943. msm_bedais[i].sample_rate);
  1944. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1945. unsigned long copp =
  1946. session_copp_map[fedai_id][session_type][i];
  1947. if (test_bit(j, &copp)) {
  1948. payload.port_id[num_copps] = port_id;
  1949. payload.copp_idx[num_copps] = j;
  1950. payload.app_type[num_copps] =
  1951. fe_dai_app_type_cfg
  1952. [fedai_id][session_type]
  1953. [i].app_type;
  1954. payload.acdb_dev_id[num_copps] =
  1955. fe_dai_app_type_cfg
  1956. [fedai_id][session_type]
  1957. [i].acdb_dev_id;
  1958. payload.sample_rate[num_copps] =
  1959. fe_dai_app_type_cfg
  1960. [fedai_id][session_type]
  1961. [i].sample_rate;
  1962. num_copps++;
  1963. }
  1964. }
  1965. if (perf_mode == LEGACY_PCM_MODE)
  1966. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1967. topology, channels);
  1968. }
  1969. }
  1970. if (num_copps) {
  1971. payload.num_copps = num_copps;
  1972. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1973. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1974. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1975. }
  1976. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1977. dspst_id, stream_type);
  1978. mutex_unlock(&routing_lock);
  1979. return ret;
  1980. }
  1981. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1982. int dspst_id, int stream_type,
  1983. struct msm_pcm_routing_evt event_info)
  1984. {
  1985. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1986. stream_type)) {
  1987. pr_err("%s: failed to reg phy stream\n", __func__);
  1988. return -EINVAL;
  1989. }
  1990. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1991. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1992. else
  1993. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1994. return 0;
  1995. }
  1996. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1997. {
  1998. int i, port_type, session_type, path_type, topology, port_id;
  1999. struct msm_pcm_routing_fdai_data *fdai;
  2000. if (!is_mm_lsm_fe_id(fedai_id)) {
  2001. /* bad ID assigned in machine driver */
  2002. pr_err("%s: bad MM ID\n", __func__);
  2003. return;
  2004. }
  2005. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  2006. port_type = MSM_AFE_PORT_TYPE_RX;
  2007. session_type = SESSION_TYPE_RX;
  2008. path_type = ADM_PATH_PLAYBACK;
  2009. } else {
  2010. port_type = MSM_AFE_PORT_TYPE_TX;
  2011. session_type = SESSION_TYPE_TX;
  2012. path_type = ADM_PATH_LIVE_REC;
  2013. }
  2014. mutex_lock(&routing_lock);
  2015. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2016. if (!is_be_dai_extproc(i) &&
  2017. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  2018. (msm_bedais[i].active) &&
  2019. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  2020. int idx;
  2021. unsigned long copp =
  2022. session_copp_map[fedai_id][session_type][i];
  2023. fdai = &fe_dai_map[fedai_id][session_type];
  2024. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2025. if (test_bit(idx, &copp))
  2026. break;
  2027. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  2028. pr_debug("%s: copp idx is invalid, exiting\n",
  2029. __func__);
  2030. continue;
  2031. }
  2032. port_id = get_port_id(msm_bedais[i].port_id);
  2033. topology = adm_get_topology_for_port_copp_idx(
  2034. port_id, idx);
  2035. msm_routing_unload_topology(topology);
  2036. adm_close(port_id, fdai->perf_mode, idx);
  2037. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  2038. __func__, copp, fedai_id, session_type, i);
  2039. clear_bit(idx,
  2040. &session_copp_map[fedai_id][session_type][i]);
  2041. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2042. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2043. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2044. (fdai->passthr_mode == LEGACY_PCM))
  2045. msm_pcm_routing_deinit_pp(port_id, topology);
  2046. }
  2047. }
  2048. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  2049. fe_dai_map[fedai_id][session_type].be_srate = 0;
  2050. mutex_unlock(&routing_lock);
  2051. }
  2052. /* Check if FE/BE route is set */
  2053. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  2054. {
  2055. bool rc = false;
  2056. if (!is_mm_lsm_fe_id(fe_id)) {
  2057. /* recheck FE ID in the mixer control defined in this file */
  2058. pr_err("%s: bad MM ID\n", __func__);
  2059. return rc;
  2060. }
  2061. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  2062. rc = true;
  2063. return rc;
  2064. }
  2065. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  2066. {
  2067. int session_type, path_type, topology;
  2068. u32 channels, sample_rate;
  2069. uint16_t bits_per_sample = 16, be_bit_width;
  2070. struct msm_pcm_routing_fdai_data *fdai;
  2071. uint32_t passthr_mode;
  2072. bool is_lsm;
  2073. uint32_t copp_token = 0;
  2074. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2075. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2076. afe_get_port_type(msm_bedais[reg].port_id) ==
  2077. MSM_AFE_PORT_TYPE_RX) {
  2078. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2079. __func__, set, msm_bedais[reg].port_id);
  2080. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2081. } else if (!is_mm_lsm_fe_id(val)) {
  2082. /* recheck FE ID in the mixer control defined in this file */
  2083. pr_err("%s: bad MM ID\n", __func__);
  2084. return;
  2085. }
  2086. if (!route_check_fe_id_adm_support(val)) {
  2087. /* ignore adm open if not supported for fe_id */
  2088. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  2089. if (set)
  2090. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2091. else
  2092. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2093. return;
  2094. }
  2095. session_type =
  2096. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  2097. SESSION_TYPE_RX : SESSION_TYPE_TX;
  2098. fdai = &fe_dai_map[val][session_type];
  2099. passthr_mode = fdai->passthr_mode;
  2100. if (session_type == SESSION_TYPE_RX) {
  2101. if (passthr_mode != LEGACY_PCM)
  2102. path_type = ADM_PATH_COMPRESSED_RX;
  2103. else
  2104. path_type = ADM_PATH_PLAYBACK;
  2105. } else {
  2106. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  2107. path_type = ADM_PATH_COMPRESSED_TX;
  2108. else
  2109. path_type = ADM_PATH_LIVE_REC;
  2110. }
  2111. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  2112. (val <= MSM_FRONTEND_DAI_LSM8);
  2113. mutex_lock(&routing_lock);
  2114. if (set) {
  2115. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2116. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2117. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2118. voc_start_playback(set, msm_bedais[reg].port_id);
  2119. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2120. if (msm_bedais[reg].active && fdai->strm_id !=
  2121. INVALID_SESSION) {
  2122. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  2123. int port_id = get_port_id(msm_bedais[reg].port_id);
  2124. /*
  2125. * check if ADM needs to be configured with different
  2126. * channel mapping than backend
  2127. */
  2128. if (!msm_bedais[reg].adm_override_ch)
  2129. channels = msm_bedais[reg].channel;
  2130. else
  2131. channels = msm_bedais[reg].adm_override_ch;
  2132. if (session_type == SESSION_TYPE_TX &&
  2133. fdai->be_srate &&
  2134. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  2135. pr_debug("%s: flush strm %d diff BE rates\n",
  2136. __func__, fdai->strm_id);
  2137. if (fdai->event_info.event_func)
  2138. fdai->event_info.event_func(
  2139. MSM_PCM_RT_EVT_BUF_RECFG,
  2140. fdai->event_info.priv_data);
  2141. fdai->be_srate = 0; /* might not need it */
  2142. }
  2143. bits_per_sample = msm_routing_get_bit_width(
  2144. msm_bedais[reg].format);
  2145. app_type =
  2146. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  2147. if (app_type && is_lsm) {
  2148. app_type_idx =
  2149. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  2150. sample_rate =
  2151. fe_dai_app_type_cfg[val][session_type][reg]
  2152. .sample_rate;
  2153. bits_per_sample =
  2154. lsm_app_type_cfg[app_type_idx].bit_width;
  2155. } else if (app_type) {
  2156. app_type_idx =
  2157. msm_pcm_routing_get_app_type_idx(app_type);
  2158. sample_rate =
  2159. fe_dai_app_type_cfg[val][session_type][reg]
  2160. .sample_rate;
  2161. bits_per_sample =
  2162. app_type_cfg[app_type_idx].bit_width;
  2163. copp_token =
  2164. fe_dai_app_type_cfg[val][session_type][reg]
  2165. .copp_token;
  2166. } else
  2167. sample_rate = msm_bedais[reg].sample_rate;
  2168. topology = msm_routing_get_adm_topology(val,
  2169. session_type,
  2170. reg);
  2171. acdb_dev_id =
  2172. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  2173. be_bit_width = msm_routing_get_bit_width(
  2174. msm_bedais[reg].format);
  2175. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  2176. == 384000 ||msm_bedais[reg].sample_rate ==
  2177. 352800) && be_bit_width == 32)
  2178. bits_per_sample = msm_routing_get_bit_width(
  2179. SNDRV_PCM_FORMAT_S32_LE);
  2180. copp_idx = adm_open(port_id, path_type,
  2181. sample_rate, channels, topology,
  2182. fdai->perf_mode, bits_per_sample,
  2183. app_type, acdb_dev_id,
  2184. session_type, passthr_mode, copp_token);
  2185. if ((copp_idx < 0) ||
  2186. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2187. pr_err("%s: adm open failed\n", __func__);
  2188. mutex_unlock(&routing_lock);
  2189. return;
  2190. }
  2191. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2192. __func__, val, session_type, reg);
  2193. set_bit(copp_idx,
  2194. &session_copp_map[val][session_type][reg]);
  2195. if (msm_is_resample_needed(
  2196. sample_rate,
  2197. msm_bedais[reg].sample_rate))
  2198. adm_copp_mfc_cfg(port_id, copp_idx,
  2199. msm_bedais[reg].sample_rate);
  2200. if (session_type == SESSION_TYPE_RX &&
  2201. fdai->event_info.event_func)
  2202. fdai->event_info.event_func(
  2203. MSM_PCM_RT_EVT_DEVSWITCH,
  2204. fdai->event_info.priv_data);
  2205. msm_pcm_routing_build_matrix(val, session_type,
  2206. path_type,
  2207. fdai->perf_mode,
  2208. passthr_mode);
  2209. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2210. (passthr_mode == LEGACY_PCM))
  2211. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2212. topology, channels);
  2213. }
  2214. } else {
  2215. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2216. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2217. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2218. voc_start_playback(set, msm_bedais[reg].port_id);
  2219. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2220. if (msm_bedais[reg].active && fdai->strm_id !=
  2221. INVALID_SESSION) {
  2222. int idx;
  2223. int port_id;
  2224. unsigned long copp =
  2225. session_copp_map[val][session_type][reg];
  2226. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2227. if (test_bit(idx, &copp))
  2228. break;
  2229. if (idx >= MAX_COPPS_PER_PORT) {
  2230. pr_debug("%s: copp idx is invalid, exiting\n",
  2231. __func__);
  2232. mutex_unlock(&routing_lock);
  2233. return;
  2234. }
  2235. port_id = get_port_id(msm_bedais[reg].port_id);
  2236. topology = adm_get_topology_for_port_copp_idx(port_id,
  2237. idx);
  2238. msm_routing_unload_topology(topology);
  2239. adm_close(port_id, fdai->perf_mode, idx);
  2240. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2241. __func__, copp, val, session_type, reg,
  2242. topology);
  2243. clear_bit(idx,
  2244. &session_copp_map[val][session_type][reg]);
  2245. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2246. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2247. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2248. (passthr_mode == LEGACY_PCM))
  2249. msm_pcm_routing_deinit_pp(port_id, topology);
  2250. msm_pcm_routing_build_matrix(val, session_type,
  2251. path_type,
  2252. fdai->perf_mode,
  2253. passthr_mode);
  2254. }
  2255. }
  2256. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2257. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2258. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2259. mutex_unlock(&routing_lock);
  2260. }
  2261. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2262. struct snd_ctl_elem_value *ucontrol)
  2263. {
  2264. struct soc_mixer_control *mc =
  2265. (struct soc_mixer_control *)kcontrol->private_value;
  2266. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2267. ucontrol->value.integer.value[0] = 1;
  2268. else
  2269. ucontrol->value.integer.value[0] = 0;
  2270. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2271. ucontrol->value.integer.value[0]);
  2272. return 0;
  2273. }
  2274. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2275. struct snd_ctl_elem_value *ucontrol)
  2276. {
  2277. struct snd_soc_dapm_widget *widget =
  2278. snd_soc_dapm_kcontrol_widget(kcontrol);
  2279. struct soc_mixer_control *mc =
  2280. (struct soc_mixer_control *)kcontrol->private_value;
  2281. struct snd_soc_dapm_update *update = NULL;
  2282. if (ucontrol->value.integer.value[0] &&
  2283. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2284. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2285. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2286. update);
  2287. } else if (!ucontrol->value.integer.value[0] &&
  2288. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2289. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2290. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2291. update);
  2292. }
  2293. return 1;
  2294. }
  2295. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2296. struct snd_ctl_elem_value *ucontrol)
  2297. {
  2298. struct soc_mixer_control *mc =
  2299. (struct soc_mixer_control *)kcontrol->private_value;
  2300. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2301. ucontrol->value.integer.value[0] = 1;
  2302. else
  2303. ucontrol->value.integer.value[0] = 0;
  2304. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2305. ucontrol->value.integer.value[0]);
  2306. return 0;
  2307. }
  2308. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2309. struct snd_ctl_elem_value *ucontrol)
  2310. {
  2311. struct snd_soc_dapm_widget *widget =
  2312. snd_soc_dapm_kcontrol_widget(kcontrol);
  2313. struct soc_mixer_control *mc =
  2314. (struct soc_mixer_control *)kcontrol->private_value;
  2315. struct snd_soc_dapm_update *update = NULL;
  2316. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2317. ucontrol->value.integer.value[0]);
  2318. if (ucontrol->value.integer.value[0]) {
  2319. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2320. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2321. snd_soc_dapm_mixer_update_power(widget->dapm,
  2322. kcontrol, 1, update);
  2323. } else if (!ucontrol->value.integer.value[0]) {
  2324. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2325. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2326. snd_soc_dapm_mixer_update_power(widget->dapm,
  2327. kcontrol, 0, update);
  2328. }
  2329. return 1;
  2330. }
  2331. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2332. {
  2333. u32 session_id = 0;
  2334. u16 path_type;
  2335. struct media_format_info voc_be_media_format;
  2336. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2337. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2338. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2339. __func__, val, session_id);
  2340. mutex_lock(&routing_lock);
  2341. if (set)
  2342. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2343. else
  2344. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2345. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2346. afe_get_port_type(msm_bedais[reg].port_id) ==
  2347. MSM_AFE_PORT_TYPE_RX) {
  2348. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2349. __func__, set, msm_bedais[reg].port_id);
  2350. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2351. }
  2352. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2353. MSM_AFE_PORT_TYPE_RX)
  2354. path_type = RX_PATH;
  2355. else
  2356. path_type = TX_PATH;
  2357. if (set) {
  2358. if (msm_bedais[reg].active) {
  2359. voc_set_route_flag(session_id, path_type, 1);
  2360. memset(&voc_be_media_format, 0,
  2361. sizeof(struct media_format_info));
  2362. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2363. voc_be_media_format.num_channels =
  2364. msm_bedais[reg].channel;
  2365. voc_be_media_format.sample_rate =
  2366. msm_bedais[reg].sample_rate;
  2367. voc_be_media_format.bits_per_sample =
  2368. msm_bedais[reg].format;
  2369. /* Defaulting this to 1 for voice call usecases */
  2370. voc_be_media_format.channel_mapping[0] = 1;
  2371. voc_set_device_config(session_id, path_type,
  2372. &voc_be_media_format);
  2373. if (voc_get_route_flag(session_id, TX_PATH) &&
  2374. voc_get_route_flag(session_id, RX_PATH))
  2375. voc_enable_device(session_id);
  2376. } else {
  2377. pr_debug("%s BE is not active\n", __func__);
  2378. }
  2379. } else {
  2380. voc_set_route_flag(session_id, path_type, 0);
  2381. voc_disable_device(session_id);
  2382. }
  2383. mutex_unlock(&routing_lock);
  2384. }
  2385. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2386. struct snd_ctl_elem_value *ucontrol)
  2387. {
  2388. struct soc_mixer_control *mc =
  2389. (struct soc_mixer_control *)kcontrol->private_value;
  2390. mutex_lock(&routing_lock);
  2391. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2392. ucontrol->value.integer.value[0] = 1;
  2393. else
  2394. ucontrol->value.integer.value[0] = 0;
  2395. mutex_unlock(&routing_lock);
  2396. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2397. ucontrol->value.integer.value[0]);
  2398. return 0;
  2399. }
  2400. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2401. struct snd_ctl_elem_value *ucontrol)
  2402. {
  2403. struct snd_soc_dapm_widget *widget =
  2404. snd_soc_dapm_kcontrol_widget(kcontrol);
  2405. struct soc_mixer_control *mc =
  2406. (struct soc_mixer_control *)kcontrol->private_value;
  2407. struct snd_soc_dapm_update *update = NULL;
  2408. if (ucontrol->value.integer.value[0]) {
  2409. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2410. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2411. update);
  2412. } else {
  2413. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2414. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2415. update);
  2416. }
  2417. return 1;
  2418. }
  2419. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2420. struct snd_ctl_elem_value *ucontrol)
  2421. {
  2422. struct soc_mixer_control *mc =
  2423. (struct soc_mixer_control *)kcontrol->private_value;
  2424. mutex_lock(&routing_lock);
  2425. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2426. ucontrol->value.integer.value[0] = 1;
  2427. else
  2428. ucontrol->value.integer.value[0] = 0;
  2429. mutex_unlock(&routing_lock);
  2430. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2431. ucontrol->value.integer.value[0]);
  2432. return 0;
  2433. }
  2434. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2435. struct snd_ctl_elem_value *ucontrol)
  2436. {
  2437. struct snd_soc_dapm_widget *widget =
  2438. snd_soc_dapm_kcontrol_widget(kcontrol);
  2439. struct soc_mixer_control *mc =
  2440. (struct soc_mixer_control *)kcontrol->private_value;
  2441. struct snd_soc_dapm_update *update = NULL;
  2442. if (ucontrol->value.integer.value[0]) {
  2443. mutex_lock(&routing_lock);
  2444. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2445. mutex_unlock(&routing_lock);
  2446. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2447. update);
  2448. } else {
  2449. mutex_lock(&routing_lock);
  2450. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2451. mutex_unlock(&routing_lock);
  2452. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2453. update);
  2454. }
  2455. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2456. ucontrol->value.integer.value[0]);
  2457. return 1;
  2458. }
  2459. /*
  2460. * Return the mapping between port ID and backend ID to enable the AFE callback
  2461. * to determine the acdb_dev_id from the port id
  2462. */
  2463. int msm_pcm_get_be_id_from_port_id(int port_id)
  2464. {
  2465. int i;
  2466. int be_id = -EINVAL;
  2467. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2468. if (msm_bedais[i].port_id == port_id) {
  2469. be_id = i;
  2470. break;
  2471. }
  2472. }
  2473. return be_id;
  2474. }
  2475. /*
  2476. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2477. * correct AFE calibration information by comparing the header information.
  2478. */
  2479. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2480. {
  2481. int acdb_id = -EINVAL;
  2482. int i = 0;
  2483. int session;
  2484. int port_type = afe_get_port_type(port_id);
  2485. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2486. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2487. __func__, port_id, be_id, port_type);
  2488. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2489. session = SESSION_TYPE_TX;
  2490. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2491. session = SESSION_TYPE_RX;
  2492. } else {
  2493. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2494. acdb_id = -EINVAL;
  2495. goto exit;
  2496. }
  2497. if (be_id < 0) {
  2498. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2499. goto exit;
  2500. }
  2501. mutex_lock(&routing_lock);
  2502. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2503. MSM_FRONTEND_DAI_MAX);
  2504. if (i < MSM_FRONTEND_DAI_MAX)
  2505. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2506. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2507. __func__, i, session, be_id, acdb_id);
  2508. mutex_unlock(&routing_lock);
  2509. exit:
  2510. return acdb_id;
  2511. }
  2512. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2513. struct snd_ctl_elem_value *ucontrol)
  2514. {
  2515. ucontrol->value.integer.value[0] = fm_switch_enable;
  2516. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2517. ucontrol->value.integer.value[0]);
  2518. return 0;
  2519. }
  2520. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2521. struct snd_ctl_elem_value *ucontrol)
  2522. {
  2523. struct snd_soc_dapm_widget *widget =
  2524. snd_soc_dapm_kcontrol_widget(kcontrol);
  2525. struct snd_soc_dapm_update *update = NULL;
  2526. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2527. ucontrol->value.integer.value[0]);
  2528. if (ucontrol->value.integer.value[0])
  2529. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2530. update);
  2531. else
  2532. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2533. update);
  2534. fm_switch_enable = ucontrol->value.integer.value[0];
  2535. return 1;
  2536. }
  2537. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2538. struct snd_ctl_elem_value *ucontrol)
  2539. {
  2540. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2541. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2542. ucontrol->value.integer.value[0]);
  2543. return 0;
  2544. }
  2545. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2546. struct snd_ctl_elem_value *ucontrol)
  2547. {
  2548. struct snd_soc_dapm_widget *widget =
  2549. snd_soc_dapm_kcontrol_widget(kcontrol);
  2550. struct snd_soc_dapm_update *update = NULL;
  2551. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2552. ucontrol->value.integer.value[0]);
  2553. if (ucontrol->value.integer.value[0])
  2554. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2555. 1, update);
  2556. else
  2557. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2558. 0, update);
  2559. hfp_switch_enable = ucontrol->value.integer.value[0];
  2560. return 1;
  2561. }
  2562. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2563. struct snd_ctl_elem_value *ucontrol)
  2564. {
  2565. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2566. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2567. ucontrol->value.integer.value[0]);
  2568. return 0;
  2569. }
  2570. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2571. struct snd_ctl_elem_value *ucontrol)
  2572. {
  2573. struct snd_soc_dapm_widget *widget =
  2574. snd_soc_dapm_kcontrol_widget(kcontrol);
  2575. struct snd_soc_dapm_update *update = NULL;
  2576. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2577. ucontrol->value.integer.value[0]);
  2578. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2579. if (a2dp_switch_enable)
  2580. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2581. 1, update);
  2582. else
  2583. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2584. 0, update);
  2585. return 1;
  2586. }
  2587. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2588. struct snd_ctl_elem_value *ucontrol)
  2589. {
  2590. ucontrol->value.integer.value[0] = sco_switch_enable;
  2591. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2592. ucontrol->value.integer.value[0]);
  2593. return 0;
  2594. }
  2595. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2596. struct snd_ctl_elem_value *ucontrol)
  2597. {
  2598. struct snd_soc_dapm_widget *widget =
  2599. snd_soc_dapm_kcontrol_widget(kcontrol);
  2600. struct snd_soc_dapm_update *update = NULL;
  2601. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2602. ucontrol->value.integer.value[0]);
  2603. sco_switch_enable = ucontrol->value.integer.value[0];
  2604. if (sco_switch_enable)
  2605. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2606. 1, update);
  2607. else
  2608. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2609. 0, update);
  2610. return 1;
  2611. }
  2612. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2613. struct snd_ctl_elem_value *ucontrol)
  2614. {
  2615. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2616. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2617. ucontrol->value.integer.value[0]);
  2618. return 0;
  2619. }
  2620. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2621. struct snd_ctl_elem_value *ucontrol)
  2622. {
  2623. struct snd_soc_dapm_widget *widget =
  2624. snd_soc_dapm_kcontrol_widget(kcontrol);
  2625. struct snd_soc_dapm_update *update = NULL;
  2626. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2627. ucontrol->value.integer.value[0]);
  2628. if (ucontrol->value.integer.value[0])
  2629. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2630. update);
  2631. else
  2632. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2633. update);
  2634. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2635. return 1;
  2636. }
  2637. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2638. struct snd_ctl_elem_value *ucontrol)
  2639. {
  2640. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2641. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2642. ucontrol->value.integer.value[0]);
  2643. return 0;
  2644. }
  2645. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2646. struct snd_ctl_elem_value *ucontrol)
  2647. {
  2648. struct snd_soc_dapm_widget *widget =
  2649. snd_soc_dapm_kcontrol_widget(kcontrol);
  2650. struct snd_soc_dapm_update *update = NULL;
  2651. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2652. ucontrol->value.integer.value[0]);
  2653. if (ucontrol->value.integer.value[0])
  2654. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2655. update);
  2656. else
  2657. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2658. update);
  2659. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2660. return 1;
  2661. }
  2662. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2663. struct snd_ctl_elem_value *ucontrol)
  2664. {
  2665. ucontrol->value.integer.value[0] = usb_switch_enable;
  2666. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2667. ucontrol->value.integer.value[0]);
  2668. return 0;
  2669. }
  2670. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2671. struct snd_ctl_elem_value *ucontrol)
  2672. {
  2673. struct snd_soc_dapm_widget *widget =
  2674. snd_soc_dapm_kcontrol_widget(kcontrol);
  2675. struct snd_soc_dapm_update *update = NULL;
  2676. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2677. ucontrol->value.integer.value[0]);
  2678. if (ucontrol->value.integer.value[0])
  2679. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2680. 1, update);
  2681. else
  2682. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2683. 0, update);
  2684. usb_switch_enable = ucontrol->value.integer.value[0];
  2685. return 1;
  2686. }
  2687. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2688. struct snd_ctl_elem_value *ucontrol)
  2689. {
  2690. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2691. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2692. ucontrol->value.integer.value[0]);
  2693. return 0;
  2694. }
  2695. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2696. struct snd_ctl_elem_value *ucontrol)
  2697. {
  2698. struct snd_soc_dapm_widget *widget =
  2699. snd_soc_dapm_kcontrol_widget(kcontrol);
  2700. struct snd_soc_dapm_update *update = NULL;
  2701. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2702. ucontrol->value.integer.value[0]);
  2703. if (ucontrol->value.integer.value[0])
  2704. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2705. update);
  2706. else
  2707. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2708. update);
  2709. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2710. return 1;
  2711. }
  2712. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2713. struct snd_ctl_elem_value *ucontrol)
  2714. {
  2715. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2716. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2717. ucontrol->value.integer.value[0]);
  2718. return 0;
  2719. }
  2720. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2721. struct snd_ctl_elem_value *ucontrol)
  2722. {
  2723. struct snd_soc_dapm_widget *widget =
  2724. snd_soc_dapm_kcontrol_widget(kcontrol);
  2725. struct snd_soc_dapm_update *update = NULL;
  2726. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2727. ucontrol->value.integer.value[0]);
  2728. if (ucontrol->value.integer.value[0])
  2729. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2730. update);
  2731. else
  2732. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2733. update);
  2734. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2735. return 1;
  2736. }
  2737. static int msm_routing_get_tert_mi2s_switch_mixer(
  2738. struct snd_kcontrol *kcontrol,
  2739. struct snd_ctl_elem_value *ucontrol)
  2740. {
  2741. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2742. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2743. ucontrol->value.integer.value[0]);
  2744. return 0;
  2745. }
  2746. static int msm_routing_put_tert_mi2s_switch_mixer(
  2747. struct snd_kcontrol *kcontrol,
  2748. struct snd_ctl_elem_value *ucontrol)
  2749. {
  2750. struct snd_soc_dapm_widget *widget =
  2751. snd_soc_dapm_kcontrol_widget(kcontrol);
  2752. struct snd_soc_dapm_update *update = NULL;
  2753. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2754. ucontrol->value.integer.value[0]);
  2755. if (ucontrol->value.integer.value[0])
  2756. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2757. update);
  2758. else
  2759. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2760. update);
  2761. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2762. return 1;
  2763. }
  2764. static int msm_routing_get_quat_mi2s_switch_mixer(
  2765. struct snd_kcontrol *kcontrol,
  2766. struct snd_ctl_elem_value *ucontrol)
  2767. {
  2768. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2769. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2770. ucontrol->value.integer.value[0]);
  2771. return 0;
  2772. }
  2773. static int msm_routing_put_quat_mi2s_switch_mixer(
  2774. struct snd_kcontrol *kcontrol,
  2775. struct snd_ctl_elem_value *ucontrol)
  2776. {
  2777. struct snd_soc_dapm_widget *widget =
  2778. snd_soc_dapm_kcontrol_widget(kcontrol);
  2779. struct snd_soc_dapm_update *update = NULL;
  2780. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2781. ucontrol->value.integer.value[0]);
  2782. if (ucontrol->value.integer.value[0])
  2783. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2784. update);
  2785. else
  2786. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2787. update);
  2788. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2789. return 1;
  2790. }
  2791. static int msm_routing_get_quin_mi2s_switch_mixer(
  2792. struct snd_kcontrol *kcontrol,
  2793. struct snd_ctl_elem_value *ucontrol)
  2794. {
  2795. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2796. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2797. ucontrol->value.integer.value[0]);
  2798. return 0;
  2799. }
  2800. static int msm_routing_put_quin_mi2s_switch_mixer(
  2801. struct snd_kcontrol *kcontrol,
  2802. struct snd_ctl_elem_value *ucontrol)
  2803. {
  2804. struct snd_soc_dapm_widget *widget =
  2805. snd_soc_dapm_kcontrol_widget(kcontrol);
  2806. struct snd_soc_dapm_update *update = NULL;
  2807. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2808. ucontrol->value.integer.value[0]);
  2809. if (ucontrol->value.integer.value[0])
  2810. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2811. update);
  2812. else
  2813. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2814. update);
  2815. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2816. return 1;
  2817. }
  2818. static int msm_routing_get_sen_mi2s_switch_mixer(
  2819. struct snd_kcontrol *kcontrol,
  2820. struct snd_ctl_elem_value *ucontrol)
  2821. {
  2822. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2823. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2824. ucontrol->value.integer.value[0]);
  2825. return 0;
  2826. }
  2827. static int msm_routing_put_sen_mi2s_switch_mixer(
  2828. struct snd_kcontrol *kcontrol,
  2829. struct snd_ctl_elem_value *ucontrol)
  2830. {
  2831. struct snd_soc_dapm_widget *widget =
  2832. snd_soc_dapm_kcontrol_widget(kcontrol);
  2833. struct snd_soc_dapm_update *update = NULL;
  2834. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2835. ucontrol->value.integer.value[0]);
  2836. if (ucontrol->value.integer.value[0])
  2837. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2838. update);
  2839. else
  2840. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2841. update);
  2842. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2843. return 1;
  2844. }
  2845. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2846. struct snd_ctl_elem_value *ucontrol)
  2847. {
  2848. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2849. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2850. ucontrol->value.integer.value[0]);
  2851. return 0;
  2852. }
  2853. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2854. struct snd_ctl_elem_value *ucontrol)
  2855. {
  2856. struct snd_soc_dapm_widget *widget =
  2857. snd_soc_dapm_kcontrol_widget(kcontrol);
  2858. struct snd_soc_dapm_update *update = NULL;
  2859. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2860. ucontrol->value.integer.value[0]);
  2861. if (ucontrol->value.integer.value[0])
  2862. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2863. update);
  2864. else
  2865. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2866. update);
  2867. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2868. return 1;
  2869. }
  2870. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2871. u8 *fe_idx)
  2872. {
  2873. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2874. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2875. fe_id = MSM_FRONTEND_DAI_LSM1;
  2876. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2877. fe_id = MSM_FRONTEND_DAI_LSM2;
  2878. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2879. fe_id = MSM_FRONTEND_DAI_LSM3;
  2880. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2881. fe_id = MSM_FRONTEND_DAI_LSM4;
  2882. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2883. fe_id = MSM_FRONTEND_DAI_LSM5;
  2884. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2885. fe_id = MSM_FRONTEND_DAI_LSM6;
  2886. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2887. fe_id = MSM_FRONTEND_DAI_LSM7;
  2888. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2889. fe_id = MSM_FRONTEND_DAI_LSM8;
  2890. } else {
  2891. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2892. kcontrol->id.name);
  2893. return;
  2894. }
  2895. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2896. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2897. }
  2898. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2899. struct snd_ctl_elem_value *ucontrol)
  2900. {
  2901. u8 fe_idx = 0;
  2902. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2903. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2904. return 0;
  2905. }
  2906. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2907. struct snd_ctl_elem_value *ucontrol)
  2908. {
  2909. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2910. int mux = ucontrol->value.enumerated.item[0];
  2911. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2912. u8 fe_idx = 0;
  2913. if (mux >= e->items) {
  2914. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2915. return -EINVAL;
  2916. }
  2917. pr_debug("%s: LSM enable %ld\n", __func__,
  2918. ucontrol->value.integer.value[0]);
  2919. switch (ucontrol->value.integer.value[0]) {
  2920. case 1:
  2921. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2922. break;
  2923. case 2:
  2924. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2925. break;
  2926. case 3:
  2927. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2928. break;
  2929. case 4:
  2930. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2931. break;
  2932. case 5:
  2933. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2934. break;
  2935. case 6:
  2936. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2937. break;
  2938. case 7:
  2939. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2940. break;
  2941. case 8:
  2942. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2943. break;
  2944. case 9:
  2945. lsm_port = ADM_LSM_PORT_ID;
  2946. break;
  2947. case 10:
  2948. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2949. break;
  2950. case 11:
  2951. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2952. break;
  2953. case 12:
  2954. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2955. break;
  2956. case 13:
  2957. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2958. break;
  2959. case 14:
  2960. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2961. break;
  2962. case 15:
  2963. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2964. break;
  2965. case 16:
  2966. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2967. break;
  2968. default:
  2969. pr_err("Default lsm port");
  2970. break;
  2971. }
  2972. set_lsm_port(lsm_port);
  2973. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2974. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2975. return 0;
  2976. }
  2977. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2978. struct snd_ctl_elem_value *ucontrol)
  2979. {
  2980. int i;
  2981. u16 port_id;
  2982. enum afe_mad_type mad_type;
  2983. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2984. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2985. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2986. strlen(lsm_port_text[i])))
  2987. break;
  2988. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2989. pr_warn("%s: Invalid id name %s\n", __func__,
  2990. kcontrol->id.name);
  2991. return -EINVAL;
  2992. }
  2993. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2994. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2995. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2996. strlen(lsm_port_text[7])))
  2997. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2998. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2999. strlen(lsm_port_text[8])))
  3000. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3001. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  3002. strlen(lsm_port_text[10])))
  3003. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3004. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  3005. strlen(lsm_port_text[14])))
  3006. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  3007. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  3008. strlen(lsm_port_text[15])))
  3009. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  3010. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3011. strlen(lsm_port_text[16])))
  3012. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3013. mad_type = afe_port_get_mad_type(port_id);
  3014. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3015. mad_type);
  3016. switch (mad_type) {
  3017. case MAD_HW_NONE:
  3018. ucontrol->value.integer.value[0] = MADNONE;
  3019. break;
  3020. case MAD_HW_AUDIO:
  3021. ucontrol->value.integer.value[0] = MADAUDIO;
  3022. break;
  3023. case MAD_HW_BEACON:
  3024. ucontrol->value.integer.value[0] = MADBEACON;
  3025. break;
  3026. case MAD_HW_ULTRASOUND:
  3027. ucontrol->value.integer.value[0] = MADULTRASOUND;
  3028. break;
  3029. case MAD_SW_AUDIO:
  3030. ucontrol->value.integer.value[0] = MADSWAUDIO;
  3031. break;
  3032. default:
  3033. pr_warn("%s: Unknown\n", __func__);
  3034. return -EINVAL;
  3035. }
  3036. return 0;
  3037. }
  3038. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  3039. struct snd_ctl_elem_value *ucontrol)
  3040. {
  3041. int i;
  3042. u16 port_id;
  3043. enum afe_mad_type mad_type;
  3044. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  3045. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  3046. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  3047. strlen(lsm_port_text[i])))
  3048. break;
  3049. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  3050. pr_warn("%s: Invalid id name %s\n", __func__,
  3051. kcontrol->id.name);
  3052. return -EINVAL;
  3053. }
  3054. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  3055. switch (ucontrol->value.integer.value[0]) {
  3056. case MADNONE:
  3057. mad_type = MAD_HW_NONE;
  3058. break;
  3059. case MADAUDIO:
  3060. mad_type = MAD_HW_AUDIO;
  3061. break;
  3062. case MADBEACON:
  3063. mad_type = MAD_HW_BEACON;
  3064. break;
  3065. case MADULTRASOUND:
  3066. mad_type = MAD_HW_ULTRASOUND;
  3067. break;
  3068. case MADSWAUDIO:
  3069. mad_type = MAD_SW_AUDIO;
  3070. break;
  3071. default:
  3072. pr_warn("%s: Unknown\n", __func__);
  3073. return -EINVAL;
  3074. }
  3075. /*Check for Tertiary/Quaternary/INT3 TX port*/
  3076. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  3077. strlen(lsm_port_text[7])))
  3078. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3079. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  3080. strlen(lsm_port_text[8])))
  3081. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3082. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  3083. strlen(lsm_port_text[10])))
  3084. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3085. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  3086. strlen(lsm_port_text[14])))
  3087. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  3088. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  3089. strlen(lsm_port_text[15])))
  3090. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  3091. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3092. strlen(lsm_port_text[16])))
  3093. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3094. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3095. mad_type);
  3096. return afe_port_set_mad_type(port_id, mad_type);
  3097. }
  3098. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  3099. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  3100. adm_override_chs_text);
  3101. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  3102. {
  3103. int backend_id;
  3104. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  3105. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  3106. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  3107. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  3108. } else {
  3109. pr_err("%s: unsupported backend id: %s",
  3110. __func__, kcontrol->id.name);
  3111. return -EINVAL;
  3112. }
  3113. return backend_id;
  3114. }
  3115. static int msm_routing_adm_channel_config_get(
  3116. struct snd_kcontrol *kcontrol,
  3117. struct snd_ctl_elem_value *ucontrol)
  3118. {
  3119. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3120. if (backend_id >= 0) {
  3121. mutex_lock(&routing_lock);
  3122. ucontrol->value.integer.value[0] =
  3123. msm_bedais[backend_id].adm_override_ch;
  3124. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  3125. ucontrol->value.integer.value[0], backend_id);
  3126. mutex_unlock(&routing_lock);
  3127. }
  3128. return 0;
  3129. }
  3130. static int msm_routing_adm_channel_config_put(
  3131. struct snd_kcontrol *kcontrol,
  3132. struct snd_ctl_elem_value *ucontrol)
  3133. {
  3134. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3135. if (backend_id >= 0) {
  3136. mutex_lock(&routing_lock);
  3137. msm_bedais[backend_id].adm_override_ch =
  3138. ucontrol->value.integer.value[0];
  3139. pr_debug("%s:updating BE :%d adm channels: %d\n",
  3140. __func__, backend_id,
  3141. msm_bedais[backend_id].adm_override_ch);
  3142. mutex_unlock(&routing_lock);
  3143. }
  3144. return 0;
  3145. }
  3146. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  3147. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  3148. msm_routing_adm_channel_config_get,
  3149. msm_routing_adm_channel_config_put),
  3150. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  3151. msm_routing_adm_channel_config_get,
  3152. msm_routing_adm_channel_config_put),
  3153. };
  3154. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  3155. struct snd_ctl_elem_value *ucontrol)
  3156. {
  3157. mutex_lock(&routing_lock);
  3158. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  3159. mutex_unlock(&routing_lock);
  3160. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3161. ucontrol->value.integer.value[0]);
  3162. return 0;
  3163. };
  3164. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  3165. struct snd_ctl_elem_value *ucontrol)
  3166. {
  3167. struct aanc_data aanc_info;
  3168. mutex_lock(&routing_lock);
  3169. memset(&aanc_info, 0x00, sizeof(aanc_info));
  3170. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3171. ucontrol->value.integer.value[0]);
  3172. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  3173. if (ucontrol->value.integer.value[0] == 0) {
  3174. aanc_info.aanc_active = false;
  3175. aanc_info.aanc_tx_port = 0;
  3176. aanc_info.aanc_rx_port = 0;
  3177. } else {
  3178. aanc_info.aanc_active = true;
  3179. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  3180. aanc_info.aanc_tx_port =
  3181. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  3182. }
  3183. afe_set_aanc_info(&aanc_info);
  3184. mutex_unlock(&routing_lock);
  3185. return 0;
  3186. };
  3187. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3188. struct snd_ctl_elem_value *ucontrol)
  3189. {
  3190. int idx = 0, shift = 0;
  3191. struct soc_mixer_control *mc =
  3192. (struct soc_mixer_control *)kcontrol->private_value;
  3193. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3194. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3195. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3196. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3197. return -EINVAL;
  3198. }
  3199. if (test_bit(shift,
  3200. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3201. ucontrol->value.integer.value[0] = 1;
  3202. else
  3203. ucontrol->value.integer.value[0] = 0;
  3204. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3205. ucontrol->value.integer.value[0]);
  3206. return 0;
  3207. }
  3208. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3209. struct snd_ctl_elem_value *ucontrol)
  3210. {
  3211. int idx = 0, shift = 0;
  3212. struct soc_mixer_control *mc =
  3213. (struct soc_mixer_control *)kcontrol->private_value;
  3214. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3215. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3216. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3217. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3218. return -EINVAL;
  3219. }
  3220. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3221. __func__, mc->shift, mc->rshift,
  3222. ucontrol->value.integer.value[0], idx, shift);
  3223. if (ucontrol->value.integer.value[0]) {
  3224. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3225. msm_bedais[mc->rshift].port_id);
  3226. set_bit(shift,
  3227. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3228. } else {
  3229. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3230. msm_bedais[mc->rshift].port_id);
  3231. clear_bit(shift,
  3232. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3233. }
  3234. return 1;
  3235. }
  3236. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3237. struct snd_ctl_elem_value *ucontrol)
  3238. {
  3239. u16 fe_id = 0;
  3240. fe_id = ((struct soc_mixer_control *)
  3241. kcontrol->private_value)->shift;
  3242. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3243. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3244. return -EINVAL;
  3245. }
  3246. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3247. return 0;
  3248. }
  3249. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3250. struct snd_ctl_elem_value *ucontrol)
  3251. {
  3252. u16 fe_id = 0;
  3253. fe_id = ((struct soc_mixer_control *)
  3254. kcontrol->private_value)->shift;
  3255. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3256. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3257. return -EINVAL;
  3258. }
  3259. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3260. return 1;
  3261. }
  3262. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3263. struct snd_ctl_elem_value *ucontrol)
  3264. {
  3265. u16 fe_id = 0;
  3266. fe_id = ((struct soc_multi_mixer_control *)
  3267. kcontrol->private_value)->shift;
  3268. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3269. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3270. return -EINVAL;
  3271. }
  3272. ucontrol->value.integer.value[0] =
  3273. channel_mixer[fe_id].output_channel;
  3274. return 0;
  3275. }
  3276. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3277. struct snd_ctl_elem_value *ucontrol)
  3278. {
  3279. u16 fe_id = 0;
  3280. fe_id = ((struct soc_multi_mixer_control *)
  3281. kcontrol->private_value)->shift;
  3282. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3283. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3284. return -EINVAL;
  3285. }
  3286. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3287. fe_id,
  3288. (unsigned int)(ucontrol->value.integer.value[0]));
  3289. channel_mixer[fe_id].output_channel =
  3290. (unsigned int)(ucontrol->value.integer.value[0]);
  3291. return 1;
  3292. }
  3293. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3294. /* If new backend is added, need update this array */
  3295. static const char *const be_name[] = {
  3296. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3297. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3298. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3299. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3300. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3301. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3302. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3303. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3304. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3305. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3306. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3307. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3308. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3309. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3310. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3311. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3312. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3313. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3314. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3315. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3316. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3317. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3318. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3319. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3320. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3321. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3322. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3323. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3324. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3325. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3326. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3327. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3328. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3329. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3330. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3331. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3332. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3333. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3334. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3335. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3336. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3337. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3338. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3339. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3340. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3341. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3342. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3343. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3344. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3345. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3346. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3347. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3348. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3349. "SEC_META_MI2S_RX", "PROXY_RX", "PROXY_TX", "HDMI_RX_MS"
  3350. };
  3351. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3352. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3353. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3354. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3355. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3356. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3357. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3358. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3359. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3360. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3361. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3362. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3363. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3364. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3365. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3366. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3367. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3368. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3369. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3370. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3371. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3372. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3373. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3374. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3375. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3376. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3377. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3378. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3379. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3380. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3381. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3382. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3383. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3384. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3385. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3386. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3387. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3388. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3389. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3390. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3391. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3392. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3393. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3394. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3395. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3396. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3397. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3398. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3399. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3400. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3401. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3402. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3403. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3404. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3405. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3406. unsigned int channels,
  3407. unsigned int items, const char *const names[])
  3408. {
  3409. if (uinfo->value.enumerated.item >= items)
  3410. uinfo->value.enumerated.item = items - 1;
  3411. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3412. sizeof(uinfo->value.enumerated.name),
  3413. "ALSA: too long item name '%s'\n",
  3414. names[uinfo->value.enumerated.item]);
  3415. strlcpy(uinfo->value.enumerated.name,
  3416. names[uinfo->value.enumerated.item],
  3417. sizeof(uinfo->value.enumerated.name));
  3418. return 0;
  3419. }
  3420. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3421. struct snd_ctl_elem_info *uinfo)
  3422. {
  3423. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3424. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3425. uinfo->count = 1;
  3426. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3427. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3428. return 0;
  3429. }
  3430. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3431. struct snd_ctl_elem_value *ucontrol)
  3432. {
  3433. u16 fe_id = 0;
  3434. fe_id = ((struct soc_enum *)
  3435. kcontrol->private_value)->shift_l;
  3436. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3437. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3438. return -EINVAL;
  3439. }
  3440. pr_debug("%s: FE %d %s\n", __func__,
  3441. fe_id,
  3442. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3443. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3444. return 0;
  3445. }
  3446. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3447. struct snd_ctl_elem_value *ucontrol)
  3448. {
  3449. u16 fe_id = 0;
  3450. fe_id = ((struct soc_enum *)
  3451. kcontrol->private_value)->shift_l;
  3452. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3453. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3454. return -EINVAL;
  3455. }
  3456. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3457. pr_debug("%s: %s FE %d\n", __func__,
  3458. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3459. fe_id);
  3460. return 0;
  3461. }
  3462. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3463. struct snd_ctl_elem_info *uinfo)
  3464. {
  3465. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3466. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3467. uinfo->count = 1;
  3468. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3469. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3470. return 0;
  3471. }
  3472. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3473. struct snd_ctl_elem_value *ucontrol)
  3474. {
  3475. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3476. u16 fe_id = 0, in_ch = 0;
  3477. fe_id = e->shift_l;
  3478. in_ch = e->shift_r;
  3479. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3480. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3481. return -EINVAL;
  3482. }
  3483. if (in_ch >= ADM_MAX_CHANNELS) {
  3484. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3485. return -EINVAL;
  3486. }
  3487. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3488. return 1;
  3489. }
  3490. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3491. struct snd_ctl_elem_value *ucontrol)
  3492. {
  3493. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3494. u16 fe_id = 0, in_ch = 0;
  3495. fe_id = e->shift_l;
  3496. in_ch = e->shift_r;
  3497. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3498. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3499. return -EINVAL;
  3500. }
  3501. if (in_ch >= ADM_MAX_CHANNELS) {
  3502. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3503. return -EINVAL;
  3504. }
  3505. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3506. return 1;
  3507. }
  3508. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3509. struct snd_ctl_elem_info *uinfo)
  3510. {
  3511. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3512. uinfo->count = ADM_MAX_CHANNELS;
  3513. uinfo->value.integer.min = 0;
  3514. uinfo->value.integer.max = WEIGHT_0_DB;
  3515. return 0;
  3516. }
  3517. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3518. struct snd_ctl_elem_value *ucontrol)
  3519. {
  3520. u16 fe_id = 0, out_ch = 0;
  3521. int i, weight;
  3522. fe_id = ((struct soc_multi_mixer_control *)
  3523. kcontrol->private_value)->shift;
  3524. out_ch = ((struct soc_multi_mixer_control *)
  3525. kcontrol->private_value)->rshift;
  3526. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3527. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3528. return -EINVAL;
  3529. }
  3530. if (out_ch >= ADM_MAX_CHANNELS) {
  3531. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3532. return -EINVAL;
  3533. }
  3534. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3535. __func__, fe_id,
  3536. ucontrol->value.integer.value[0],
  3537. ucontrol->value.integer.value[1],
  3538. ucontrol->value.integer.value[2],
  3539. ucontrol->value.integer.value[3],
  3540. ucontrol->value.integer.value[4],
  3541. ucontrol->value.integer.value[5],
  3542. ucontrol->value.integer.value[6],
  3543. ucontrol->value.integer.value[7]);
  3544. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3545. weight = ucontrol->value.integer.value[i];
  3546. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3547. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3548. __func__, fe_id, out_ch, i,
  3549. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3550. }
  3551. return 0;
  3552. }
  3553. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3554. struct snd_ctl_elem_value *ucontrol)
  3555. {
  3556. u16 fe_id = 0, out_ch = 0;
  3557. int i;
  3558. fe_id = ((struct soc_multi_mixer_control *)
  3559. kcontrol->private_value)->shift;
  3560. out_ch = ((struct soc_multi_mixer_control *)
  3561. kcontrol->private_value)->rshift;
  3562. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3563. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3564. return -EINVAL;
  3565. }
  3566. if (out_ch >= ADM_MAX_CHANNELS) {
  3567. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3568. return -EINVAL;
  3569. }
  3570. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3571. ucontrol->value.integer.value[i] =
  3572. channel_mixer[fe_id].channel_weight[out_ch][i];
  3573. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3574. __func__, fe_id,
  3575. ucontrol->value.integer.value[0],
  3576. ucontrol->value.integer.value[1],
  3577. ucontrol->value.integer.value[2],
  3578. ucontrol->value.integer.value[3],
  3579. ucontrol->value.integer.value[4],
  3580. ucontrol->value.integer.value[5],
  3581. ucontrol->value.integer.value[6],
  3582. ucontrol->value.integer.value[7]);
  3583. return 0;
  3584. }
  3585. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3586. struct snd_ctl_elem_info *uinfo)
  3587. {
  3588. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3589. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3590. /* Valid channel map value ranges from 1 to 64 */
  3591. uinfo->value.integer.min = 0;
  3592. uinfo->value.integer.max = 64;
  3593. return 0;
  3594. }
  3595. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3596. struct snd_ctl_elem_value *ucontrol)
  3597. {
  3598. u16 fe_id = 0;
  3599. int i, ch_map;
  3600. fe_id = ((struct soc_multi_mixer_control *)
  3601. kcontrol->private_value)->shift;
  3602. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3603. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3604. return -EINVAL;
  3605. }
  3606. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3607. ch_map = ucontrol->value.integer.value[i];
  3608. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3609. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3610. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3611. }
  3612. /* Make override_out_ch_map false if ch map is reset */
  3613. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3614. channel_mixer[fe_id].override_out_ch_map = false;
  3615. else
  3616. channel_mixer[fe_id].override_out_ch_map = true;
  3617. return 0;
  3618. }
  3619. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3620. struct snd_ctl_elem_value *ucontrol)
  3621. {
  3622. u16 fe_id = 0;
  3623. int i;
  3624. fe_id = ((struct soc_multi_mixer_control *)
  3625. kcontrol->private_value)->shift;
  3626. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3627. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3628. return -EINVAL;
  3629. }
  3630. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3631. ucontrol->value.integer.value[i] =
  3632. channel_mixer[fe_id].out_ch_map[i];
  3633. return 0;
  3634. }
  3635. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3636. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3637. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3638. msm_pcm_get_channel_rule_index,
  3639. msm_pcm_put_channel_rule_index),
  3640. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3641. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3642. msm_pcm_get_channel_rule_index,
  3643. msm_pcm_put_channel_rule_index),
  3644. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3645. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3646. msm_pcm_get_channel_rule_index,
  3647. msm_pcm_put_channel_rule_index),
  3648. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3649. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3650. msm_pcm_get_channel_rule_index,
  3651. msm_pcm_put_channel_rule_index),
  3652. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3653. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3654. msm_pcm_get_channel_rule_index,
  3655. msm_pcm_put_channel_rule_index),
  3656. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3657. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3658. msm_pcm_get_channel_rule_index,
  3659. msm_pcm_put_channel_rule_index),
  3660. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3661. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3662. msm_pcm_get_channel_rule_index,
  3663. msm_pcm_put_channel_rule_index),
  3664. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3665. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3666. msm_pcm_get_channel_rule_index,
  3667. msm_pcm_put_channel_rule_index),
  3668. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3669. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3670. msm_pcm_get_channel_rule_index,
  3671. msm_pcm_put_channel_rule_index),
  3672. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3673. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3674. msm_pcm_get_channel_rule_index,
  3675. msm_pcm_put_channel_rule_index),
  3676. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3677. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3678. msm_pcm_get_channel_rule_index,
  3679. msm_pcm_put_channel_rule_index),
  3680. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3681. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3682. msm_pcm_get_out_chs,
  3683. msm_pcm_put_out_chs),
  3684. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3685. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3686. msm_pcm_get_out_chs,
  3687. msm_pcm_put_out_chs),
  3688. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3689. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3690. msm_pcm_get_out_chs,
  3691. msm_pcm_put_out_chs),
  3692. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3693. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3694. msm_pcm_get_out_chs,
  3695. msm_pcm_put_out_chs),
  3696. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3697. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3698. msm_pcm_get_out_chs,
  3699. msm_pcm_put_out_chs),
  3700. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3701. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3702. msm_pcm_get_out_chs,
  3703. msm_pcm_put_out_chs),
  3704. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3705. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3706. msm_pcm_get_out_chs,
  3707. msm_pcm_put_out_chs),
  3708. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3709. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3710. msm_pcm_get_out_chs,
  3711. msm_pcm_put_out_chs),
  3712. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3713. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3714. msm_pcm_get_out_chs,
  3715. msm_pcm_put_out_chs),
  3716. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3717. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3718. msm_pcm_get_out_chs,
  3719. msm_pcm_put_out_chs),
  3720. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3721. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3722. msm_pcm_get_out_chs,
  3723. msm_pcm_put_out_chs),
  3724. {
  3725. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3726. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3727. .name = "MultiMedia1 Channel Mixer",
  3728. .info = msm_pcm_channel_mixer_info,
  3729. .get = msm_pcm_channel_mixer_get,
  3730. .put = msm_pcm_channel_mixer_put,
  3731. .private_value = (unsigned long)&(mm1_channel_mux)
  3732. },
  3733. {
  3734. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3735. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3736. .name = "MultiMedia2 Channel Mixer",
  3737. .info = msm_pcm_channel_mixer_info,
  3738. .get = msm_pcm_channel_mixer_get,
  3739. .put = msm_pcm_channel_mixer_put,
  3740. .private_value = (unsigned long)&(mm2_channel_mux)
  3741. },
  3742. {
  3743. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3744. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3745. .name = "MultiMedia3 Channel Mixer",
  3746. .info = msm_pcm_channel_mixer_info,
  3747. .get = msm_pcm_channel_mixer_get,
  3748. .put = msm_pcm_channel_mixer_put,
  3749. .private_value = (unsigned long)&(mm3_channel_mux)
  3750. },
  3751. {
  3752. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3753. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3754. .name = "MultiMedia4 Channel Mixer",
  3755. .info = msm_pcm_channel_mixer_info,
  3756. .get = msm_pcm_channel_mixer_get,
  3757. .put = msm_pcm_channel_mixer_put,
  3758. .private_value = (unsigned long)&(mm4_channel_mux)
  3759. },
  3760. {
  3761. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3762. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3763. .name = "MultiMedia18 Channel Mixer",
  3764. .info = msm_pcm_channel_mixer_info,
  3765. .get = msm_pcm_channel_mixer_get,
  3766. .put = msm_pcm_channel_mixer_put,
  3767. .private_value = (unsigned long)&(mm18_channel_mux)
  3768. },
  3769. {
  3770. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3771. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3772. .name = "MultiMedia19 Channel Mixer",
  3773. .info = msm_pcm_channel_mixer_info,
  3774. .get = msm_pcm_channel_mixer_get,
  3775. .put = msm_pcm_channel_mixer_put,
  3776. .private_value = (unsigned long)&(mm19_channel_mux)
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia28 Channel Mixer",
  3782. .info = msm_pcm_channel_mixer_info,
  3783. .get = msm_pcm_channel_mixer_get,
  3784. .put = msm_pcm_channel_mixer_put,
  3785. .private_value = (unsigned long)&(mm28_channel_mux)
  3786. },
  3787. {
  3788. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3789. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3790. .name = "MultiMedia29 Channel Mixer",
  3791. .info = msm_pcm_channel_mixer_info,
  3792. .get = msm_pcm_channel_mixer_get,
  3793. .put = msm_pcm_channel_mixer_put,
  3794. .private_value = (unsigned long)&(mm29_channel_mux)
  3795. },
  3796. {
  3797. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3798. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3799. .name = "MultiMedia30 Channel Mixer",
  3800. .info = msm_pcm_channel_mixer_info,
  3801. .get = msm_pcm_channel_mixer_get,
  3802. .put = msm_pcm_channel_mixer_put,
  3803. .private_value = (unsigned long)&(mm30_channel_mux)
  3804. },
  3805. {
  3806. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3807. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3808. .name = "MultiMedia1 Output Channel1",
  3809. .info = msm_pcm_channel_weight_info,
  3810. .get = msm_pcm_channel_weight_get,
  3811. .put = msm_pcm_channel_weight_put,
  3812. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3813. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3814. },
  3815. {
  3816. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3817. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3818. .name = "MultiMedia1 Output Channel2",
  3819. .info = msm_pcm_channel_weight_info,
  3820. .get = msm_pcm_channel_weight_get,
  3821. .put = msm_pcm_channel_weight_put,
  3822. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3823. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3824. },
  3825. {
  3826. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3827. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3828. .name = "MultiMedia1 Output Channel3",
  3829. .info = msm_pcm_channel_weight_info,
  3830. .get = msm_pcm_channel_weight_get,
  3831. .put = msm_pcm_channel_weight_put,
  3832. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3833. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3834. },
  3835. {
  3836. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3837. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3838. .name = "MultiMedia1 Output Channel4",
  3839. .info = msm_pcm_channel_weight_info,
  3840. .get = msm_pcm_channel_weight_get,
  3841. .put = msm_pcm_channel_weight_put,
  3842. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3843. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3844. },
  3845. {
  3846. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3847. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3848. .name = "MultiMedia1 Output Channel5",
  3849. .info = msm_pcm_channel_weight_info,
  3850. .get = msm_pcm_channel_weight_get,
  3851. .put = msm_pcm_channel_weight_put,
  3852. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3853. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3854. },
  3855. {
  3856. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3857. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3858. .name = "MultiMedia1 Output Channel6",
  3859. .info = msm_pcm_channel_weight_info,
  3860. .get = msm_pcm_channel_weight_get,
  3861. .put = msm_pcm_channel_weight_put,
  3862. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3863. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3864. },
  3865. {
  3866. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3867. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3868. .name = "MultiMedia1 Output Channel7",
  3869. .info = msm_pcm_channel_weight_info,
  3870. .get = msm_pcm_channel_weight_get,
  3871. .put = msm_pcm_channel_weight_put,
  3872. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3873. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3874. },
  3875. {
  3876. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3877. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3878. .name = "MultiMedia1 Output Channel8",
  3879. .info = msm_pcm_channel_weight_info,
  3880. .get = msm_pcm_channel_weight_get,
  3881. .put = msm_pcm_channel_weight_put,
  3882. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3883. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3884. },
  3885. {
  3886. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3887. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3888. .name = "MultiMedia1 Output Channel9",
  3889. .info = msm_pcm_channel_weight_info,
  3890. .get = msm_pcm_channel_weight_get,
  3891. .put = msm_pcm_channel_weight_put,
  3892. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3893. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3894. },
  3895. {
  3896. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3897. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3898. .name = "MultiMedia1 Output Channel10",
  3899. .info = msm_pcm_channel_weight_info,
  3900. .get = msm_pcm_channel_weight_get,
  3901. .put = msm_pcm_channel_weight_put,
  3902. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3903. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3904. },
  3905. {
  3906. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3907. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3908. .name = "MultiMedia1 Output Channel11",
  3909. .info = msm_pcm_channel_weight_info,
  3910. .get = msm_pcm_channel_weight_get,
  3911. .put = msm_pcm_channel_weight_put,
  3912. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3913. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3914. },
  3915. {
  3916. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3917. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3918. .name = "MultiMedia1 Output Channel12",
  3919. .info = msm_pcm_channel_weight_info,
  3920. .get = msm_pcm_channel_weight_get,
  3921. .put = msm_pcm_channel_weight_put,
  3922. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3923. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3924. },
  3925. {
  3926. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3927. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3928. .name = "MultiMedia1 Output Channel13",
  3929. .info = msm_pcm_channel_weight_info,
  3930. .get = msm_pcm_channel_weight_get,
  3931. .put = msm_pcm_channel_weight_put,
  3932. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3933. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3934. },
  3935. {
  3936. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3937. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3938. .name = "MultiMedia1 Output Channel14",
  3939. .info = msm_pcm_channel_weight_info,
  3940. .get = msm_pcm_channel_weight_get,
  3941. .put = msm_pcm_channel_weight_put,
  3942. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3943. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3944. },
  3945. {
  3946. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3947. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3948. .name = "MultiMedia2 Output Channel1",
  3949. .info = msm_pcm_channel_weight_info,
  3950. .get = msm_pcm_channel_weight_get,
  3951. .put = msm_pcm_channel_weight_put,
  3952. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3953. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3954. },
  3955. {
  3956. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3957. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3958. .name = "MultiMedia2 Output Channel2",
  3959. .info = msm_pcm_channel_weight_info,
  3960. .get = msm_pcm_channel_weight_get,
  3961. .put = msm_pcm_channel_weight_put,
  3962. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3963. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3964. },
  3965. {
  3966. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3967. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3968. .name = "MultiMedia2 Output Channel3",
  3969. .info = msm_pcm_channel_weight_info,
  3970. .get = msm_pcm_channel_weight_get,
  3971. .put = msm_pcm_channel_weight_put,
  3972. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3973. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3974. },
  3975. {
  3976. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3977. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3978. .name = "MultiMedia3 Output Channel1",
  3979. .info = msm_pcm_channel_weight_info,
  3980. .get = msm_pcm_channel_weight_get,
  3981. .put = msm_pcm_channel_weight_put,
  3982. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3983. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3984. },
  3985. {
  3986. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3987. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3988. .name = "MultiMedia3 Output Channel2",
  3989. .info = msm_pcm_channel_weight_info,
  3990. .get = msm_pcm_channel_weight_get,
  3991. .put = msm_pcm_channel_weight_put,
  3992. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3993. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3994. },
  3995. {
  3996. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3997. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3998. .name = "MultiMedia18 Output Channel1",
  3999. .info = msm_pcm_channel_weight_info,
  4000. .get = msm_pcm_channel_weight_get,
  4001. .put = msm_pcm_channel_weight_put,
  4002. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4003. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  4004. },
  4005. {
  4006. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4007. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4008. .name = "MultiMedia18 Output Channel2",
  4009. .info = msm_pcm_channel_weight_info,
  4010. .get = msm_pcm_channel_weight_get,
  4011. .put = msm_pcm_channel_weight_put,
  4012. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4013. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  4014. },
  4015. {
  4016. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4017. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4018. .name = "MultiMedia18 Output Channel3",
  4019. .info = msm_pcm_channel_weight_info,
  4020. .get = msm_pcm_channel_weight_get,
  4021. .put = msm_pcm_channel_weight_put,
  4022. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4023. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  4024. },
  4025. {
  4026. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4027. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4028. .name = "MultiMedia18 Output Channel4",
  4029. .info = msm_pcm_channel_weight_info,
  4030. .get = msm_pcm_channel_weight_get,
  4031. .put = msm_pcm_channel_weight_put,
  4032. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4033. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  4034. },
  4035. {
  4036. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4037. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4038. .name = "MultiMedia18 Output Channel5",
  4039. .info = msm_pcm_channel_weight_info,
  4040. .get = msm_pcm_channel_weight_get,
  4041. .put = msm_pcm_channel_weight_put,
  4042. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4043. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  4044. },
  4045. {
  4046. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4047. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4048. .name = "MultiMedia18 Output Channel6",
  4049. .info = msm_pcm_channel_weight_info,
  4050. .get = msm_pcm_channel_weight_get,
  4051. .put = msm_pcm_channel_weight_put,
  4052. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4053. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  4054. },
  4055. {
  4056. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4057. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4058. .name = "MultiMedia18 Output Channel7",
  4059. .info = msm_pcm_channel_weight_info,
  4060. .get = msm_pcm_channel_weight_get,
  4061. .put = msm_pcm_channel_weight_put,
  4062. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4063. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  4064. },
  4065. {
  4066. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4067. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4068. .name = "MultiMedia18 Output Channel8",
  4069. .info = msm_pcm_channel_weight_info,
  4070. .get = msm_pcm_channel_weight_get,
  4071. .put = msm_pcm_channel_weight_put,
  4072. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4073. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  4074. },
  4075. {
  4076. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4077. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4078. .name = "MultiMedia18 Output Channel9",
  4079. .info = msm_pcm_channel_weight_info,
  4080. .get = msm_pcm_channel_weight_get,
  4081. .put = msm_pcm_channel_weight_put,
  4082. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4083. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  4084. },
  4085. {
  4086. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4087. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4088. .name = "MultiMedia18 Output Channel10",
  4089. .info = msm_pcm_channel_weight_info,
  4090. .get = msm_pcm_channel_weight_get,
  4091. .put = msm_pcm_channel_weight_put,
  4092. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4093. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  4094. },
  4095. {
  4096. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4097. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4098. .name = "MultiMedia18 Output Channel11",
  4099. .info = msm_pcm_channel_weight_info,
  4100. .get = msm_pcm_channel_weight_get,
  4101. .put = msm_pcm_channel_weight_put,
  4102. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4103. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  4104. },
  4105. {
  4106. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4107. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4108. .name = "MultiMedia18 Output Channel12",
  4109. .info = msm_pcm_channel_weight_info,
  4110. .get = msm_pcm_channel_weight_get,
  4111. .put = msm_pcm_channel_weight_put,
  4112. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4113. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  4114. },
  4115. {
  4116. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4117. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4118. .name = "MultiMedia18 Output Channel13",
  4119. .info = msm_pcm_channel_weight_info,
  4120. .get = msm_pcm_channel_weight_get,
  4121. .put = msm_pcm_channel_weight_put,
  4122. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4123. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  4124. },
  4125. {
  4126. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4127. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4128. .name = "MultiMedia18 Output Channel14",
  4129. .info = msm_pcm_channel_weight_info,
  4130. .get = msm_pcm_channel_weight_get,
  4131. .put = msm_pcm_channel_weight_put,
  4132. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4133. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  4134. },
  4135. {
  4136. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4137. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4138. .name = "MultiMedia19 Output Channel1",
  4139. .info = msm_pcm_channel_weight_info,
  4140. .get = msm_pcm_channel_weight_get,
  4141. .put = msm_pcm_channel_weight_put,
  4142. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4143. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  4144. },
  4145. {
  4146. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4147. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4148. .name = "MultiMedia19 Output Channel2",
  4149. .info = msm_pcm_channel_weight_info,
  4150. .get = msm_pcm_channel_weight_get,
  4151. .put = msm_pcm_channel_weight_put,
  4152. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4153. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  4154. },
  4155. {
  4156. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4157. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4158. .name = "MultiMedia19 Output Channel3",
  4159. .info = msm_pcm_channel_weight_info,
  4160. .get = msm_pcm_channel_weight_get,
  4161. .put = msm_pcm_channel_weight_put,
  4162. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4163. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  4164. },
  4165. {
  4166. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4167. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4168. .name = "MultiMedia19 Output Channel4",
  4169. .info = msm_pcm_channel_weight_info,
  4170. .get = msm_pcm_channel_weight_get,
  4171. .put = msm_pcm_channel_weight_put,
  4172. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4173. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  4174. },
  4175. {
  4176. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4177. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4178. .name = "MultiMedia19 Output Channel5",
  4179. .info = msm_pcm_channel_weight_info,
  4180. .get = msm_pcm_channel_weight_get,
  4181. .put = msm_pcm_channel_weight_put,
  4182. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4183. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  4184. },
  4185. {
  4186. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4187. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4188. .name = "MultiMedia19 Output Channel6",
  4189. .info = msm_pcm_channel_weight_info,
  4190. .get = msm_pcm_channel_weight_get,
  4191. .put = msm_pcm_channel_weight_put,
  4192. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4193. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4194. },
  4195. {
  4196. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4197. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4198. .name = "MultiMedia19 Output Channel7",
  4199. .info = msm_pcm_channel_weight_info,
  4200. .get = msm_pcm_channel_weight_get,
  4201. .put = msm_pcm_channel_weight_put,
  4202. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4203. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4204. },
  4205. {
  4206. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4207. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4208. .name = "MultiMedia19 Output Channel8",
  4209. .info = msm_pcm_channel_weight_info,
  4210. .get = msm_pcm_channel_weight_get,
  4211. .put = msm_pcm_channel_weight_put,
  4212. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4213. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4214. },
  4215. {
  4216. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4217. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4218. .name = "MultiMedia19 Output Channel9",
  4219. .info = msm_pcm_channel_weight_info,
  4220. .get = msm_pcm_channel_weight_get,
  4221. .put = msm_pcm_channel_weight_put,
  4222. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4223. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4224. },
  4225. {
  4226. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4227. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4228. .name = "MultiMedia19 Output Channel10",
  4229. .info = msm_pcm_channel_weight_info,
  4230. .get = msm_pcm_channel_weight_get,
  4231. .put = msm_pcm_channel_weight_put,
  4232. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4233. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4234. },
  4235. {
  4236. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4237. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4238. .name = "MultiMedia19 Output Channel11",
  4239. .info = msm_pcm_channel_weight_info,
  4240. .get = msm_pcm_channel_weight_get,
  4241. .put = msm_pcm_channel_weight_put,
  4242. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4243. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4244. },
  4245. {
  4246. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4247. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4248. .name = "MultiMedia19 Output Channel12",
  4249. .info = msm_pcm_channel_weight_info,
  4250. .get = msm_pcm_channel_weight_get,
  4251. .put = msm_pcm_channel_weight_put,
  4252. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4253. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4254. },
  4255. {
  4256. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4257. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4258. .name = "MultiMedia19 Output Channel13",
  4259. .info = msm_pcm_channel_weight_info,
  4260. .get = msm_pcm_channel_weight_get,
  4261. .put = msm_pcm_channel_weight_put,
  4262. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4263. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4264. },
  4265. {
  4266. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4267. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4268. .name = "MultiMedia19 Output Channel14",
  4269. .info = msm_pcm_channel_weight_info,
  4270. .get = msm_pcm_channel_weight_get,
  4271. .put = msm_pcm_channel_weight_put,
  4272. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4273. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4274. },
  4275. {
  4276. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4277. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4278. .name = "MultiMedia28 Output Channel1",
  4279. .info = msm_pcm_channel_weight_info,
  4280. .get = msm_pcm_channel_weight_get,
  4281. .put = msm_pcm_channel_weight_put,
  4282. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4283. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4284. },
  4285. {
  4286. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4287. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4288. .name = "MultiMedia28 Output Channel2",
  4289. .info = msm_pcm_channel_weight_info,
  4290. .get = msm_pcm_channel_weight_get,
  4291. .put = msm_pcm_channel_weight_put,
  4292. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4293. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4294. },
  4295. {
  4296. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4297. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4298. .name = "MultiMedia28 Output Channel3",
  4299. .info = msm_pcm_channel_weight_info,
  4300. .get = msm_pcm_channel_weight_get,
  4301. .put = msm_pcm_channel_weight_put,
  4302. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4303. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4304. },
  4305. {
  4306. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4307. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4308. .name = "MultiMedia28 Output Channel4",
  4309. .info = msm_pcm_channel_weight_info,
  4310. .get = msm_pcm_channel_weight_get,
  4311. .put = msm_pcm_channel_weight_put,
  4312. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4313. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4314. },
  4315. {
  4316. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4317. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4318. .name = "MultiMedia28 Output Channel5",
  4319. .info = msm_pcm_channel_weight_info,
  4320. .get = msm_pcm_channel_weight_get,
  4321. .put = msm_pcm_channel_weight_put,
  4322. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4323. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4324. },
  4325. {
  4326. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4327. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4328. .name = "MultiMedia28 Output Channel6",
  4329. .info = msm_pcm_channel_weight_info,
  4330. .get = msm_pcm_channel_weight_get,
  4331. .put = msm_pcm_channel_weight_put,
  4332. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4333. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4334. },
  4335. {
  4336. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4337. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4338. .name = "MultiMedia28 Output Channel7",
  4339. .info = msm_pcm_channel_weight_info,
  4340. .get = msm_pcm_channel_weight_get,
  4341. .put = msm_pcm_channel_weight_put,
  4342. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4343. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4344. },
  4345. {
  4346. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4347. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4348. .name = "MultiMedia28 Output Channel8",
  4349. .info = msm_pcm_channel_weight_info,
  4350. .get = msm_pcm_channel_weight_get,
  4351. .put = msm_pcm_channel_weight_put,
  4352. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4353. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4354. },
  4355. {
  4356. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4357. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4358. .name = "MultiMedia28 Output Channel9",
  4359. .info = msm_pcm_channel_weight_info,
  4360. .get = msm_pcm_channel_weight_get,
  4361. .put = msm_pcm_channel_weight_put,
  4362. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4363. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4364. },
  4365. {
  4366. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4367. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4368. .name = "MultiMedia28 Output Channel10",
  4369. .info = msm_pcm_channel_weight_info,
  4370. .get = msm_pcm_channel_weight_get,
  4371. .put = msm_pcm_channel_weight_put,
  4372. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4373. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4374. },
  4375. {
  4376. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4377. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4378. .name = "MultiMedia28 Output Channel11",
  4379. .info = msm_pcm_channel_weight_info,
  4380. .get = msm_pcm_channel_weight_get,
  4381. .put = msm_pcm_channel_weight_put,
  4382. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4383. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4384. },
  4385. {
  4386. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4387. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4388. .name = "MultiMedia28 Output Channel12",
  4389. .info = msm_pcm_channel_weight_info,
  4390. .get = msm_pcm_channel_weight_get,
  4391. .put = msm_pcm_channel_weight_put,
  4392. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4393. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4394. },
  4395. {
  4396. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4397. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4398. .name = "MultiMedia28 Output Channel13",
  4399. .info = msm_pcm_channel_weight_info,
  4400. .get = msm_pcm_channel_weight_get,
  4401. .put = msm_pcm_channel_weight_put,
  4402. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4403. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4404. },
  4405. {
  4406. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4407. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4408. .name = "MultiMedia28 Output Channel14",
  4409. .info = msm_pcm_channel_weight_info,
  4410. .get = msm_pcm_channel_weight_get,
  4411. .put = msm_pcm_channel_weight_put,
  4412. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4413. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4414. },
  4415. {
  4416. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4417. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4418. .name = "MultiMedia29 Output Channel1",
  4419. .info = msm_pcm_channel_weight_info,
  4420. .get = msm_pcm_channel_weight_get,
  4421. .put = msm_pcm_channel_weight_put,
  4422. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4423. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4424. },
  4425. {
  4426. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4427. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4428. .name = "MultiMedia29 Output Channel2",
  4429. .info = msm_pcm_channel_weight_info,
  4430. .get = msm_pcm_channel_weight_get,
  4431. .put = msm_pcm_channel_weight_put,
  4432. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4433. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4434. },
  4435. {
  4436. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4437. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4438. .name = "MultiMedia29 Output Channel3",
  4439. .info = msm_pcm_channel_weight_info,
  4440. .get = msm_pcm_channel_weight_get,
  4441. .put = msm_pcm_channel_weight_put,
  4442. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4443. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4444. },
  4445. {
  4446. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4447. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4448. .name = "MultiMedia29 Output Channel4",
  4449. .info = msm_pcm_channel_weight_info,
  4450. .get = msm_pcm_channel_weight_get,
  4451. .put = msm_pcm_channel_weight_put,
  4452. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4453. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4454. },
  4455. {
  4456. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4457. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4458. .name = "MultiMedia29 Output Channel5",
  4459. .info = msm_pcm_channel_weight_info,
  4460. .get = msm_pcm_channel_weight_get,
  4461. .put = msm_pcm_channel_weight_put,
  4462. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4463. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4464. },
  4465. {
  4466. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4467. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4468. .name = "MultiMedia29 Output Channel6",
  4469. .info = msm_pcm_channel_weight_info,
  4470. .get = msm_pcm_channel_weight_get,
  4471. .put = msm_pcm_channel_weight_put,
  4472. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4473. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4474. },
  4475. {
  4476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4477. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4478. .name = "MultiMedia29 Output Channel7",
  4479. .info = msm_pcm_channel_weight_info,
  4480. .get = msm_pcm_channel_weight_get,
  4481. .put = msm_pcm_channel_weight_put,
  4482. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4483. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4484. },
  4485. {
  4486. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4487. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4488. .name = "MultiMedia29 Output Channel8",
  4489. .info = msm_pcm_channel_weight_info,
  4490. .get = msm_pcm_channel_weight_get,
  4491. .put = msm_pcm_channel_weight_put,
  4492. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4493. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4494. },
  4495. {
  4496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4498. .name = "MultiMedia29 Output Channel9",
  4499. .info = msm_pcm_channel_weight_info,
  4500. .get = msm_pcm_channel_weight_get,
  4501. .put = msm_pcm_channel_weight_put,
  4502. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4503. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4504. },
  4505. {
  4506. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4507. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4508. .name = "MultiMedia29 Output Channel10",
  4509. .info = msm_pcm_channel_weight_info,
  4510. .get = msm_pcm_channel_weight_get,
  4511. .put = msm_pcm_channel_weight_put,
  4512. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4513. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4514. },
  4515. {
  4516. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4517. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4518. .name = "MultiMedia29 Output Channel11",
  4519. .info = msm_pcm_channel_weight_info,
  4520. .get = msm_pcm_channel_weight_get,
  4521. .put = msm_pcm_channel_weight_put,
  4522. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4523. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4524. },
  4525. {
  4526. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4527. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4528. .name = "MultiMedia29 Output Channel12",
  4529. .info = msm_pcm_channel_weight_info,
  4530. .get = msm_pcm_channel_weight_get,
  4531. .put = msm_pcm_channel_weight_put,
  4532. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4533. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4534. },
  4535. {
  4536. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4537. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4538. .name = "MultiMedia29 Output Channel13",
  4539. .info = msm_pcm_channel_weight_info,
  4540. .get = msm_pcm_channel_weight_get,
  4541. .put = msm_pcm_channel_weight_put,
  4542. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4543. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4544. },
  4545. {
  4546. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4547. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4548. .name = "MultiMedia29 Output Channel14",
  4549. .info = msm_pcm_channel_weight_info,
  4550. .get = msm_pcm_channel_weight_get,
  4551. .put = msm_pcm_channel_weight_put,
  4552. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4553. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4554. },
  4555. {
  4556. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4557. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4558. .name = "MultiMedia30 Output Channel1",
  4559. .info = msm_pcm_channel_weight_info,
  4560. .get = msm_pcm_channel_weight_get,
  4561. .put = msm_pcm_channel_weight_put,
  4562. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4563. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4564. },
  4565. {
  4566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4568. .name = "MultiMedia30 Output Channel2",
  4569. .info = msm_pcm_channel_weight_info,
  4570. .get = msm_pcm_channel_weight_get,
  4571. .put = msm_pcm_channel_weight_put,
  4572. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4573. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4574. },
  4575. {
  4576. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4577. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4578. .name = "MultiMedia30 Output Channel3",
  4579. .info = msm_pcm_channel_weight_info,
  4580. .get = msm_pcm_channel_weight_get,
  4581. .put = msm_pcm_channel_weight_put,
  4582. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4583. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4584. },
  4585. {
  4586. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4587. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4588. .name = "MultiMedia30 Output Channel4",
  4589. .info = msm_pcm_channel_weight_info,
  4590. .get = msm_pcm_channel_weight_get,
  4591. .put = msm_pcm_channel_weight_put,
  4592. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4593. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4594. },
  4595. {
  4596. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4597. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4598. .name = "MultiMedia30 Output Channel5",
  4599. .info = msm_pcm_channel_weight_info,
  4600. .get = msm_pcm_channel_weight_get,
  4601. .put = msm_pcm_channel_weight_put,
  4602. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4603. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4604. },
  4605. {
  4606. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4607. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4608. .name = "MultiMedia30 Output Channel6",
  4609. .info = msm_pcm_channel_weight_info,
  4610. .get = msm_pcm_channel_weight_get,
  4611. .put = msm_pcm_channel_weight_put,
  4612. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4613. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4614. },
  4615. {
  4616. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4617. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4618. .name = "MultiMedia30 Output Channel7",
  4619. .info = msm_pcm_channel_weight_info,
  4620. .get = msm_pcm_channel_weight_get,
  4621. .put = msm_pcm_channel_weight_put,
  4622. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4623. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4624. },
  4625. {
  4626. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4627. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4628. .name = "MultiMedia30 Output Channel8",
  4629. .info = msm_pcm_channel_weight_info,
  4630. .get = msm_pcm_channel_weight_get,
  4631. .put = msm_pcm_channel_weight_put,
  4632. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4633. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4634. },
  4635. {
  4636. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4637. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4638. .name = "MultiMedia30 Output Channel9",
  4639. .info = msm_pcm_channel_weight_info,
  4640. .get = msm_pcm_channel_weight_get,
  4641. .put = msm_pcm_channel_weight_put,
  4642. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4643. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4644. },
  4645. {
  4646. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4647. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4648. .name = "MultiMedia30 Output Channel10",
  4649. .info = msm_pcm_channel_weight_info,
  4650. .get = msm_pcm_channel_weight_get,
  4651. .put = msm_pcm_channel_weight_put,
  4652. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4653. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4654. },
  4655. {
  4656. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4657. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4658. .name = "MultiMedia30 Output Channel11",
  4659. .info = msm_pcm_channel_weight_info,
  4660. .get = msm_pcm_channel_weight_get,
  4661. .put = msm_pcm_channel_weight_put,
  4662. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4663. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4664. },
  4665. {
  4666. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4667. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4668. .name = "MultiMedia30 Output Channel12",
  4669. .info = msm_pcm_channel_weight_info,
  4670. .get = msm_pcm_channel_weight_get,
  4671. .put = msm_pcm_channel_weight_put,
  4672. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4673. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4674. },
  4675. {
  4676. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4677. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4678. .name = "MultiMedia30 Output Channel13",
  4679. .info = msm_pcm_channel_weight_info,
  4680. .get = msm_pcm_channel_weight_get,
  4681. .put = msm_pcm_channel_weight_put,
  4682. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4683. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4684. },
  4685. {
  4686. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4687. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4688. .name = "MultiMedia30 Output Channel14",
  4689. .info = msm_pcm_channel_weight_info,
  4690. .get = msm_pcm_channel_weight_get,
  4691. .put = msm_pcm_channel_weight_put,
  4692. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4693. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4694. },
  4695. {
  4696. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4697. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4698. .name = "MultiMedia1 Channel1",
  4699. .info = msm_pcm_channel_input_be_info,
  4700. .get = msm_pcm_channel_input_be_get,
  4701. .put = msm_pcm_channel_input_be_put,
  4702. .private_value = (unsigned long)&(mm1_ch1_enum)
  4703. },
  4704. {
  4705. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4706. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4707. .name = "MultiMedia1 Channel2",
  4708. .info = msm_pcm_channel_input_be_info,
  4709. .get = msm_pcm_channel_input_be_get,
  4710. .put = msm_pcm_channel_input_be_put,
  4711. .private_value = (unsigned long)&(mm1_ch2_enum)
  4712. },
  4713. {
  4714. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4715. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4716. .name = "MultiMedia1 Channel3",
  4717. .info = msm_pcm_channel_input_be_info,
  4718. .get = msm_pcm_channel_input_be_get,
  4719. .put = msm_pcm_channel_input_be_put,
  4720. .private_value = (unsigned long)&(mm1_ch3_enum)
  4721. },
  4722. {
  4723. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4725. .name = "MultiMedia1 Channel4",
  4726. .info = msm_pcm_channel_input_be_info,
  4727. .get = msm_pcm_channel_input_be_get,
  4728. .put = msm_pcm_channel_input_be_put,
  4729. .private_value = (unsigned long)&(mm1_ch4_enum)
  4730. },
  4731. {
  4732. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4733. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4734. .name = "MultiMedia1 Channel5",
  4735. .info = msm_pcm_channel_input_be_info,
  4736. .get = msm_pcm_channel_input_be_get,
  4737. .put = msm_pcm_channel_input_be_put,
  4738. .private_value = (unsigned long)&(mm1_ch5_enum)
  4739. },
  4740. {
  4741. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4742. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4743. .name = "MultiMedia1 Channel6",
  4744. .info = msm_pcm_channel_input_be_info,
  4745. .get = msm_pcm_channel_input_be_get,
  4746. .put = msm_pcm_channel_input_be_put,
  4747. .private_value = (unsigned long)&(mm1_ch6_enum)
  4748. },
  4749. {
  4750. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4751. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4752. .name = "MultiMedia1 Channel7",
  4753. .info = msm_pcm_channel_input_be_info,
  4754. .get = msm_pcm_channel_input_be_get,
  4755. .put = msm_pcm_channel_input_be_put,
  4756. .private_value = (unsigned long)&(mm1_ch7_enum)
  4757. },
  4758. {
  4759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4761. .name = "MultiMedia1 Channel8",
  4762. .info = msm_pcm_channel_input_be_info,
  4763. .get = msm_pcm_channel_input_be_get,
  4764. .put = msm_pcm_channel_input_be_put,
  4765. .private_value = (unsigned long)&(mm1_ch8_enum)
  4766. },
  4767. {
  4768. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4769. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4770. .name = "MultiMedia18 Channel1",
  4771. .info = msm_pcm_channel_input_be_info,
  4772. .get = msm_pcm_channel_input_be_get,
  4773. .put = msm_pcm_channel_input_be_put,
  4774. .private_value = (unsigned long)&(mm18_ch1_enum)
  4775. },
  4776. {
  4777. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4778. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4779. .name = "MultiMedia18 Channel2",
  4780. .info = msm_pcm_channel_input_be_info,
  4781. .get = msm_pcm_channel_input_be_get,
  4782. .put = msm_pcm_channel_input_be_put,
  4783. .private_value = (unsigned long)&(mm18_ch2_enum)
  4784. },
  4785. {
  4786. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4787. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4788. .name = "MultiMedia19 Channel1",
  4789. .info = msm_pcm_channel_input_be_info,
  4790. .get = msm_pcm_channel_input_be_get,
  4791. .put = msm_pcm_channel_input_be_put,
  4792. .private_value = (unsigned long)&(mm19_ch1_enum)
  4793. },
  4794. {
  4795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4796. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4797. .name = "MultiMedia19 Channel2",
  4798. .info = msm_pcm_channel_input_be_info,
  4799. .get = msm_pcm_channel_input_be_get,
  4800. .put = msm_pcm_channel_input_be_put,
  4801. .private_value = (unsigned long)&(mm19_ch2_enum)
  4802. },
  4803. {
  4804. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4805. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4806. .name = "MultiMedia28 Channel1",
  4807. .info = msm_pcm_channel_input_be_info,
  4808. .get = msm_pcm_channel_input_be_get,
  4809. .put = msm_pcm_channel_input_be_put,
  4810. .private_value = (unsigned long)&(mm28_ch1_enum)
  4811. },
  4812. {
  4813. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4814. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4815. .name = "MultiMedia28 Channel2",
  4816. .info = msm_pcm_channel_input_be_info,
  4817. .get = msm_pcm_channel_input_be_get,
  4818. .put = msm_pcm_channel_input_be_put,
  4819. .private_value = (unsigned long)&(mm28_ch2_enum)
  4820. },
  4821. {
  4822. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4823. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4824. .name = "MultiMedia29 Channel1",
  4825. .info = msm_pcm_channel_input_be_info,
  4826. .get = msm_pcm_channel_input_be_get,
  4827. .put = msm_pcm_channel_input_be_put,
  4828. .private_value = (unsigned long)&(mm29_ch1_enum)
  4829. },
  4830. {
  4831. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4832. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4833. .name = "MultiMedia29 Channel2",
  4834. .info = msm_pcm_channel_input_be_info,
  4835. .get = msm_pcm_channel_input_be_get,
  4836. .put = msm_pcm_channel_input_be_put,
  4837. .private_value = (unsigned long)&(mm29_ch2_enum)
  4838. },
  4839. {
  4840. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4841. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4842. .name = "MultiMedia30 Channel1",
  4843. .info = msm_pcm_channel_input_be_info,
  4844. .get = msm_pcm_channel_input_be_get,
  4845. .put = msm_pcm_channel_input_be_put,
  4846. .private_value = (unsigned long)&(mm30_ch1_enum)
  4847. },
  4848. {
  4849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4851. .name = "MultiMedia30 Channel2",
  4852. .info = msm_pcm_channel_input_be_info,
  4853. .get = msm_pcm_channel_input_be_get,
  4854. .put = msm_pcm_channel_input_be_put,
  4855. .private_value = (unsigned long)&(mm30_ch2_enum)
  4856. },
  4857. {
  4858. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4859. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4860. .name = "MultiMedia1 Output Channel Map",
  4861. .info = msm_pcm_channel_output_map_info,
  4862. .get = msm_pcm_channel_output_map_get,
  4863. .put = msm_pcm_channel_output_map_put,
  4864. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4865. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4866. },
  4867. {
  4868. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4869. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4870. .name = "MultiMedia2 Output Channel Map",
  4871. .info = msm_pcm_channel_output_map_info,
  4872. .get = msm_pcm_channel_output_map_get,
  4873. .put = msm_pcm_channel_output_map_put,
  4874. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4875. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4876. },
  4877. {
  4878. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4879. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4880. .name = "MultiMedia3 Output Channel Map",
  4881. .info = msm_pcm_channel_output_map_info,
  4882. .get = msm_pcm_channel_output_map_get,
  4883. .put = msm_pcm_channel_output_map_put,
  4884. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4885. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4886. },
  4887. {
  4888. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4889. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4890. .name = "MultiMedia4 Output Channel Map",
  4891. .info = msm_pcm_channel_output_map_info,
  4892. .get = msm_pcm_channel_output_map_get,
  4893. .put = msm_pcm_channel_output_map_put,
  4894. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4895. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4896. },
  4897. {
  4898. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4899. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4900. .name = "MultiMedia5 Output Channel Map",
  4901. .info = msm_pcm_channel_output_map_info,
  4902. .get = msm_pcm_channel_output_map_get,
  4903. .put = msm_pcm_channel_output_map_put,
  4904. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4905. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4906. },
  4907. {
  4908. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4909. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4910. .name = "MultiMedia6 Output Channel Map",
  4911. .info = msm_pcm_channel_output_map_info,
  4912. .get = msm_pcm_channel_output_map_get,
  4913. .put = msm_pcm_channel_output_map_put,
  4914. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4915. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4916. },
  4917. {
  4918. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4919. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4920. .name = "MultiMedia18 Output Channel Map",
  4921. .info = msm_pcm_channel_output_map_info,
  4922. .get = msm_pcm_channel_output_map_get,
  4923. .put = msm_pcm_channel_output_map_put,
  4924. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4925. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4926. },
  4927. {
  4928. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4929. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4930. .name = "MultiMedia19 Output Channel Map",
  4931. .info = msm_pcm_channel_output_map_info,
  4932. .get = msm_pcm_channel_output_map_get,
  4933. .put = msm_pcm_channel_output_map_put,
  4934. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4935. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4936. },
  4937. {
  4938. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4939. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4940. .name = "MultiMedia28 Output Channel Map",
  4941. .info = msm_pcm_channel_output_map_info,
  4942. .get = msm_pcm_channel_output_map_get,
  4943. .put = msm_pcm_channel_output_map_put,
  4944. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4945. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4946. },
  4947. {
  4948. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4949. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4950. .name = "MultiMedia29 Output Channel Map",
  4951. .info = msm_pcm_channel_output_map_info,
  4952. .get = msm_pcm_channel_output_map_get,
  4953. .put = msm_pcm_channel_output_map_put,
  4954. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4955. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4956. },
  4957. {
  4958. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4959. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4960. .name = "MultiMedia30 Output Channel Map",
  4961. .info = msm_pcm_channel_output_map_info,
  4962. .get = msm_pcm_channel_output_map_get,
  4963. .put = msm_pcm_channel_output_map_put,
  4964. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4965. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4966. },
  4967. };
  4968. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4969. struct snd_ctl_elem_value *ucontrol)
  4970. {
  4971. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4972. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4973. ucontrol->value.integer.value[0]);
  4974. return 0;
  4975. }
  4976. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4977. struct snd_ctl_elem_value *ucontrol)
  4978. {
  4979. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4980. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4981. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4982. return 0;
  4983. }
  4984. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4985. struct snd_ctl_elem_value *ucontrol)
  4986. {
  4987. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4988. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4989. ucontrol->value.integer.value[0]);
  4990. return 0;
  4991. }
  4992. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4993. struct snd_ctl_elem_value *ucontrol)
  4994. {
  4995. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4996. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4997. __func__, msm_ec_ref_ch_downmixed);
  4998. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4999. return 0;
  5000. }
  5001. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  5002. struct snd_ctl_elem_value *ucontrol)
  5003. {
  5004. int i = 0, ret = 0;
  5005. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  5006. int out_channel_idx = ((struct soc_multi_mixer_control *)
  5007. kcontrol->private_value)->shift;
  5008. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  5009. weights[i] = ucontrol->value.integer.value[i];
  5010. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  5011. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  5012. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  5013. return ret;
  5014. }
  5015. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  5016. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  5017. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  5018. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  5019. struct snd_ctl_elem_value *ucontrol)
  5020. {
  5021. switch (msm_ec_ref_bit_format) {
  5022. case SNDRV_PCM_FORMAT_S24_LE:
  5023. ucontrol->value.integer.value[0] = 2;
  5024. break;
  5025. case SNDRV_PCM_FORMAT_S16_LE:
  5026. ucontrol->value.integer.value[0] = 1;
  5027. break;
  5028. default:
  5029. ucontrol->value.integer.value[0] = 0;
  5030. break;
  5031. }
  5032. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  5033. __func__, ucontrol->value.integer.value[0]);
  5034. return 0;
  5035. }
  5036. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  5037. struct snd_ctl_elem_value *ucontrol)
  5038. {
  5039. u16 bit_width = 0;
  5040. switch (ucontrol->value.integer.value[0]) {
  5041. case 2:
  5042. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  5043. break;
  5044. case 1:
  5045. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  5046. break;
  5047. default:
  5048. msm_ec_ref_bit_format = 0;
  5049. break;
  5050. }
  5051. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  5052. bit_width = 16;
  5053. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  5054. bit_width = 24;
  5055. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  5056. __func__, msm_ec_ref_bit_format);
  5057. adm_ec_ref_rx_bit_width(bit_width);
  5058. return 0;
  5059. }
  5060. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  5061. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  5062. struct snd_ctl_elem_value *ucontrol)
  5063. {
  5064. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  5065. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  5066. __func__, ucontrol->value.integer.value[0]);
  5067. return 0;
  5068. }
  5069. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  5070. struct snd_ctl_elem_value *ucontrol)
  5071. {
  5072. switch (ucontrol->value.integer.value[0]) {
  5073. case 0:
  5074. msm_ec_ref_sampling_rate = 0;
  5075. break;
  5076. case 1:
  5077. msm_ec_ref_sampling_rate = 8000;
  5078. break;
  5079. case 2:
  5080. msm_ec_ref_sampling_rate = 16000;
  5081. break;
  5082. case 3:
  5083. msm_ec_ref_sampling_rate = 32000;
  5084. break;
  5085. case 4:
  5086. msm_ec_ref_sampling_rate = 44100;
  5087. break;
  5088. case 5:
  5089. msm_ec_ref_sampling_rate = 48000;
  5090. break;
  5091. case 6:
  5092. msm_ec_ref_sampling_rate = 96000;
  5093. break;
  5094. case 7:
  5095. msm_ec_ref_sampling_rate = 192000;
  5096. break;
  5097. case 8:
  5098. msm_ec_ref_sampling_rate = 384000;
  5099. break;
  5100. default:
  5101. msm_ec_ref_sampling_rate = 48000;
  5102. break;
  5103. }
  5104. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  5105. __func__, msm_ec_ref_sampling_rate);
  5106. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  5107. return 0;
  5108. }
  5109. static int get_ec_ref_port_id(int value, int *index)
  5110. {
  5111. int port_id;
  5112. switch (value) {
  5113. case 0:
  5114. *index = 0;
  5115. port_id = AFE_PORT_INVALID;
  5116. break;
  5117. case 1:
  5118. *index = 1;
  5119. port_id = SLIMBUS_0_RX;
  5120. break;
  5121. case 2:
  5122. *index = 2;
  5123. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  5124. break;
  5125. case 3:
  5126. *index = 3;
  5127. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5128. break;
  5129. case 4:
  5130. *index = 4;
  5131. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5132. break;
  5133. case 5:
  5134. *index = 5;
  5135. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5136. break;
  5137. case 6:
  5138. *index = 6;
  5139. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5140. break;
  5141. case 7:
  5142. *index = 7;
  5143. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  5144. break;
  5145. case 9:
  5146. *index = 9;
  5147. port_id = SLIMBUS_5_RX;
  5148. break;
  5149. case 10:
  5150. *index = 10;
  5151. port_id = SLIMBUS_1_TX;
  5152. break;
  5153. case 11:
  5154. *index = 11;
  5155. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  5156. break;
  5157. case 12:
  5158. *index = 12;
  5159. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  5160. break;
  5161. case 13:
  5162. *index = 13;
  5163. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  5164. break;
  5165. case 14:
  5166. *index = 14;
  5167. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  5168. break;
  5169. case 15:
  5170. *index = 15;
  5171. port_id = SLIMBUS_6_RX;
  5172. break;
  5173. case 16:
  5174. *index = 16;
  5175. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  5176. break;
  5177. case 17:
  5178. *index = 17;
  5179. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  5180. break;
  5181. case 18:
  5182. *index = 18;
  5183. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  5184. break;
  5185. case 19:
  5186. *index = 19;
  5187. port_id = AFE_PORT_ID_USB_RX;
  5188. break;
  5189. case 20:
  5190. *index = 20;
  5191. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5192. break;
  5193. case 21:
  5194. *index = 21;
  5195. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5196. break;
  5197. case 22:
  5198. *index = 22;
  5199. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5200. break;
  5201. case 23:
  5202. *index = 23;
  5203. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5204. break;
  5205. case 24:
  5206. *index = 24;
  5207. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5208. break;
  5209. case 25:
  5210. *index = 25;
  5211. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5212. break;
  5213. case 26:
  5214. *index = 26;
  5215. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5216. break;
  5217. case 27:
  5218. *index = 27;
  5219. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5220. break;
  5221. case 28:
  5222. *index = 28;
  5223. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5224. break;
  5225. case 29:
  5226. *index = 29;
  5227. port_id = SLIMBUS_7_RX;
  5228. break;
  5229. case 30:
  5230. *index = 30;
  5231. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5232. break;
  5233. case 31:
  5234. *index = 31;
  5235. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5236. break;
  5237. case 32:
  5238. *index = 32;
  5239. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5240. break;
  5241. case 33:
  5242. *index = 33;
  5243. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5244. break;
  5245. case 34:
  5246. *index = 34;
  5247. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5248. break;
  5249. case 35:
  5250. *index = 35;
  5251. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5252. break;
  5253. case 36:
  5254. *index = 36;
  5255. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5256. break;
  5257. case 37:
  5258. *index = 37;
  5259. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5260. break;
  5261. case 38:
  5262. *index = 38;
  5263. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5264. break;
  5265. case 39:
  5266. *index = 39;
  5267. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5268. break;
  5269. case 40:
  5270. *index = 40;
  5271. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5272. break;
  5273. default:
  5274. *index = 0; /* NONE */
  5275. pr_err("%s: Invalid value %d\n", __func__, value);
  5276. port_id = AFE_PORT_INVALID;
  5277. break;
  5278. }
  5279. return port_id;
  5280. }
  5281. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5282. struct snd_ctl_elem_value *ucontrol)
  5283. {
  5284. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5285. mutex_lock(&routing_lock);
  5286. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5287. mutex_unlock(&routing_lock);
  5288. return 0;
  5289. }
  5290. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5291. struct snd_ctl_elem_value *ucontrol)
  5292. {
  5293. int value = ucontrol->value.integer.value[0];
  5294. mutex_lock(&routing_lock);
  5295. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5296. &afe_loopback_tx_port_index);
  5297. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5298. __func__, afe_loopback_tx_port_index);
  5299. mutex_unlock(&routing_lock);
  5300. return 0;
  5301. }
  5302. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5303. "32000", "44100", "48000", "96000", "192000", "384000"};
  5304. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5305. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5306. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5307. ec_ref_bit_format_text),
  5308. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5309. };
  5310. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5311. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5312. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5313. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5314. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5315. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5316. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5317. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5318. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5319. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5320. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5321. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5322. };
  5323. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5324. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5325. };
  5326. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5327. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5328. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5329. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5330. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5331. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5332. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5333. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5334. msm_route_ec_ref_params_enum[0],
  5335. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5336. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5337. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5338. msm_ec_ref_chmixer_weights_put),
  5339. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5340. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5341. msm_ec_ref_chmixer_weights_put),
  5342. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5343. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5344. msm_ec_ref_chmixer_weights_put),
  5345. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5346. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5347. msm_ec_ref_chmixer_weights_put),
  5348. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5349. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5350. msm_ec_ref_chmixer_weights_put),
  5351. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5352. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5353. msm_ec_ref_chmixer_weights_put),
  5354. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5355. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5356. msm_ec_ref_chmixer_weights_put),
  5357. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5358. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5359. msm_ec_ref_chmixer_weights_put),
  5360. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5361. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5362. };
  5363. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5364. struct snd_ctl_elem_value *ucontrol)
  5365. {
  5366. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5367. mutex_lock(&routing_lock);
  5368. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5369. mutex_unlock(&routing_lock);
  5370. return 0;
  5371. }
  5372. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5373. struct snd_ctl_elem_value *ucontrol)
  5374. {
  5375. int value = ucontrol->value.integer.value[0];
  5376. struct snd_soc_dapm_widget *widget =
  5377. snd_soc_dapm_kcontrol_widget(kcontrol);
  5378. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5379. struct snd_soc_dapm_update *update = NULL;
  5380. mutex_lock(&routing_lock);
  5381. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5382. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5383. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5384. __func__, msm_route_ec_ref_rx);
  5385. mutex_unlock(&routing_lock);
  5386. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5387. msm_route_ec_ref_rx, e, update);
  5388. return 0;
  5389. }
  5390. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5391. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5392. msm_route_ec_ref_rx_enum[0],
  5393. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5394. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5395. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5396. msm_route_ec_ref_rx_enum[0],
  5397. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5398. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5399. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5400. msm_route_ec_ref_rx_enum[0],
  5401. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5402. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5403. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5404. msm_route_ec_ref_rx_enum[0],
  5405. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5406. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5407. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5408. msm_route_ec_ref_rx_enum[0],
  5409. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5410. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5411. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5412. msm_route_ec_ref_rx_enum[0],
  5413. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5414. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5415. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5416. msm_route_ec_ref_rx_enum[0],
  5417. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5418. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5419. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5420. msm_route_ec_ref_rx_enum[0],
  5421. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5422. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5423. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5424. msm_route_ec_ref_rx_enum[0],
  5425. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5426. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5427. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5428. msm_route_ec_ref_rx_enum[0],
  5429. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5430. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5431. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5432. msm_route_ec_ref_rx_enum[0],
  5433. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5434. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5435. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5436. msm_route_ec_ref_rx_enum[0],
  5437. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5438. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5439. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5440. msm_route_ec_ref_rx_enum[0],
  5441. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5442. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5443. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5444. msm_route_ec_ref_rx_enum[0],
  5445. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5446. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5447. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5448. msm_route_ec_ref_rx_enum[0],
  5449. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5450. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5451. struct snd_ctl_elem_value *ucontrol)
  5452. {
  5453. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5454. mutex_lock(&routing_lock);
  5455. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5456. mutex_unlock(&routing_lock);
  5457. return 0;
  5458. }
  5459. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5460. struct snd_ctl_elem_value *ucontrol)
  5461. {
  5462. struct snd_soc_dapm_widget *widget =
  5463. snd_soc_dapm_kcontrol_widget(kcontrol);
  5464. int mux = ucontrol->value.enumerated.item[0];
  5465. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5466. int ret = 1;
  5467. bool state = true;
  5468. uint16_t ext_ec_ref_port_id;
  5469. struct snd_soc_dapm_update *update = NULL;
  5470. if (mux >= e->items) {
  5471. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5472. return -EINVAL;
  5473. }
  5474. mutex_lock(&routing_lock);
  5475. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5476. switch (msm_route_ext_ec_ref) {
  5477. case EXT_EC_REF_PRI_MI2S_TX:
  5478. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5479. break;
  5480. case EXT_EC_REF_SEC_MI2S_TX:
  5481. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5482. break;
  5483. case EXT_EC_REF_TERT_MI2S_TX:
  5484. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5485. break;
  5486. case EXT_EC_REF_QUAT_MI2S_TX:
  5487. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5488. break;
  5489. case EXT_EC_REF_QUIN_MI2S_TX:
  5490. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5491. break;
  5492. case EXT_EC_REF_SLIM_1_TX:
  5493. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5494. break;
  5495. case EXT_EC_REF_PRI_TDM_TX:
  5496. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5497. break;
  5498. case EXT_EC_REF_SEC_TDM_TX:
  5499. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5500. break;
  5501. case EXT_EC_REF_NONE:
  5502. default:
  5503. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5504. state = false;
  5505. break;
  5506. }
  5507. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5508. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5509. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5510. mutex_unlock(&routing_lock);
  5511. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5512. update);
  5513. } else {
  5514. ret = -EINVAL;
  5515. mutex_unlock(&routing_lock);
  5516. }
  5517. return ret;
  5518. }
  5519. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5520. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5521. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5522. "SLIM_1_TX", "PRI_TDM_TX",
  5523. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5524. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5525. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5526. };
  5527. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5528. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5529. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5530. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5531. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5532. MSM_BACKEND_DAI_PRI_I2S_RX,
  5533. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5534. msm_routing_put_audio_mixer),
  5535. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5536. MSM_BACKEND_DAI_PRI_I2S_RX,
  5537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5538. msm_routing_put_audio_mixer),
  5539. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5540. MSM_BACKEND_DAI_PRI_I2S_RX,
  5541. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5542. msm_routing_put_audio_mixer),
  5543. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5544. MSM_BACKEND_DAI_PRI_I2S_RX,
  5545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5546. msm_routing_put_audio_mixer),
  5547. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5548. MSM_BACKEND_DAI_PRI_I2S_RX,
  5549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5550. msm_routing_put_audio_mixer),
  5551. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5552. MSM_BACKEND_DAI_PRI_I2S_RX,
  5553. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5554. msm_routing_put_audio_mixer),
  5555. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5556. MSM_BACKEND_DAI_PRI_I2S_RX,
  5557. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5558. msm_routing_put_audio_mixer),
  5559. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5560. MSM_BACKEND_DAI_PRI_I2S_RX,
  5561. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5562. msm_routing_put_audio_mixer),
  5563. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5564. MSM_BACKEND_DAI_PRI_I2S_RX,
  5565. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5566. msm_routing_put_audio_mixer),
  5567. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5568. MSM_BACKEND_DAI_PRI_I2S_RX,
  5569. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5570. msm_routing_put_audio_mixer),
  5571. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5572. MSM_BACKEND_DAI_PRI_I2S_RX,
  5573. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5574. msm_routing_put_audio_mixer),
  5575. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5576. MSM_BACKEND_DAI_PRI_I2S_RX,
  5577. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5578. msm_routing_put_audio_mixer),
  5579. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5580. MSM_BACKEND_DAI_PRI_I2S_RX,
  5581. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5582. msm_routing_put_audio_mixer),
  5583. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5584. MSM_BACKEND_DAI_PRI_I2S_RX,
  5585. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5586. msm_routing_put_audio_mixer),
  5587. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5588. MSM_BACKEND_DAI_PRI_I2S_RX,
  5589. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5590. msm_routing_put_audio_mixer),
  5591. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5592. MSM_BACKEND_DAI_PRI_I2S_RX,
  5593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5594. msm_routing_put_audio_mixer),
  5595. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5596. MSM_BACKEND_DAI_PRI_I2S_RX,
  5597. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5598. msm_routing_put_audio_mixer),
  5599. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5600. MSM_BACKEND_DAI_PRI_I2S_RX,
  5601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5602. msm_routing_put_audio_mixer),
  5603. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_PRI_I2S_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_PRI_I2S_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_PRI_I2S_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_PRI_I2S_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_PRI_I2S_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. };
  5624. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5625. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5626. MSM_BACKEND_DAI_SEC_I2S_RX,
  5627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5628. msm_routing_put_audio_mixer),
  5629. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5630. MSM_BACKEND_DAI_SEC_I2S_RX,
  5631. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5632. msm_routing_put_audio_mixer),
  5633. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5634. MSM_BACKEND_DAI_SEC_I2S_RX,
  5635. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5636. msm_routing_put_audio_mixer),
  5637. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5638. MSM_BACKEND_DAI_SEC_I2S_RX,
  5639. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5640. msm_routing_put_audio_mixer),
  5641. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5642. MSM_BACKEND_DAI_SEC_I2S_RX,
  5643. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5644. msm_routing_put_audio_mixer),
  5645. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5646. MSM_BACKEND_DAI_SEC_I2S_RX,
  5647. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5648. msm_routing_put_audio_mixer),
  5649. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5650. MSM_BACKEND_DAI_SEC_I2S_RX,
  5651. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5652. msm_routing_put_audio_mixer),
  5653. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5654. MSM_BACKEND_DAI_SEC_I2S_RX,
  5655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5656. msm_routing_put_audio_mixer),
  5657. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5658. MSM_BACKEND_DAI_SEC_I2S_RX,
  5659. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5660. msm_routing_put_audio_mixer),
  5661. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5662. MSM_BACKEND_DAI_SEC_I2S_RX,
  5663. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5664. msm_routing_put_audio_mixer),
  5665. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5666. MSM_BACKEND_DAI_SEC_I2S_RX,
  5667. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5668. msm_routing_put_audio_mixer),
  5669. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5670. MSM_BACKEND_DAI_SEC_I2S_RX,
  5671. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5672. msm_routing_put_audio_mixer),
  5673. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5674. MSM_BACKEND_DAI_SEC_I2S_RX,
  5675. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5676. msm_routing_put_audio_mixer),
  5677. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5678. MSM_BACKEND_DAI_SEC_I2S_RX,
  5679. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5680. msm_routing_put_audio_mixer),
  5681. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5682. MSM_BACKEND_DAI_SEC_I2S_RX,
  5683. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5684. msm_routing_put_audio_mixer),
  5685. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5686. MSM_BACKEND_DAI_SEC_I2S_RX,
  5687. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5688. msm_routing_put_audio_mixer),
  5689. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_SEC_I2S_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_SEC_I2S_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_SEC_I2S_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_SEC_I2S_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_SEC_I2S_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_SEC_I2S_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_SEC_I2S_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. };
  5718. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5719. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5720. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5722. msm_routing_put_audio_mixer),
  5723. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5724. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5725. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5726. msm_routing_put_audio_mixer),
  5727. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5728. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5730. msm_routing_put_audio_mixer),
  5731. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5732. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5734. msm_routing_put_audio_mixer),
  5735. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5736. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5738. msm_routing_put_audio_mixer),
  5739. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5740. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5741. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5742. msm_routing_put_audio_mixer),
  5743. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5744. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5745. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5746. msm_routing_put_audio_mixer),
  5747. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5748. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5749. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5750. msm_routing_put_audio_mixer),
  5751. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5752. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5753. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5754. msm_routing_put_audio_mixer),
  5755. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5756. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5757. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5758. msm_routing_put_audio_mixer),
  5759. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5760. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5761. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5762. msm_routing_put_audio_mixer),
  5763. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5764. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5765. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5766. msm_routing_put_audio_mixer),
  5767. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5768. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5769. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5770. msm_routing_put_audio_mixer),
  5771. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5772. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5773. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5774. msm_routing_put_audio_mixer),
  5775. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. };
  5812. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5813. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5814. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5815. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5816. msm_routing_put_audio_mixer),
  5817. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5818. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5819. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5820. msm_routing_put_audio_mixer),
  5821. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5822. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5824. msm_routing_put_audio_mixer),
  5825. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5826. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5827. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5828. msm_routing_put_audio_mixer),
  5829. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5846. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5847. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5848. msm_routing_put_audio_mixer),
  5849. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5850. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5851. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5852. msm_routing_put_audio_mixer),
  5853. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5854. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5855. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5856. msm_routing_put_audio_mixer),
  5857. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5858. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5859. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5860. msm_routing_put_audio_mixer),
  5861. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. };
  5906. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5907. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. };
  5976. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5977. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6058. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6059. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6060. msm_routing_put_audio_mixer),
  6061. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6062. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6063. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6064. msm_routing_put_audio_mixer),
  6065. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6066. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6067. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6068. msm_routing_put_audio_mixer),
  6069. };
  6070. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  6071. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6124. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6125. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6126. msm_routing_put_audio_mixer),
  6127. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6128. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6129. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6130. msm_routing_put_audio_mixer),
  6131. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6132. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6133. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6134. msm_routing_put_audio_mixer),
  6135. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6136. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6137. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6138. msm_routing_put_audio_mixer),
  6139. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6140. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6141. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6142. msm_routing_put_audio_mixer),
  6143. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6144. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6145. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6146. msm_routing_put_audio_mixer),
  6147. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6148. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6149. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6150. msm_routing_put_audio_mixer),
  6151. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6152. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6153. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6154. msm_routing_put_audio_mixer),
  6155. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6156. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6157. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6158. msm_routing_put_audio_mixer),
  6159. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6160. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6161. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6162. msm_routing_put_audio_mixer),
  6163. };
  6164. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  6165. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_MI2S_RX,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_MI2S_RX,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_MI2S_RX,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_MI2S_RX,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_MI2S_RX,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_MI2S_RX,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6190. MSM_BACKEND_DAI_MI2S_RX,
  6191. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6192. msm_routing_put_audio_mixer),
  6193. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6194. MSM_BACKEND_DAI_MI2S_RX,
  6195. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6196. msm_routing_put_audio_mixer),
  6197. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6198. MSM_BACKEND_DAI_MI2S_RX,
  6199. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6200. msm_routing_put_audio_mixer),
  6201. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6202. MSM_BACKEND_DAI_MI2S_RX,
  6203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6204. msm_routing_put_audio_mixer),
  6205. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6206. MSM_BACKEND_DAI_MI2S_RX,
  6207. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6208. msm_routing_put_audio_mixer),
  6209. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6210. MSM_BACKEND_DAI_MI2S_RX,
  6211. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6212. msm_routing_put_audio_mixer),
  6213. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6214. MSM_BACKEND_DAI_MI2S_RX,
  6215. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6216. msm_routing_put_audio_mixer),
  6217. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6218. MSM_BACKEND_DAI_MI2S_RX,
  6219. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6220. msm_routing_put_audio_mixer),
  6221. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6222. MSM_BACKEND_DAI_MI2S_RX,
  6223. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6224. msm_routing_put_audio_mixer),
  6225. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6226. MSM_BACKEND_DAI_MI2S_RX,
  6227. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6228. msm_routing_put_audio_mixer),
  6229. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6230. MSM_BACKEND_DAI_MI2S_RX,
  6231. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6232. msm_routing_put_audio_mixer),
  6233. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_MI2S_RX,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_MI2S_RX,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_MI2S_RX,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_MI2S_RX,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_MI2S_RX,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_MI2S_RX,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. };
  6258. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6259. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6260. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6261. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6262. msm_routing_put_audio_mixer),
  6263. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6264. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6266. msm_routing_put_audio_mixer),
  6267. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6268. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6270. msm_routing_put_audio_mixer),
  6271. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6272. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6273. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6274. msm_routing_put_audio_mixer),
  6275. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6276. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6277. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6278. msm_routing_put_audio_mixer),
  6279. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6280. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6281. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6282. msm_routing_put_audio_mixer),
  6283. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6284. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6285. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6286. msm_routing_put_audio_mixer),
  6287. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6288. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6289. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6290. msm_routing_put_audio_mixer),
  6291. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6292. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6293. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6294. msm_routing_put_audio_mixer),
  6295. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6296. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6297. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6298. msm_routing_put_audio_mixer),
  6299. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6300. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6301. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6302. msm_routing_put_audio_mixer),
  6303. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. };
  6356. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6357. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6358. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6360. msm_routing_put_audio_mixer),
  6361. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6362. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6363. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6364. msm_routing_put_audio_mixer),
  6365. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6366. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6368. msm_routing_put_audio_mixer),
  6369. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6370. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6372. msm_routing_put_audio_mixer),
  6373. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. };
  6450. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6451. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6520. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6521. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6522. msm_routing_put_audio_mixer),
  6523. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6524. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6525. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6526. msm_routing_put_audio_mixer),
  6527. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6528. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6529. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6530. msm_routing_put_audio_mixer),
  6531. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6532. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6533. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6534. msm_routing_put_audio_mixer),
  6535. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6536. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6537. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6538. msm_routing_put_audio_mixer),
  6539. };
  6540. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6541. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6586. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6587. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6588. msm_routing_put_audio_mixer),
  6589. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6590. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6591. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6592. msm_routing_put_audio_mixer),
  6593. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6594. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6595. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6596. msm_routing_put_audio_mixer),
  6597. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6598. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6599. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6600. msm_routing_put_audio_mixer),
  6601. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6602. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6603. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6604. msm_routing_put_audio_mixer),
  6605. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6606. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6607. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6608. msm_routing_put_audio_mixer),
  6609. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6610. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6611. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6612. msm_routing_put_audio_mixer),
  6613. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6614. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6615. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6616. msm_routing_put_audio_mixer),
  6617. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6618. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6619. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6620. msm_routing_put_audio_mixer),
  6621. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6622. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6623. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6624. msm_routing_put_audio_mixer),
  6625. };
  6626. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6627. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. };
  6632. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6633. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6634. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6636. msm_routing_put_audio_mixer),
  6637. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6638. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6639. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6640. msm_routing_put_audio_mixer),
  6641. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6642. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6643. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6644. msm_routing_put_audio_mixer),
  6645. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6646. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6647. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6648. msm_routing_put_audio_mixer),
  6649. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6650. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6651. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6652. msm_routing_put_audio_mixer),
  6653. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6722. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6723. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6724. msm_routing_put_audio_mixer),
  6725. };
  6726. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6727. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6792. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6793. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6794. msm_routing_put_audio_mixer),
  6795. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6796. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6797. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6798. msm_routing_put_audio_mixer),
  6799. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6800. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6801. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6802. msm_routing_put_audio_mixer),
  6803. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6804. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6805. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6806. msm_routing_put_audio_mixer),
  6807. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6808. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6809. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6810. msm_routing_put_audio_mixer),
  6811. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6812. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6813. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6814. msm_routing_put_audio_mixer),
  6815. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6816. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6817. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6818. msm_routing_put_audio_mixer),
  6819. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6820. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6821. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6822. msm_routing_put_audio_mixer),
  6823. };
  6824. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6862. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6864. msm_routing_put_audio_mixer),
  6865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6866. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6868. msm_routing_put_audio_mixer),
  6869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6870. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6872. msm_routing_put_audio_mixer),
  6873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6874. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6876. msm_routing_put_audio_mixer),
  6877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6878. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6880. msm_routing_put_audio_mixer),
  6881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6882. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6884. msm_routing_put_audio_mixer),
  6885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6886. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6888. msm_routing_put_audio_mixer),
  6889. };
  6890. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6891. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6952. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6954. msm_routing_put_audio_mixer),
  6955. };
  6956. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6957. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7022. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7023. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7024. msm_routing_put_audio_mixer),
  7025. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7026. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7027. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7028. msm_routing_put_audio_mixer),
  7029. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7030. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7031. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7032. msm_routing_put_audio_mixer),
  7033. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7034. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7035. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7036. msm_routing_put_audio_mixer),
  7037. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7038. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7039. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7040. msm_routing_put_audio_mixer),
  7041. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7042. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7043. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7044. msm_routing_put_audio_mixer),
  7045. };
  7046. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  7047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. };
  7136. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  7137. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_HDMI_RX,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_HDMI_RX,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_HDMI_RX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_HDMI_RX,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_HDMI_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_HDMI_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_HDMI_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_HDMI_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_HDMI_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_HDMI_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_HDMI_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_HDMI_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_HDMI_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_HDMI_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_HDMI_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_HDMI_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_HDMI_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_HDMI_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_HDMI_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_HDMI_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_HDMI_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_HDMI_RX,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_HDMI_RX,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. };
  7230. static const struct snd_kcontrol_new hdmi_ms_mixer_controls[] = {
  7231. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_HDMI_RX_MS,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_HDMI_RX_MS,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_HDMI_RX_MS,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_HDMI_RX_MS,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_HDMI_RX_MS,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_HDMI_RX_MS,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_HDMI_RX_MS,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_HDMI_RX_MS,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_HDMI_RX_MS,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_HDMI_RX_MS,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_HDMI_RX_MS,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_HDMI_RX_MS,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_HDMI_RX_MS,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_HDMI_RX_MS,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_HDMI_RX_MS,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_HDMI_RX_MS,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_HDMI_RX_MS,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_HDMI_RX_MS,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_HDMI_RX_MS,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_HDMI_RX_MS,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_HDMI_RX_MS,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_HDMI_RX_MS,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7320. MSM_BACKEND_DAI_HDMI_RX_MS,
  7321. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7322. msm_routing_put_audio_mixer),
  7323. };
  7324. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7325. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7390. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7391. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7392. msm_routing_put_audio_mixer),
  7393. };
  7394. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7395. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. };
  7464. /* incall music delivery mixer */
  7465. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7466. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7467. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7468. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7469. msm_routing_put_audio_mixer),
  7470. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7471. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7472. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7473. msm_routing_put_audio_mixer),
  7474. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7475. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7476. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7477. msm_routing_put_audio_mixer),
  7478. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7479. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7480. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7481. msm_routing_put_audio_mixer),
  7482. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7483. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7484. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7485. msm_routing_put_audio_mixer),
  7486. };
  7487. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7488. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7489. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7490. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7491. msm_routing_put_audio_mixer),
  7492. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7493. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7494. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7495. msm_routing_put_audio_mixer),
  7496. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7497. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7498. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7499. msm_routing_put_audio_mixer),
  7500. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7501. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7502. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7503. msm_routing_put_audio_mixer),
  7504. };
  7505. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7506. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7507. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7508. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7509. msm_routing_put_audio_mixer),
  7510. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7511. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7512. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7513. msm_routing_put_audio_mixer),
  7514. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7515. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7516. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7517. msm_routing_put_audio_mixer),
  7518. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7519. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7520. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7521. msm_routing_put_audio_mixer),
  7522. };
  7523. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7524. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7525. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7526. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7527. msm_routing_put_audio_mixer),
  7528. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7529. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7530. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7531. msm_routing_put_audio_mixer),
  7532. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7533. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7534. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7535. msm_routing_put_audio_mixer),
  7536. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7537. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7538. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7539. msm_routing_put_audio_mixer),
  7540. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7541. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7542. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7543. msm_routing_put_audio_mixer),
  7544. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7545. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7546. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7547. msm_routing_put_audio_mixer),
  7548. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7549. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7550. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7551. msm_routing_put_audio_mixer),
  7552. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7553. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7554. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7555. msm_routing_put_audio_mixer),
  7556. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7557. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7558. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7559. msm_routing_put_audio_mixer),
  7560. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7561. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7562. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7563. msm_routing_put_audio_mixer),
  7564. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7565. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7566. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7567. msm_routing_put_audio_mixer),
  7568. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7569. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7570. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7571. msm_routing_put_audio_mixer),
  7572. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7573. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7574. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7575. msm_routing_put_audio_mixer),
  7576. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7577. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7578. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7579. msm_routing_put_audio_mixer),
  7580. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7581. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7582. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7583. msm_routing_put_audio_mixer),
  7584. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7585. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7586. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7587. msm_routing_put_audio_mixer),
  7588. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7589. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7590. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7591. msm_routing_put_audio_mixer),
  7592. };
  7593. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7594. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7595. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7596. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7597. msm_routing_put_audio_mixer),
  7598. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7599. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7600. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7601. msm_routing_put_audio_mixer),
  7602. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7603. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7604. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7605. msm_routing_put_audio_mixer),
  7606. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7607. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7608. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7609. msm_routing_put_audio_mixer),
  7610. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7611. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7612. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7613. msm_routing_put_audio_mixer),
  7614. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7615. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7616. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7617. msm_routing_put_audio_mixer),
  7618. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7619. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7620. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7621. msm_routing_put_audio_mixer),
  7622. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7623. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7624. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7625. msm_routing_put_audio_mixer),
  7626. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7627. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7628. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7629. msm_routing_put_audio_mixer),
  7630. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7631. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7632. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7633. msm_routing_put_audio_mixer),
  7634. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7635. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7636. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7637. msm_routing_put_audio_mixer),
  7638. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7639. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7640. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7641. msm_routing_put_audio_mixer),
  7642. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7643. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7644. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7645. msm_routing_put_audio_mixer),
  7646. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7647. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7648. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7649. msm_routing_put_audio_mixer),
  7650. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7651. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7652. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7653. msm_routing_put_audio_mixer),
  7654. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7655. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7656. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7657. msm_routing_put_audio_mixer),
  7658. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7659. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7660. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7661. msm_routing_put_audio_mixer),
  7662. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7663. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7664. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7665. msm_routing_put_audio_mixer),
  7666. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7667. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7668. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7669. msm_routing_put_audio_mixer),
  7670. };
  7671. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7672. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7673. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7674. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7675. msm_routing_put_audio_mixer),
  7676. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7677. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7678. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7679. msm_routing_put_audio_mixer),
  7680. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7681. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7682. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7683. msm_routing_put_audio_mixer),
  7684. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7685. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7686. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7687. msm_routing_put_audio_mixer),
  7688. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7689. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7690. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7691. msm_routing_put_audio_mixer),
  7692. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7693. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7694. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7695. msm_routing_put_audio_mixer),
  7696. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7697. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7698. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7699. msm_routing_put_audio_mixer),
  7700. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7701. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7703. msm_routing_put_audio_mixer),
  7704. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7705. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7706. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7707. msm_routing_put_audio_mixer),
  7708. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7709. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7710. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7711. msm_routing_put_audio_mixer),
  7712. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7713. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7714. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7715. msm_routing_put_audio_mixer),
  7716. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7717. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7718. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7719. msm_routing_put_audio_mixer),
  7720. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7721. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7722. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7723. msm_routing_put_audio_mixer),
  7724. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7725. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7726. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7727. msm_routing_put_audio_mixer),
  7728. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7729. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7730. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7731. msm_routing_put_audio_mixer),
  7732. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7733. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7734. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7735. msm_routing_put_audio_mixer),
  7736. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7737. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7738. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7739. msm_routing_put_audio_mixer),
  7740. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7741. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7742. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7743. msm_routing_put_audio_mixer),
  7744. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7745. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7746. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7747. msm_routing_put_audio_mixer),
  7748. };
  7749. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7750. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7752. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7753. msm_routing_put_audio_mixer),
  7754. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7755. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7756. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7757. msm_routing_put_audio_mixer),
  7758. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7759. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7760. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7761. msm_routing_put_audio_mixer),
  7762. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7763. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7764. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7765. msm_routing_put_audio_mixer),
  7766. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7767. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7768. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7769. msm_routing_put_audio_mixer),
  7770. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7771. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7772. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7773. msm_routing_put_audio_mixer),
  7774. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7775. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7776. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7777. msm_routing_put_audio_mixer),
  7778. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7780. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7781. msm_routing_put_audio_mixer),
  7782. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7783. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7784. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7785. msm_routing_put_audio_mixer),
  7786. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7788. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7789. msm_routing_put_audio_mixer),
  7790. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7792. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7793. msm_routing_put_audio_mixer),
  7794. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7796. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7797. msm_routing_put_audio_mixer),
  7798. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7799. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7800. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7801. msm_routing_put_audio_mixer),
  7802. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7803. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7804. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7805. msm_routing_put_audio_mixer),
  7806. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7807. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7808. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7809. msm_routing_put_audio_mixer),
  7810. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7811. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7812. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7813. msm_routing_put_audio_mixer),
  7814. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7815. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7816. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7817. msm_routing_put_audio_mixer),
  7818. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7819. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7820. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7821. msm_routing_put_audio_mixer),
  7822. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7824. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7825. msm_routing_put_audio_mixer),
  7826. };
  7827. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7828. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7829. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7830. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7831. msm_routing_put_audio_mixer),
  7832. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7833. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7834. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7835. msm_routing_put_audio_mixer),
  7836. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7837. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7838. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7839. msm_routing_put_audio_mixer),
  7840. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7841. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7842. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7843. msm_routing_put_audio_mixer),
  7844. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7845. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7846. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7847. msm_routing_put_audio_mixer),
  7848. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7850. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7851. msm_routing_put_audio_mixer),
  7852. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7854. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7855. msm_routing_put_audio_mixer),
  7856. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7858. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7859. msm_routing_put_audio_mixer),
  7860. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7862. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7863. msm_routing_put_audio_mixer),
  7864. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7865. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7866. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7867. msm_routing_put_audio_mixer),
  7868. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7869. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7870. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7871. msm_routing_put_audio_mixer),
  7872. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7873. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7874. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7875. msm_routing_put_audio_mixer),
  7876. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7877. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7878. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7879. msm_routing_put_audio_mixer),
  7880. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7881. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7882. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7883. msm_routing_put_audio_mixer),
  7884. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7885. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7886. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7887. msm_routing_put_audio_mixer),
  7888. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7889. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7890. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7891. msm_routing_put_audio_mixer),
  7892. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7893. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7894. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7895. msm_routing_put_audio_mixer),
  7896. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7897. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7898. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7899. msm_routing_put_audio_mixer),
  7900. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7901. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7902. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7903. msm_routing_put_audio_mixer),
  7904. };
  7905. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7906. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7907. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7908. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7909. msm_routing_put_audio_mixer),
  7910. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7911. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7912. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7913. msm_routing_put_audio_mixer),
  7914. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7915. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7916. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7917. msm_routing_put_audio_mixer),
  7918. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7919. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7920. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7921. msm_routing_put_audio_mixer),
  7922. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7923. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7924. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7925. msm_routing_put_audio_mixer),
  7926. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7927. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7928. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7929. msm_routing_put_audio_mixer),
  7930. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7931. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7932. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7933. msm_routing_put_audio_mixer),
  7934. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7935. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7936. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7937. msm_routing_put_audio_mixer),
  7938. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7939. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7940. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7941. msm_routing_put_audio_mixer),
  7942. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7943. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7944. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7945. msm_routing_put_audio_mixer),
  7946. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7947. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7948. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7949. msm_routing_put_audio_mixer),
  7950. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7951. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7952. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7953. msm_routing_put_audio_mixer),
  7954. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7955. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7956. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7957. msm_routing_put_audio_mixer),
  7958. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7959. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7960. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7961. msm_routing_put_audio_mixer),
  7962. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7963. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7964. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7965. msm_routing_put_audio_mixer),
  7966. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7967. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7969. msm_routing_put_audio_mixer),
  7970. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7971. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7972. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7973. msm_routing_put_audio_mixer),
  7974. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7975. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7976. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7977. msm_routing_put_audio_mixer),
  7978. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7979. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7980. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7981. msm_routing_put_audio_mixer),
  7982. };
  7983. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7984. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7985. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7986. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7987. msm_routing_put_audio_mixer),
  7988. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7989. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7990. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7991. msm_routing_put_audio_mixer),
  7992. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7993. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7994. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7995. msm_routing_put_audio_mixer),
  7996. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7997. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7998. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7999. msm_routing_put_audio_mixer),
  8000. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8001. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8002. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8003. msm_routing_put_audio_mixer),
  8004. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8005. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8006. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8007. msm_routing_put_audio_mixer),
  8008. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8009. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8010. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8011. msm_routing_put_audio_mixer),
  8012. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8013. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8014. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8015. msm_routing_put_audio_mixer),
  8016. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8017. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8018. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8019. msm_routing_put_audio_mixer),
  8020. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8021. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8022. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8023. msm_routing_put_audio_mixer),
  8024. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8025. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8026. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8027. msm_routing_put_audio_mixer),
  8028. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8029. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8030. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8031. msm_routing_put_audio_mixer),
  8032. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8033. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8034. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8035. msm_routing_put_audio_mixer),
  8036. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8037. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8038. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8039. msm_routing_put_audio_mixer),
  8040. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8041. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8042. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8043. msm_routing_put_audio_mixer),
  8044. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8045. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8046. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8047. msm_routing_put_audio_mixer),
  8048. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8049. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8050. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8051. msm_routing_put_audio_mixer),
  8052. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8053. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8054. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8055. msm_routing_put_audio_mixer),
  8056. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8057. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8058. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8059. msm_routing_put_audio_mixer),
  8060. };
  8061. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  8062. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8063. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8064. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8065. msm_routing_put_audio_mixer),
  8066. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8067. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8068. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8069. msm_routing_put_audio_mixer),
  8070. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8071. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8072. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8073. msm_routing_put_audio_mixer),
  8074. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8075. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8076. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8077. msm_routing_put_audio_mixer),
  8078. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8079. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8080. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8081. msm_routing_put_audio_mixer),
  8082. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8083. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8084. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8085. msm_routing_put_audio_mixer),
  8086. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8087. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8088. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8089. msm_routing_put_audio_mixer),
  8090. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8091. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8092. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8093. msm_routing_put_audio_mixer),
  8094. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8095. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8096. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8097. msm_routing_put_audio_mixer),
  8098. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8099. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8100. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8101. msm_routing_put_audio_mixer),
  8102. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8103. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8104. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8105. msm_routing_put_audio_mixer),
  8106. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8107. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8108. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8109. msm_routing_put_audio_mixer),
  8110. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8111. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8112. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8113. msm_routing_put_audio_mixer),
  8114. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8115. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8116. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8117. msm_routing_put_audio_mixer),
  8118. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8119. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8120. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8121. msm_routing_put_audio_mixer),
  8122. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8123. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8124. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8125. msm_routing_put_audio_mixer),
  8126. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8127. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8128. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8129. msm_routing_put_audio_mixer),
  8130. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8131. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8132. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8133. msm_routing_put_audio_mixer),
  8134. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8135. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8136. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8137. msm_routing_put_audio_mixer),
  8138. };
  8139. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  8140. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8141. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8142. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8143. msm_routing_put_audio_mixer),
  8144. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8145. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8146. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8147. msm_routing_put_audio_mixer),
  8148. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8149. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8150. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8151. msm_routing_put_audio_mixer),
  8152. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8153. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8154. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8155. msm_routing_put_audio_mixer),
  8156. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8157. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8158. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8159. msm_routing_put_audio_mixer),
  8160. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8161. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8162. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8163. msm_routing_put_audio_mixer),
  8164. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8165. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8166. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8167. msm_routing_put_audio_mixer),
  8168. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8169. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8170. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8171. msm_routing_put_audio_mixer),
  8172. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8173. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8174. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8175. msm_routing_put_audio_mixer),
  8176. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8177. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8178. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8179. msm_routing_put_audio_mixer),
  8180. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8181. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8182. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8183. msm_routing_put_audio_mixer),
  8184. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8185. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8186. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8187. msm_routing_put_audio_mixer),
  8188. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8189. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8190. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8191. msm_routing_put_audio_mixer),
  8192. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8193. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8194. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8195. msm_routing_put_audio_mixer),
  8196. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8197. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8198. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8199. msm_routing_put_audio_mixer),
  8200. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8201. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8202. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8203. msm_routing_put_audio_mixer),
  8204. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8205. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8206. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8207. msm_routing_put_audio_mixer),
  8208. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8209. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8210. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8211. msm_routing_put_audio_mixer),
  8212. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8213. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8214. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8215. msm_routing_put_audio_mixer),
  8216. };
  8217. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  8218. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8219. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8220. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8221. msm_routing_put_audio_mixer),
  8222. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8223. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8224. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8225. msm_routing_put_audio_mixer),
  8226. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8227. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8228. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8229. msm_routing_put_audio_mixer),
  8230. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8231. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8232. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8233. msm_routing_put_audio_mixer),
  8234. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8235. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8236. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8237. msm_routing_put_audio_mixer),
  8238. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8239. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8240. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8241. msm_routing_put_audio_mixer),
  8242. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8243. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8244. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8245. msm_routing_put_audio_mixer),
  8246. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8247. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8248. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8249. msm_routing_put_audio_mixer),
  8250. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8251. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8252. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8253. msm_routing_put_audio_mixer),
  8254. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8255. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8256. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8257. msm_routing_put_audio_mixer),
  8258. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8259. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8260. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8261. msm_routing_put_audio_mixer),
  8262. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8263. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8264. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8265. msm_routing_put_audio_mixer),
  8266. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8267. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8268. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8269. msm_routing_put_audio_mixer),
  8270. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8271. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8272. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8273. msm_routing_put_audio_mixer),
  8274. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8275. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8276. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8277. msm_routing_put_audio_mixer),
  8278. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8279. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8280. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8281. msm_routing_put_audio_mixer),
  8282. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8283. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8284. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8285. msm_routing_put_audio_mixer),
  8286. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8287. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8288. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8289. msm_routing_put_audio_mixer),
  8290. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8291. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8292. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8293. msm_routing_put_audio_mixer),
  8294. };
  8295. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8296. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8297. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8298. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8299. msm_routing_put_audio_mixer),
  8300. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8301. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8302. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8303. msm_routing_put_audio_mixer),
  8304. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8305. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8306. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8307. msm_routing_put_audio_mixer),
  8308. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8309. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8310. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8311. msm_routing_put_audio_mixer),
  8312. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8313. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8314. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8315. msm_routing_put_audio_mixer),
  8316. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8317. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8318. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8319. msm_routing_put_audio_mixer),
  8320. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8321. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8322. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8323. msm_routing_put_audio_mixer),
  8324. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8325. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8326. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8327. msm_routing_put_audio_mixer),
  8328. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8329. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8330. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8331. msm_routing_put_audio_mixer),
  8332. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8333. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8335. msm_routing_put_audio_mixer),
  8336. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8337. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8338. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8339. msm_routing_put_audio_mixer),
  8340. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8341. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8342. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8343. msm_routing_put_audio_mixer),
  8344. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8345. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8346. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8347. msm_routing_put_audio_mixer),
  8348. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8349. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8350. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8351. msm_routing_put_audio_mixer),
  8352. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8353. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8354. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8355. msm_routing_put_audio_mixer),
  8356. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8357. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8358. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8359. msm_routing_put_audio_mixer),
  8360. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8361. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8362. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8363. msm_routing_put_audio_mixer),
  8364. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8365. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8366. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8367. msm_routing_put_audio_mixer),
  8368. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8369. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8370. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8371. msm_routing_put_audio_mixer),
  8372. };
  8373. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8374. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8375. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8377. msm_routing_put_audio_mixer),
  8378. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8379. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8380. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8381. msm_routing_put_audio_mixer),
  8382. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8383. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8385. msm_routing_put_audio_mixer),
  8386. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8387. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8389. msm_routing_put_audio_mixer),
  8390. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8391. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8392. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8393. msm_routing_put_audio_mixer),
  8394. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8395. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8397. msm_routing_put_audio_mixer),
  8398. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8399. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8400. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8401. msm_routing_put_audio_mixer),
  8402. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8403. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8404. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8405. msm_routing_put_audio_mixer),
  8406. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8407. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8408. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8409. msm_routing_put_audio_mixer),
  8410. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8411. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8412. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8413. msm_routing_put_audio_mixer),
  8414. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8415. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8416. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8417. msm_routing_put_audio_mixer),
  8418. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8419. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8420. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8421. msm_routing_put_audio_mixer),
  8422. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8423. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8424. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8425. msm_routing_put_audio_mixer),
  8426. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8427. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8428. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8429. msm_routing_put_audio_mixer),
  8430. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8431. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8432. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8433. msm_routing_put_audio_mixer),
  8434. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8435. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8436. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8437. msm_routing_put_audio_mixer),
  8438. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8439. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8440. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8441. msm_routing_put_audio_mixer),
  8442. };
  8443. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8444. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8445. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8446. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8447. msm_routing_put_audio_mixer),
  8448. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8449. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8450. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8451. msm_routing_put_audio_mixer),
  8452. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8453. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8454. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8455. msm_routing_put_audio_mixer),
  8456. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8457. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8458. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8459. msm_routing_put_audio_mixer),
  8460. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8461. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8462. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8463. msm_routing_put_audio_mixer),
  8464. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8465. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8466. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8467. msm_routing_put_audio_mixer),
  8468. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8469. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8470. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8471. msm_routing_put_audio_mixer),
  8472. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8473. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8474. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8475. msm_routing_put_audio_mixer),
  8476. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8477. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8478. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8479. msm_routing_put_audio_mixer),
  8480. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8481. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8482. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8483. msm_routing_put_audio_mixer),
  8484. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8485. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8486. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8487. msm_routing_put_audio_mixer),
  8488. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8489. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8490. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8491. msm_routing_put_audio_mixer),
  8492. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8493. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8494. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8495. msm_routing_put_audio_mixer),
  8496. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8497. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8498. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8499. msm_routing_put_audio_mixer),
  8500. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8501. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8502. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8503. msm_routing_put_audio_mixer),
  8504. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8505. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8506. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8507. msm_routing_put_audio_mixer),
  8508. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8509. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8510. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8511. msm_routing_put_audio_mixer),
  8512. };
  8513. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8514. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8515. MSM_BACKEND_DAI_USB_RX,
  8516. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8517. msm_routing_put_audio_mixer),
  8518. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8519. MSM_BACKEND_DAI_USB_RX,
  8520. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8521. msm_routing_put_audio_mixer),
  8522. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8523. MSM_BACKEND_DAI_USB_RX,
  8524. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8525. msm_routing_put_audio_mixer),
  8526. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8527. MSM_BACKEND_DAI_USB_RX,
  8528. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8529. msm_routing_put_audio_mixer),
  8530. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8531. MSM_BACKEND_DAI_USB_RX,
  8532. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8533. msm_routing_put_audio_mixer),
  8534. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8535. MSM_BACKEND_DAI_USB_RX,
  8536. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8537. msm_routing_put_audio_mixer),
  8538. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8539. MSM_BACKEND_DAI_USB_RX,
  8540. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8541. msm_routing_put_audio_mixer),
  8542. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8543. MSM_BACKEND_DAI_USB_RX,
  8544. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8545. msm_routing_put_audio_mixer),
  8546. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8547. MSM_BACKEND_DAI_USB_RX,
  8548. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8549. msm_routing_put_audio_mixer),
  8550. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8551. MSM_BACKEND_DAI_USB_RX,
  8552. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8553. msm_routing_put_audio_mixer),
  8554. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8555. MSM_BACKEND_DAI_USB_RX,
  8556. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8557. msm_routing_put_audio_mixer),
  8558. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8559. MSM_BACKEND_DAI_USB_RX,
  8560. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8561. msm_routing_put_audio_mixer),
  8562. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8563. MSM_BACKEND_DAI_USB_RX,
  8564. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8565. msm_routing_put_audio_mixer),
  8566. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8567. MSM_BACKEND_DAI_USB_RX,
  8568. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8569. msm_routing_put_audio_mixer),
  8570. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8571. MSM_BACKEND_DAI_USB_RX,
  8572. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8573. msm_routing_put_audio_mixer),
  8574. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8575. MSM_BACKEND_DAI_USB_RX,
  8576. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8577. msm_routing_put_audio_mixer),
  8578. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8579. MSM_BACKEND_DAI_USB_RX,
  8580. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8581. msm_routing_put_audio_mixer),
  8582. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8583. MSM_BACKEND_DAI_USB_RX,
  8584. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8585. msm_routing_put_audio_mixer),
  8586. };
  8587. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8588. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8589. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8590. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8591. msm_routing_put_audio_mixer),
  8592. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8593. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8594. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8595. msm_routing_put_audio_mixer),
  8596. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8597. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8599. msm_routing_put_audio_mixer),
  8600. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8601. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8603. msm_routing_put_audio_mixer),
  8604. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8605. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8606. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8607. msm_routing_put_audio_mixer),
  8608. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8609. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8610. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8611. msm_routing_put_audio_mixer),
  8612. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8613. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8614. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8615. msm_routing_put_audio_mixer),
  8616. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8617. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8618. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8619. msm_routing_put_audio_mixer),
  8620. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8621. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8623. msm_routing_put_audio_mixer),
  8624. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8625. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8626. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8627. msm_routing_put_audio_mixer),
  8628. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8629. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8630. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8631. msm_routing_put_audio_mixer),
  8632. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8633. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8634. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8635. msm_routing_put_audio_mixer),
  8636. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8637. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8638. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8639. msm_routing_put_audio_mixer),
  8640. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8641. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8642. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8643. msm_routing_put_audio_mixer),
  8644. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8645. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8646. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8647. msm_routing_put_audio_mixer),
  8648. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8649. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8651. msm_routing_put_audio_mixer),
  8652. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8653. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8654. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8655. msm_routing_put_audio_mixer),
  8656. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8657. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8658. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8659. msm_routing_put_audio_mixer),
  8660. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8661. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8662. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8663. msm_routing_put_audio_mixer),
  8664. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8665. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8666. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8667. msm_routing_put_audio_mixer),
  8668. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8669. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8670. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8671. msm_routing_put_audio_mixer),
  8672. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8673. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8674. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8675. msm_routing_put_audio_mixer),
  8676. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8677. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8678. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8679. msm_routing_put_audio_mixer),
  8680. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8681. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8682. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8683. msm_routing_put_audio_mixer),
  8684. };
  8685. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8686. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8687. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8688. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8689. msm_routing_put_audio_mixer),
  8690. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8691. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8692. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8693. msm_routing_put_audio_mixer),
  8694. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8695. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8696. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8697. msm_routing_put_audio_mixer),
  8698. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8699. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8700. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8701. msm_routing_put_audio_mixer),
  8702. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8703. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8704. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8705. msm_routing_put_audio_mixer),
  8706. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8707. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8708. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8709. msm_routing_put_audio_mixer),
  8710. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8711. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8712. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8713. msm_routing_put_audio_mixer),
  8714. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8715. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8716. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8717. msm_routing_put_audio_mixer),
  8718. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8719. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8720. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8721. msm_routing_put_audio_mixer),
  8722. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8723. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8724. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8725. msm_routing_put_audio_mixer),
  8726. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8727. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8728. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8729. msm_routing_put_audio_mixer),
  8730. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8731. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8732. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8733. msm_routing_put_audio_mixer),
  8734. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8735. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8736. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8737. msm_routing_put_audio_mixer),
  8738. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8739. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8740. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8741. msm_routing_put_audio_mixer),
  8742. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8743. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8744. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8745. msm_routing_put_audio_mixer),
  8746. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8747. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8748. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8749. msm_routing_put_audio_mixer),
  8750. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8751. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8752. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8753. msm_routing_put_audio_mixer),
  8754. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8755. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8756. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8757. msm_routing_put_audio_mixer),
  8758. };
  8759. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8760. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8761. MSM_BACKEND_DAI_INT_FM_RX,
  8762. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8763. msm_routing_put_audio_mixer),
  8764. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8765. MSM_BACKEND_DAI_INT_FM_RX,
  8766. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8767. msm_routing_put_audio_mixer),
  8768. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8769. MSM_BACKEND_DAI_INT_FM_RX,
  8770. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8771. msm_routing_put_audio_mixer),
  8772. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8773. MSM_BACKEND_DAI_INT_FM_RX,
  8774. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8775. msm_routing_put_audio_mixer),
  8776. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8777. MSM_BACKEND_DAI_INT_FM_RX,
  8778. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8779. msm_routing_put_audio_mixer),
  8780. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8781. MSM_BACKEND_DAI_INT_FM_RX,
  8782. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8783. msm_routing_put_audio_mixer),
  8784. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8785. MSM_BACKEND_DAI_INT_FM_RX,
  8786. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8787. msm_routing_put_audio_mixer),
  8788. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8789. MSM_BACKEND_DAI_INT_FM_RX,
  8790. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8791. msm_routing_put_audio_mixer),
  8792. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8793. MSM_BACKEND_DAI_INT_FM_RX,
  8794. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8795. msm_routing_put_audio_mixer),
  8796. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8797. MSM_BACKEND_DAI_INT_FM_RX,
  8798. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8799. msm_routing_put_audio_mixer),
  8800. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8801. MSM_BACKEND_DAI_INT_FM_RX,
  8802. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8803. msm_routing_put_audio_mixer),
  8804. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8805. MSM_BACKEND_DAI_INT_FM_RX,
  8806. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8807. msm_routing_put_audio_mixer),
  8808. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8809. MSM_BACKEND_DAI_INT_FM_RX,
  8810. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8811. msm_routing_put_audio_mixer),
  8812. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8813. MSM_BACKEND_DAI_INT_FM_RX,
  8814. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8815. msm_routing_put_audio_mixer),
  8816. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8817. MSM_BACKEND_DAI_INT_FM_RX,
  8818. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8819. msm_routing_put_audio_mixer),
  8820. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8821. MSM_BACKEND_DAI_INT_FM_RX,
  8822. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8823. msm_routing_put_audio_mixer),
  8824. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8825. MSM_BACKEND_DAI_INT_FM_RX,
  8826. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8827. msm_routing_put_audio_mixer),
  8828. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8829. MSM_BACKEND_DAI_INT_FM_RX,
  8830. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8831. msm_routing_put_audio_mixer),
  8832. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8833. MSM_BACKEND_DAI_INT_FM_RX,
  8834. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8835. msm_routing_put_audio_mixer),
  8836. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8837. MSM_BACKEND_DAI_INT_FM_RX,
  8838. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8839. msm_routing_put_audio_mixer),
  8840. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8841. MSM_BACKEND_DAI_INT_FM_RX,
  8842. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8843. msm_routing_put_audio_mixer),
  8844. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8845. MSM_BACKEND_DAI_INT_FM_RX,
  8846. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8847. msm_routing_put_audio_mixer),
  8848. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8849. MSM_BACKEND_DAI_INT_FM_RX,
  8850. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8851. msm_routing_put_audio_mixer),
  8852. };
  8853. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8854. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8855. MSM_BACKEND_DAI_AFE_PCM_RX,
  8856. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8857. msm_routing_put_audio_mixer),
  8858. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8859. MSM_BACKEND_DAI_AFE_PCM_RX,
  8860. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8861. msm_routing_put_audio_mixer),
  8862. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8863. MSM_BACKEND_DAI_AFE_PCM_RX,
  8864. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8865. msm_routing_put_audio_mixer),
  8866. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8867. MSM_BACKEND_DAI_AFE_PCM_RX,
  8868. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8869. msm_routing_put_audio_mixer),
  8870. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8871. MSM_BACKEND_DAI_AFE_PCM_RX,
  8872. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8873. msm_routing_put_audio_mixer),
  8874. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8875. MSM_BACKEND_DAI_AFE_PCM_RX,
  8876. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8877. msm_routing_put_audio_mixer),
  8878. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8879. MSM_BACKEND_DAI_AFE_PCM_RX,
  8880. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8881. msm_routing_put_audio_mixer),
  8882. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8883. MSM_BACKEND_DAI_AFE_PCM_RX,
  8884. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8885. msm_routing_put_audio_mixer),
  8886. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8887. MSM_BACKEND_DAI_AFE_PCM_RX,
  8888. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8889. msm_routing_put_audio_mixer),
  8890. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8891. MSM_BACKEND_DAI_AFE_PCM_RX,
  8892. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8893. msm_routing_put_audio_mixer),
  8894. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8895. MSM_BACKEND_DAI_AFE_PCM_RX,
  8896. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8897. msm_routing_put_audio_mixer),
  8898. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8899. MSM_BACKEND_DAI_AFE_PCM_RX,
  8900. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8901. msm_routing_put_audio_mixer),
  8902. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8903. MSM_BACKEND_DAI_AFE_PCM_RX,
  8904. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8905. msm_routing_put_audio_mixer),
  8906. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8907. MSM_BACKEND_DAI_AFE_PCM_RX,
  8908. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8909. msm_routing_put_audio_mixer),
  8910. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8911. MSM_BACKEND_DAI_AFE_PCM_RX,
  8912. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8913. msm_routing_put_audio_mixer),
  8914. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8915. MSM_BACKEND_DAI_AFE_PCM_RX,
  8916. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8917. msm_routing_put_audio_mixer),
  8918. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8919. MSM_BACKEND_DAI_AFE_PCM_RX,
  8920. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8921. msm_routing_put_audio_mixer),
  8922. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8923. MSM_BACKEND_DAI_AFE_PCM_RX,
  8924. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8925. msm_routing_put_audio_mixer),
  8926. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8927. MSM_BACKEND_DAI_AFE_PCM_RX,
  8928. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8929. msm_routing_put_audio_mixer),
  8930. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8931. MSM_BACKEND_DAI_AFE_PCM_RX,
  8932. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8933. msm_routing_put_audio_mixer),
  8934. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8935. MSM_BACKEND_DAI_AFE_PCM_RX,
  8936. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8937. msm_routing_put_audio_mixer),
  8938. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8939. MSM_BACKEND_DAI_AFE_PCM_RX,
  8940. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8941. msm_routing_put_audio_mixer),
  8942. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8943. MSM_BACKEND_DAI_AFE_PCM_RX,
  8944. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8945. msm_routing_put_audio_mixer),
  8946. };
  8947. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8948. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8949. MSM_BACKEND_DAI_AUXPCM_RX,
  8950. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8951. msm_routing_put_audio_mixer),
  8952. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8953. MSM_BACKEND_DAI_AUXPCM_RX,
  8954. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8955. msm_routing_put_audio_mixer),
  8956. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8957. MSM_BACKEND_DAI_AUXPCM_RX,
  8958. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8959. msm_routing_put_audio_mixer),
  8960. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8961. MSM_BACKEND_DAI_AUXPCM_RX,
  8962. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8963. msm_routing_put_audio_mixer),
  8964. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8965. MSM_BACKEND_DAI_AUXPCM_RX,
  8966. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8967. msm_routing_put_audio_mixer),
  8968. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8969. MSM_BACKEND_DAI_AUXPCM_RX,
  8970. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8971. msm_routing_put_audio_mixer),
  8972. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8973. MSM_BACKEND_DAI_AUXPCM_RX,
  8974. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8975. msm_routing_put_audio_mixer),
  8976. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8977. MSM_BACKEND_DAI_AUXPCM_RX,
  8978. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8979. msm_routing_put_audio_mixer),
  8980. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8981. MSM_BACKEND_DAI_AUXPCM_RX,
  8982. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8983. msm_routing_put_audio_mixer),
  8984. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8985. MSM_BACKEND_DAI_AUXPCM_RX,
  8986. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8987. msm_routing_put_audio_mixer),
  8988. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8989. MSM_BACKEND_DAI_AUXPCM_RX,
  8990. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8991. msm_routing_put_audio_mixer),
  8992. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8993. MSM_BACKEND_DAI_AUXPCM_RX,
  8994. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8995. msm_routing_put_audio_mixer),
  8996. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8997. MSM_BACKEND_DAI_AUXPCM_RX,
  8998. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8999. msm_routing_put_audio_mixer),
  9000. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9001. MSM_BACKEND_DAI_AUXPCM_RX,
  9002. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9003. msm_routing_put_audio_mixer),
  9004. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9005. MSM_BACKEND_DAI_AUXPCM_RX,
  9006. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9007. msm_routing_put_audio_mixer),
  9008. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9009. MSM_BACKEND_DAI_AUXPCM_RX,
  9010. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9011. msm_routing_put_audio_mixer),
  9012. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9013. MSM_BACKEND_DAI_AUXPCM_RX,
  9014. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9015. msm_routing_put_audio_mixer),
  9016. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9017. MSM_BACKEND_DAI_AUXPCM_RX,
  9018. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9019. msm_routing_put_audio_mixer),
  9020. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9021. MSM_BACKEND_DAI_AUXPCM_RX,
  9022. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9023. msm_routing_put_audio_mixer),
  9024. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9025. MSM_BACKEND_DAI_AUXPCM_RX,
  9026. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9027. msm_routing_put_audio_mixer),
  9028. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9029. MSM_BACKEND_DAI_AUXPCM_RX,
  9030. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9031. msm_routing_put_audio_mixer),
  9032. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9033. MSM_BACKEND_DAI_AUXPCM_RX,
  9034. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9035. msm_routing_put_audio_mixer),
  9036. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9037. MSM_BACKEND_DAI_AUXPCM_RX,
  9038. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9039. msm_routing_put_audio_mixer),
  9040. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9041. MSM_BACKEND_DAI_AUXPCM_RX,
  9042. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9043. msm_routing_put_audio_mixer),
  9044. };
  9045. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  9046. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9047. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9048. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9049. msm_routing_put_audio_mixer),
  9050. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9051. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9052. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9053. msm_routing_put_audio_mixer),
  9054. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9055. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9056. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9057. msm_routing_put_audio_mixer),
  9058. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9059. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9060. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9061. msm_routing_put_audio_mixer),
  9062. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9063. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9064. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9065. msm_routing_put_audio_mixer),
  9066. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9067. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9068. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9069. msm_routing_put_audio_mixer),
  9070. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9071. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9072. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9073. msm_routing_put_audio_mixer),
  9074. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9075. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9076. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9077. msm_routing_put_audio_mixer),
  9078. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9079. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9080. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9081. msm_routing_put_audio_mixer),
  9082. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9083. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9084. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9085. msm_routing_put_audio_mixer),
  9086. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9087. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9088. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9089. msm_routing_put_audio_mixer),
  9090. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9091. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9092. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9093. msm_routing_put_audio_mixer),
  9094. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9095. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9096. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9097. msm_routing_put_audio_mixer),
  9098. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9099. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9100. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9101. msm_routing_put_audio_mixer),
  9102. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9103. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9104. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9105. msm_routing_put_audio_mixer),
  9106. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9107. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9108. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9109. msm_routing_put_audio_mixer),
  9110. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9111. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9112. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9113. msm_routing_put_audio_mixer),
  9114. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9115. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9116. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9117. msm_routing_put_audio_mixer),
  9118. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9119. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9120. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9121. msm_routing_put_audio_mixer),
  9122. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9123. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9124. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9125. msm_routing_put_audio_mixer),
  9126. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9127. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9128. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9129. msm_routing_put_audio_mixer),
  9130. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9131. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9132. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9133. msm_routing_put_audio_mixer),
  9134. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9135. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9136. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9137. msm_routing_put_audio_mixer),
  9138. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9139. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9140. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9141. msm_routing_put_audio_mixer),
  9142. };
  9143. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  9144. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9145. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9146. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9147. msm_routing_put_audio_mixer),
  9148. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9149. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9150. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9151. msm_routing_put_audio_mixer),
  9152. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9153. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9154. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9155. msm_routing_put_audio_mixer),
  9156. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9157. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9158. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9159. msm_routing_put_audio_mixer),
  9160. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9161. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9162. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9163. msm_routing_put_audio_mixer),
  9164. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9165. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9166. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9167. msm_routing_put_audio_mixer),
  9168. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9169. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9170. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9171. msm_routing_put_audio_mixer),
  9172. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9173. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9174. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9175. msm_routing_put_audio_mixer),
  9176. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9177. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9178. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9179. msm_routing_put_audio_mixer),
  9180. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9181. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9182. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9183. msm_routing_put_audio_mixer),
  9184. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9185. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9186. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9187. msm_routing_put_audio_mixer),
  9188. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9189. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9190. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9191. msm_routing_put_audio_mixer),
  9192. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9193. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9194. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9195. msm_routing_put_audio_mixer),
  9196. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9197. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9198. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9199. msm_routing_put_audio_mixer),
  9200. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9201. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9202. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9203. msm_routing_put_audio_mixer),
  9204. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9205. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9206. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9207. msm_routing_put_audio_mixer),
  9208. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9209. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9210. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9211. msm_routing_put_audio_mixer),
  9212. };
  9213. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  9214. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9215. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9216. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9217. msm_routing_put_audio_mixer),
  9218. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9219. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9220. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9221. msm_routing_put_audio_mixer),
  9222. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9223. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9224. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9225. msm_routing_put_audio_mixer),
  9226. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9227. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9228. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9229. msm_routing_put_audio_mixer),
  9230. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9231. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9232. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9233. msm_routing_put_audio_mixer),
  9234. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9235. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9236. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9237. msm_routing_put_audio_mixer),
  9238. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9239. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9240. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9241. msm_routing_put_audio_mixer),
  9242. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9243. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9245. msm_routing_put_audio_mixer),
  9246. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9247. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9248. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9249. msm_routing_put_audio_mixer),
  9250. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9251. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9252. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9253. msm_routing_put_audio_mixer),
  9254. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9255. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9256. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9257. msm_routing_put_audio_mixer),
  9258. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9259. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9260. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9261. msm_routing_put_audio_mixer),
  9262. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9263. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9264. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9265. msm_routing_put_audio_mixer),
  9266. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9267. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9268. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9269. msm_routing_put_audio_mixer),
  9270. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9271. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9272. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9273. msm_routing_put_audio_mixer),
  9274. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9275. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9276. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9277. msm_routing_put_audio_mixer),
  9278. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9279. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9280. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9281. msm_routing_put_audio_mixer),
  9282. };
  9283. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  9284. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9285. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9286. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9287. msm_routing_put_audio_mixer),
  9288. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9289. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9290. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9291. msm_routing_put_audio_mixer),
  9292. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9293. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9294. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9295. msm_routing_put_audio_mixer),
  9296. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9297. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9298. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9299. msm_routing_put_audio_mixer),
  9300. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9301. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9302. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9303. msm_routing_put_audio_mixer),
  9304. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9305. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9306. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9307. msm_routing_put_audio_mixer),
  9308. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9309. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9310. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9311. msm_routing_put_audio_mixer),
  9312. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9313. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9314. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9315. msm_routing_put_audio_mixer),
  9316. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9317. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9318. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9319. msm_routing_put_audio_mixer),
  9320. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9321. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9322. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9323. msm_routing_put_audio_mixer),
  9324. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9325. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9326. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9327. msm_routing_put_audio_mixer),
  9328. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9329. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9330. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9331. msm_routing_put_audio_mixer),
  9332. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9333. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9334. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9335. msm_routing_put_audio_mixer),
  9336. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9337. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9338. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9339. msm_routing_put_audio_mixer),
  9340. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9341. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9342. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9343. msm_routing_put_audio_mixer),
  9344. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9345. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9346. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9347. msm_routing_put_audio_mixer),
  9348. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9349. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9350. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9351. msm_routing_put_audio_mixer),
  9352. };
  9353. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9354. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9355. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9356. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9357. msm_routing_put_audio_mixer),
  9358. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9359. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9360. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9361. msm_routing_put_audio_mixer),
  9362. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9363. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9365. msm_routing_put_audio_mixer),
  9366. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9367. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9368. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9369. msm_routing_put_audio_mixer),
  9370. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9371. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9372. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9373. msm_routing_put_audio_mixer),
  9374. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9375. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9376. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9377. msm_routing_put_audio_mixer),
  9378. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9379. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9380. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9381. msm_routing_put_audio_mixer),
  9382. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9383. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9384. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9385. msm_routing_put_audio_mixer),
  9386. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9387. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9388. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9389. msm_routing_put_audio_mixer),
  9390. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9391. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9392. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9393. msm_routing_put_audio_mixer),
  9394. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9395. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9396. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9397. msm_routing_put_audio_mixer),
  9398. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9399. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9400. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9401. msm_routing_put_audio_mixer),
  9402. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9403. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9404. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9405. msm_routing_put_audio_mixer),
  9406. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9407. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9408. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9409. msm_routing_put_audio_mixer),
  9410. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9411. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9412. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9413. msm_routing_put_audio_mixer),
  9414. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9415. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9416. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9417. msm_routing_put_audio_mixer),
  9418. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9419. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9420. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9421. msm_routing_put_audio_mixer),
  9422. };
  9423. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9424. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9425. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9426. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9427. msm_routing_put_audio_mixer),
  9428. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9429. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9430. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9431. msm_routing_put_audio_mixer),
  9432. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9433. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9434. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9435. msm_routing_put_audio_mixer),
  9436. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9437. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9438. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9439. msm_routing_put_audio_mixer),
  9440. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9441. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9442. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9443. msm_routing_put_audio_mixer),
  9444. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9445. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9446. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9447. msm_routing_put_audio_mixer),
  9448. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9449. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9450. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9451. msm_routing_put_audio_mixer),
  9452. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9453. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9454. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9455. msm_routing_put_audio_mixer),
  9456. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9457. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9458. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9459. msm_routing_put_audio_mixer),
  9460. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9461. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9462. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9463. msm_routing_put_audio_mixer),
  9464. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9465. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9466. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9467. msm_routing_put_audio_mixer),
  9468. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9469. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9470. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9471. msm_routing_put_audio_mixer),
  9472. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9474. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9475. msm_routing_put_audio_mixer),
  9476. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9477. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9478. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9479. msm_routing_put_audio_mixer),
  9480. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9481. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9482. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9483. msm_routing_put_audio_mixer),
  9484. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9485. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9486. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9487. msm_routing_put_audio_mixer),
  9488. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9489. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9490. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9491. msm_routing_put_audio_mixer),
  9492. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9493. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9494. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9495. msm_routing_put_audio_mixer),
  9496. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9497. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9498. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9499. msm_routing_put_audio_mixer),
  9500. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9501. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9502. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9503. msm_routing_put_audio_mixer),
  9504. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9505. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9506. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9507. msm_routing_put_audio_mixer),
  9508. };
  9509. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9510. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9511. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9512. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9513. msm_routing_put_audio_mixer),
  9514. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9516. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9517. msm_routing_put_audio_mixer),
  9518. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9519. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9520. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9521. msm_routing_put_audio_mixer),
  9522. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9523. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9524. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9525. msm_routing_put_audio_mixer),
  9526. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9527. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9528. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9529. msm_routing_put_audio_mixer),
  9530. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9531. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9533. msm_routing_put_audio_mixer),
  9534. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9535. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9536. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9537. msm_routing_put_audio_mixer),
  9538. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9539. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9540. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9541. msm_routing_put_audio_mixer),
  9542. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9543. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9544. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9545. msm_routing_put_audio_mixer),
  9546. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9547. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9548. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9549. msm_routing_put_audio_mixer),
  9550. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9551. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9552. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9553. msm_routing_put_audio_mixer),
  9554. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9555. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9556. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9557. msm_routing_put_audio_mixer),
  9558. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9559. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9560. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9561. msm_routing_put_audio_mixer),
  9562. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9563. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9564. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9565. msm_routing_put_audio_mixer),
  9566. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9567. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9568. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9569. msm_routing_put_audio_mixer),
  9570. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9571. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9572. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9573. msm_routing_put_audio_mixer),
  9574. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9575. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9576. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9577. msm_routing_put_audio_mixer),
  9578. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9579. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9580. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9581. msm_routing_put_audio_mixer),
  9582. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9583. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9584. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9585. msm_routing_put_audio_mixer),
  9586. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9587. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9588. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9589. msm_routing_put_audio_mixer),
  9590. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9591. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9592. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9593. msm_routing_put_audio_mixer),
  9594. };
  9595. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9596. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9597. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9598. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9599. msm_routing_put_audio_mixer),
  9600. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9601. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9602. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9603. msm_routing_put_audio_mixer),
  9604. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9605. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9606. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9607. msm_routing_put_audio_mixer),
  9608. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9609. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9610. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9611. msm_routing_put_audio_mixer),
  9612. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9613. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9614. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9615. msm_routing_put_audio_mixer),
  9616. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9617. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9618. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9619. msm_routing_put_audio_mixer),
  9620. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9621. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9622. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9623. msm_routing_put_audio_mixer),
  9624. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9625. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9626. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9627. msm_routing_put_audio_mixer),
  9628. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9629. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9630. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9631. msm_routing_put_audio_mixer),
  9632. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9633. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9634. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9635. msm_routing_put_audio_mixer),
  9636. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9637. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9638. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9639. msm_routing_put_audio_mixer),
  9640. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9641. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9642. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9643. msm_routing_put_audio_mixer),
  9644. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9645. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9646. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9647. msm_routing_put_audio_mixer),
  9648. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9649. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9650. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9651. msm_routing_put_audio_mixer),
  9652. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9653. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9654. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9655. msm_routing_put_audio_mixer),
  9656. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9657. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9658. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9659. msm_routing_put_audio_mixer),
  9660. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9661. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9662. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9663. msm_routing_put_audio_mixer),
  9664. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9665. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9666. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9667. msm_routing_put_audio_mixer),
  9668. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9669. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9670. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9671. msm_routing_put_audio_mixer),
  9672. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9673. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9674. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9675. msm_routing_put_audio_mixer),
  9676. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9677. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9678. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9679. msm_routing_put_audio_mixer),
  9680. };
  9681. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9682. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9683. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9684. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9685. msm_routing_put_audio_mixer),
  9686. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9687. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9688. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9689. msm_routing_put_audio_mixer),
  9690. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9691. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9692. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9693. msm_routing_put_audio_mixer),
  9694. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9695. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9696. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9697. msm_routing_put_audio_mixer),
  9698. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9699. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9700. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9701. msm_routing_put_audio_mixer),
  9702. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9703. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9704. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9705. msm_routing_put_audio_mixer),
  9706. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9707. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9708. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9709. msm_routing_put_audio_mixer),
  9710. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9711. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9712. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9713. msm_routing_put_audio_mixer),
  9714. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9715. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9716. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9717. msm_routing_put_audio_mixer),
  9718. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9719. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9720. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9721. msm_routing_put_audio_mixer),
  9722. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9723. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9724. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9725. msm_routing_put_audio_mixer),
  9726. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9727. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9728. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9729. msm_routing_put_audio_mixer),
  9730. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9731. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9732. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9733. msm_routing_put_audio_mixer),
  9734. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9735. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9736. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9737. msm_routing_put_audio_mixer),
  9738. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9739. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9740. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9741. msm_routing_put_audio_mixer),
  9742. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9743. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9744. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9745. msm_routing_put_audio_mixer),
  9746. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9747. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9748. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9749. msm_routing_put_audio_mixer),
  9750. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9751. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9752. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9753. msm_routing_put_audio_mixer),
  9754. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9755. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9756. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9757. msm_routing_put_audio_mixer),
  9758. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9759. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9760. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9761. msm_routing_put_audio_mixer),
  9762. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9763. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9764. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9765. msm_routing_put_audio_mixer),
  9766. };
  9767. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9768. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9769. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9770. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9771. msm_routing_put_audio_mixer),
  9772. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9773. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9774. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9775. msm_routing_put_audio_mixer),
  9776. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9777. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9778. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9779. msm_routing_put_audio_mixer),
  9780. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9781. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9782. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9783. msm_routing_put_audio_mixer),
  9784. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9785. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9786. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9787. msm_routing_put_audio_mixer),
  9788. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9789. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9790. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9791. msm_routing_put_audio_mixer),
  9792. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9793. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9794. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9795. msm_routing_put_audio_mixer),
  9796. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9797. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9798. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9799. msm_routing_put_audio_mixer),
  9800. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9801. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9802. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9803. msm_routing_put_audio_mixer),
  9804. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9805. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9806. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9807. msm_routing_put_audio_mixer),
  9808. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9809. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9810. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9811. msm_routing_put_audio_mixer),
  9812. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9813. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9814. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9815. msm_routing_put_audio_mixer),
  9816. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9817. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9818. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9819. msm_routing_put_audio_mixer),
  9820. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9821. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9822. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9823. msm_routing_put_audio_mixer),
  9824. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9825. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9826. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9827. msm_routing_put_audio_mixer),
  9828. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9829. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9830. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9831. msm_routing_put_audio_mixer),
  9832. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9833. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9834. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9835. msm_routing_put_audio_mixer),
  9836. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9837. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9838. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9839. msm_routing_put_audio_mixer),
  9840. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9841. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9842. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9843. msm_routing_put_audio_mixer),
  9844. };
  9845. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9846. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9847. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9848. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9849. msm_routing_put_audio_mixer),
  9850. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9851. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9852. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9853. msm_routing_put_audio_mixer),
  9854. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9855. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9856. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9857. msm_routing_put_audio_mixer),
  9858. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9859. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9860. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9861. msm_routing_put_audio_mixer),
  9862. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9863. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9864. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9865. msm_routing_put_audio_mixer),
  9866. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9867. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9868. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9869. msm_routing_put_audio_mixer),
  9870. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9871. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9872. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9873. msm_routing_put_audio_mixer),
  9874. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9875. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9876. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9877. msm_routing_put_audio_mixer),
  9878. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9879. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9880. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9881. msm_routing_put_audio_mixer),
  9882. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9883. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9884. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9885. msm_routing_put_audio_mixer),
  9886. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9887. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9888. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9889. msm_routing_put_audio_mixer),
  9890. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9891. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9892. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9893. msm_routing_put_audio_mixer),
  9894. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9895. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9896. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9897. msm_routing_put_audio_mixer),
  9898. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9899. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9900. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9901. msm_routing_put_audio_mixer),
  9902. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9903. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9904. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9905. msm_routing_put_audio_mixer),
  9906. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9907. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9909. msm_routing_put_audio_mixer),
  9910. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9911. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9912. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9913. msm_routing_put_audio_mixer),
  9914. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9915. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9916. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9917. msm_routing_put_audio_mixer),
  9918. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9919. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9920. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9921. msm_routing_put_audio_mixer),
  9922. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9923. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9924. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9925. msm_routing_put_audio_mixer),
  9926. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9927. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9928. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9929. msm_routing_put_audio_mixer),
  9930. };
  9931. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9932. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9933. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9934. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9935. msm_routing_put_audio_mixer),
  9936. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9937. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9938. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9939. msm_routing_put_audio_mixer),
  9940. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9941. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9942. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9943. msm_routing_put_audio_mixer),
  9944. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9945. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9946. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9947. msm_routing_put_audio_mixer),
  9948. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9949. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9950. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9951. msm_routing_put_audio_mixer),
  9952. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9953. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9954. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9955. msm_routing_put_audio_mixer),
  9956. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9957. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9958. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9959. msm_routing_put_audio_mixer),
  9960. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9961. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9962. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9963. msm_routing_put_audio_mixer),
  9964. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9965. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9966. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9967. msm_routing_put_audio_mixer),
  9968. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9969. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9970. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9971. msm_routing_put_audio_mixer),
  9972. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9973. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9974. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9975. msm_routing_put_audio_mixer),
  9976. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9977. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9978. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9979. msm_routing_put_audio_mixer),
  9980. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9981. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9982. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9983. msm_routing_put_audio_mixer),
  9984. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9985. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9986. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9987. msm_routing_put_audio_mixer),
  9988. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9989. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9990. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9991. msm_routing_put_audio_mixer),
  9992. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9993. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9994. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9995. msm_routing_put_audio_mixer),
  9996. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9997. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9998. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9999. msm_routing_put_audio_mixer),
  10000. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10001. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10002. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10003. msm_routing_put_audio_mixer),
  10004. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10005. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10006. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10007. msm_routing_put_audio_mixer),
  10008. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10009. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10010. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10011. msm_routing_put_audio_mixer),
  10012. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10013. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  10014. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10015. msm_routing_put_audio_mixer),
  10016. };
  10017. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  10018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10019. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10021. msm_routing_put_audio_mixer),
  10022. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10023. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10025. msm_routing_put_audio_mixer),
  10026. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10027. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10029. msm_routing_put_audio_mixer),
  10030. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10031. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10033. msm_routing_put_audio_mixer),
  10034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10035. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10037. msm_routing_put_audio_mixer),
  10038. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10039. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10041. msm_routing_put_audio_mixer),
  10042. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10043. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10045. msm_routing_put_audio_mixer),
  10046. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10047. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10049. msm_routing_put_audio_mixer),
  10050. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10051. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10053. msm_routing_put_audio_mixer),
  10054. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10055. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10057. msm_routing_put_audio_mixer),
  10058. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10059. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10060. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10061. msm_routing_put_audio_mixer),
  10062. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10063. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10064. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10065. msm_routing_put_audio_mixer),
  10066. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10067. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10069. msm_routing_put_audio_mixer),
  10070. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10071. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10072. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10073. msm_routing_put_audio_mixer),
  10074. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10075. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10077. msm_routing_put_audio_mixer),
  10078. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10079. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10081. msm_routing_put_audio_mixer),
  10082. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10083. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10084. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10085. msm_routing_put_audio_mixer),
  10086. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10087. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10088. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10089. msm_routing_put_audio_mixer),
  10090. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10091. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10092. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10093. msm_routing_put_audio_mixer),
  10094. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10095. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10096. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10097. msm_routing_put_audio_mixer),
  10098. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10099. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10100. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10101. msm_routing_put_audio_mixer),
  10102. };
  10103. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  10104. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10105. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10106. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10107. msm_routing_put_audio_mixer),
  10108. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10109. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10110. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10111. msm_routing_put_audio_mixer),
  10112. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10113. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10114. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10115. msm_routing_put_audio_mixer),
  10116. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10117. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10118. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10119. msm_routing_put_audio_mixer),
  10120. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10121. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10122. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10123. msm_routing_put_audio_mixer),
  10124. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10125. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10126. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10127. msm_routing_put_audio_mixer),
  10128. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10129. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10130. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10131. msm_routing_put_audio_mixer),
  10132. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10133. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10134. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10135. msm_routing_put_audio_mixer),
  10136. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10137. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10138. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10139. msm_routing_put_audio_mixer),
  10140. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10141. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10142. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10143. msm_routing_put_audio_mixer),
  10144. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10145. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10146. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10147. msm_routing_put_audio_mixer),
  10148. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10149. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10150. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10151. msm_routing_put_audio_mixer),
  10152. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10153. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10154. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10155. msm_routing_put_audio_mixer),
  10156. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10157. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10158. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10159. msm_routing_put_audio_mixer),
  10160. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10161. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10162. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10163. msm_routing_put_audio_mixer),
  10164. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10165. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10166. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10167. msm_routing_put_audio_mixer),
  10168. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10169. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10170. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10171. msm_routing_put_audio_mixer),
  10172. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10173. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10174. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10175. msm_routing_put_audio_mixer),
  10176. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10177. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10178. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10179. msm_routing_put_audio_mixer),
  10180. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10181. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10182. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10183. msm_routing_put_audio_mixer),
  10184. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10185. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10186. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10187. msm_routing_put_audio_mixer),
  10188. };
  10189. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  10190. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10191. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10192. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10193. msm_routing_put_audio_mixer),
  10194. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10195. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10196. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10197. msm_routing_put_audio_mixer),
  10198. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10199. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10200. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10201. msm_routing_put_audio_mixer),
  10202. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10203. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10204. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10205. msm_routing_put_audio_mixer),
  10206. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10207. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10208. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10209. msm_routing_put_audio_mixer),
  10210. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10211. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10212. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10213. msm_routing_put_audio_mixer),
  10214. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10215. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10216. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10217. msm_routing_put_audio_mixer),
  10218. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10219. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10220. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10221. msm_routing_put_audio_mixer),
  10222. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10223. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10224. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10225. msm_routing_put_audio_mixer),
  10226. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10227. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10228. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10229. msm_routing_put_audio_mixer),
  10230. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10231. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10232. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10233. msm_routing_put_audio_mixer),
  10234. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10235. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10236. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10237. msm_routing_put_audio_mixer),
  10238. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10239. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10240. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10241. msm_routing_put_audio_mixer),
  10242. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10243. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10244. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10245. msm_routing_put_audio_mixer),
  10246. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10247. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10248. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10249. msm_routing_put_audio_mixer),
  10250. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10251. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10252. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10253. msm_routing_put_audio_mixer),
  10254. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10255. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10256. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10257. msm_routing_put_audio_mixer),
  10258. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10259. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10260. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10261. msm_routing_put_audio_mixer),
  10262. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10263. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10264. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10265. msm_routing_put_audio_mixer),
  10266. };
  10267. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  10268. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10269. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10270. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10271. msm_routing_put_audio_mixer),
  10272. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10273. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10274. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10275. msm_routing_put_audio_mixer),
  10276. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10277. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10278. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10279. msm_routing_put_audio_mixer),
  10280. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10281. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10282. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10283. msm_routing_put_audio_mixer),
  10284. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10285. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10286. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10287. msm_routing_put_audio_mixer),
  10288. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10289. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10290. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10291. msm_routing_put_audio_mixer),
  10292. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10293. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10295. msm_routing_put_audio_mixer),
  10296. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10297. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10299. msm_routing_put_audio_mixer),
  10300. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10301. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10302. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10303. msm_routing_put_audio_mixer),
  10304. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10305. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10307. msm_routing_put_audio_mixer),
  10308. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10309. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10310. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10311. msm_routing_put_audio_mixer),
  10312. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10313. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10314. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10315. msm_routing_put_audio_mixer),
  10316. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10317. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10318. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10319. msm_routing_put_audio_mixer),
  10320. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10321. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10322. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10323. msm_routing_put_audio_mixer),
  10324. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10325. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10326. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10327. msm_routing_put_audio_mixer),
  10328. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10329. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10330. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10331. msm_routing_put_audio_mixer),
  10332. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10333. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10334. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10335. msm_routing_put_audio_mixer),
  10336. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10337. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10338. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10339. msm_routing_put_audio_mixer),
  10340. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10341. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10342. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10343. msm_routing_put_audio_mixer),
  10344. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10345. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10346. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10347. msm_routing_put_audio_mixer),
  10348. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10349. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10350. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10351. msm_routing_put_audio_mixer),
  10352. };
  10353. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  10354. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10355. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10356. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10357. msm_routing_put_audio_mixer),
  10358. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10359. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10360. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10361. msm_routing_put_audio_mixer),
  10362. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10363. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10364. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10365. msm_routing_put_audio_mixer),
  10366. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10367. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10368. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10369. msm_routing_put_audio_mixer),
  10370. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10371. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10372. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10373. msm_routing_put_audio_mixer),
  10374. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10375. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10376. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10377. msm_routing_put_audio_mixer),
  10378. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10379. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10380. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10381. msm_routing_put_audio_mixer),
  10382. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10383. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10384. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10385. msm_routing_put_audio_mixer),
  10386. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10387. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10388. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10389. msm_routing_put_audio_mixer),
  10390. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10391. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10392. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10393. msm_routing_put_audio_mixer),
  10394. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10395. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10396. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10397. msm_routing_put_audio_mixer),
  10398. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10399. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10400. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10401. msm_routing_put_audio_mixer),
  10402. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10403. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10404. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10405. msm_routing_put_audio_mixer),
  10406. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10407. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10408. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10409. msm_routing_put_audio_mixer),
  10410. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10411. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10412. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10413. msm_routing_put_audio_mixer),
  10414. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10415. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10416. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10417. msm_routing_put_audio_mixer),
  10418. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10419. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10420. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10421. msm_routing_put_audio_mixer),
  10422. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10423. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10424. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10425. msm_routing_put_audio_mixer),
  10426. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10427. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10428. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10429. msm_routing_put_audio_mixer),
  10430. };
  10431. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10432. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10434. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10435. msm_routing_put_audio_mixer),
  10436. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10437. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10438. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10439. msm_routing_put_audio_mixer),
  10440. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10441. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10442. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10443. msm_routing_put_audio_mixer),
  10444. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10446. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10447. msm_routing_put_audio_mixer),
  10448. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10449. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10450. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10451. msm_routing_put_audio_mixer),
  10452. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10453. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10454. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10455. msm_routing_put_audio_mixer),
  10456. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10457. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10458. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10459. msm_routing_put_audio_mixer),
  10460. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10461. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10462. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10463. msm_routing_put_audio_mixer),
  10464. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10465. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10466. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10467. msm_routing_put_audio_mixer),
  10468. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10470. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10471. msm_routing_put_audio_mixer),
  10472. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10474. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10475. msm_routing_put_audio_mixer),
  10476. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10477. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10478. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10479. msm_routing_put_audio_mixer),
  10480. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10481. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10482. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10483. msm_routing_put_audio_mixer),
  10484. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10485. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10486. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10487. msm_routing_put_audio_mixer),
  10488. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10489. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10490. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10491. msm_routing_put_audio_mixer),
  10492. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10493. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10494. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10495. msm_routing_put_audio_mixer),
  10496. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10497. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10498. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10499. msm_routing_put_audio_mixer),
  10500. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10502. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10503. msm_routing_put_audio_mixer),
  10504. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10505. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10506. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10507. msm_routing_put_audio_mixer),
  10508. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10509. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10510. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10511. msm_routing_put_audio_mixer),
  10512. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10514. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10515. msm_routing_put_audio_mixer),
  10516. };
  10517. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10518. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10520. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10521. msm_routing_put_audio_mixer),
  10522. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10523. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10524. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10525. msm_routing_put_audio_mixer),
  10526. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10527. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10528. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10529. msm_routing_put_audio_mixer),
  10530. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10532. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10533. msm_routing_put_audio_mixer),
  10534. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10535. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10536. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10537. msm_routing_put_audio_mixer),
  10538. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10539. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10540. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10541. msm_routing_put_audio_mixer),
  10542. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10543. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10544. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10545. msm_routing_put_audio_mixer),
  10546. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10547. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10548. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10549. msm_routing_put_audio_mixer),
  10550. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10551. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10552. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10553. msm_routing_put_audio_mixer),
  10554. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10555. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10556. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10557. msm_routing_put_audio_mixer),
  10558. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10559. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10560. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10561. msm_routing_put_audio_mixer),
  10562. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10563. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10564. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10565. msm_routing_put_audio_mixer),
  10566. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10567. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10568. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10569. msm_routing_put_audio_mixer),
  10570. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10571. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10572. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10573. msm_routing_put_audio_mixer),
  10574. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10575. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10576. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10577. msm_routing_put_audio_mixer),
  10578. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10579. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10580. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10581. msm_routing_put_audio_mixer),
  10582. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10583. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10584. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10585. msm_routing_put_audio_mixer),
  10586. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10587. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10588. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10589. msm_routing_put_audio_mixer),
  10590. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10591. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10592. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10593. msm_routing_put_audio_mixer),
  10594. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10595. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10596. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10597. msm_routing_put_audio_mixer),
  10598. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10599. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10600. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10601. msm_routing_put_audio_mixer),
  10602. };
  10603. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10604. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10605. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10606. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10607. msm_routing_put_audio_mixer),
  10608. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10610. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10611. msm_routing_put_audio_mixer),
  10612. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10613. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10614. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10615. msm_routing_put_audio_mixer),
  10616. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10617. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10618. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10619. msm_routing_put_audio_mixer),
  10620. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10621. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10622. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10623. msm_routing_put_audio_mixer),
  10624. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10625. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10626. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10627. msm_routing_put_audio_mixer),
  10628. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10629. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10630. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10631. msm_routing_put_audio_mixer),
  10632. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10633. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10634. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10635. msm_routing_put_audio_mixer),
  10636. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10637. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10638. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10639. msm_routing_put_audio_mixer),
  10640. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10641. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10642. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10643. msm_routing_put_audio_mixer),
  10644. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10645. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10646. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10647. msm_routing_put_audio_mixer),
  10648. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10649. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10650. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10651. msm_routing_put_audio_mixer),
  10652. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10653. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10654. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10655. msm_routing_put_audio_mixer),
  10656. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10657. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10658. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10659. msm_routing_put_audio_mixer),
  10660. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10661. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10662. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10663. msm_routing_put_audio_mixer),
  10664. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10665. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10666. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10667. msm_routing_put_audio_mixer),
  10668. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10669. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10670. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10671. msm_routing_put_audio_mixer),
  10672. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10673. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10674. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10675. msm_routing_put_audio_mixer),
  10676. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10677. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10678. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10679. msm_routing_put_audio_mixer),
  10680. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10681. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10682. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10683. msm_routing_put_audio_mixer),
  10684. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10685. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10686. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10687. msm_routing_put_audio_mixer),
  10688. };
  10689. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10690. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10691. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10692. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10693. msm_routing_put_audio_mixer),
  10694. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10695. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10696. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10697. msm_routing_put_audio_mixer),
  10698. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10699. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10700. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10701. msm_routing_put_audio_mixer),
  10702. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10703. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10704. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10705. msm_routing_put_audio_mixer),
  10706. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10707. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10708. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10709. msm_routing_put_audio_mixer),
  10710. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10711. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10712. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10713. msm_routing_put_audio_mixer),
  10714. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10715. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10716. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10717. msm_routing_put_audio_mixer),
  10718. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10719. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10720. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10721. msm_routing_put_audio_mixer),
  10722. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10723. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10724. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10725. msm_routing_put_audio_mixer),
  10726. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10727. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10728. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10729. msm_routing_put_audio_mixer),
  10730. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10731. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10732. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10733. msm_routing_put_audio_mixer),
  10734. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10735. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10736. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10737. msm_routing_put_audio_mixer),
  10738. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10739. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10740. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10741. msm_routing_put_audio_mixer),
  10742. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10743. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10744. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10745. msm_routing_put_audio_mixer),
  10746. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10747. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10748. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10749. msm_routing_put_audio_mixer),
  10750. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10751. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10752. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10753. msm_routing_put_audio_mixer),
  10754. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10755. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10756. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10757. msm_routing_put_audio_mixer),
  10758. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10759. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10760. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10761. msm_routing_put_audio_mixer),
  10762. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10763. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10764. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10765. msm_routing_put_audio_mixer),
  10766. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10767. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10768. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10769. msm_routing_put_audio_mixer),
  10770. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10771. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10772. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10773. msm_routing_put_audio_mixer),
  10774. };
  10775. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10776. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10777. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10778. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10779. msm_routing_put_audio_mixer),
  10780. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10781. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10782. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10783. msm_routing_put_audio_mixer),
  10784. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10785. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10786. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10787. msm_routing_put_audio_mixer),
  10788. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10789. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10790. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10791. msm_routing_put_audio_mixer),
  10792. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10793. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10794. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10795. msm_routing_put_audio_mixer),
  10796. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10797. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10798. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10799. msm_routing_put_audio_mixer),
  10800. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10801. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10802. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10803. msm_routing_put_audio_mixer),
  10804. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10805. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10807. msm_routing_put_audio_mixer),
  10808. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10809. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10810. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10811. msm_routing_put_audio_mixer),
  10812. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10813. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10814. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10815. msm_routing_put_audio_mixer),
  10816. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10817. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10818. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10819. msm_routing_put_audio_mixer),
  10820. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10821. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10822. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10823. msm_routing_put_audio_mixer),
  10824. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10825. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10826. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10827. msm_routing_put_audio_mixer),
  10828. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10829. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10830. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10831. msm_routing_put_audio_mixer),
  10832. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10833. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10834. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10835. msm_routing_put_audio_mixer),
  10836. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10837. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10838. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10839. msm_routing_put_audio_mixer),
  10840. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10841. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10842. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10843. msm_routing_put_audio_mixer),
  10844. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10845. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10846. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10847. msm_routing_put_audio_mixer),
  10848. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10849. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10850. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10851. msm_routing_put_audio_mixer),
  10852. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10853. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10854. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10855. msm_routing_put_audio_mixer),
  10856. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10857. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10858. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10859. msm_routing_put_audio_mixer),
  10860. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10861. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10862. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10863. msm_routing_put_audio_mixer),
  10864. };
  10865. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10866. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10867. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10868. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10869. msm_routing_put_audio_mixer),
  10870. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10871. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10872. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10873. msm_routing_put_audio_mixer),
  10874. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10875. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10876. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10877. msm_routing_put_audio_mixer),
  10878. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10879. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10880. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10881. msm_routing_put_audio_mixer),
  10882. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10883. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10884. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10885. msm_routing_put_audio_mixer),
  10886. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10887. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10888. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10889. msm_routing_put_audio_mixer),
  10890. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10891. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10892. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10893. msm_routing_put_audio_mixer),
  10894. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10895. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10896. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10897. msm_routing_put_audio_mixer),
  10898. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10899. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10900. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10901. msm_routing_put_audio_mixer),
  10902. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10903. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10904. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10905. msm_routing_put_audio_mixer),
  10906. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10908. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10909. msm_routing_put_audio_mixer),
  10910. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10911. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10912. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10913. msm_routing_put_audio_mixer),
  10914. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10915. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10916. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10917. msm_routing_put_audio_mixer),
  10918. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10919. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10920. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10921. msm_routing_put_audio_mixer),
  10922. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10923. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10924. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10925. msm_routing_put_audio_mixer),
  10926. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10927. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10929. msm_routing_put_audio_mixer),
  10930. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10931. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10932. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10933. msm_routing_put_audio_mixer),
  10934. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10935. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10936. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10937. msm_routing_put_audio_mixer),
  10938. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10939. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10940. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10941. msm_routing_put_audio_mixer),
  10942. };
  10943. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10944. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10945. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10947. msm_routing_put_audio_mixer),
  10948. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10949. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10950. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10951. msm_routing_put_audio_mixer),
  10952. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10953. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10954. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10955. msm_routing_put_audio_mixer),
  10956. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10957. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10958. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10959. msm_routing_put_audio_mixer),
  10960. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10961. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10962. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10963. msm_routing_put_audio_mixer),
  10964. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10965. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10967. msm_routing_put_audio_mixer),
  10968. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10969. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10970. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10971. msm_routing_put_audio_mixer),
  10972. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10973. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10974. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10975. msm_routing_put_audio_mixer),
  10976. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10977. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10978. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10979. msm_routing_put_audio_mixer),
  10980. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10981. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10982. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10983. msm_routing_put_audio_mixer),
  10984. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10985. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10986. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10987. msm_routing_put_audio_mixer),
  10988. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10989. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10990. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10991. msm_routing_put_audio_mixer),
  10992. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10993. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10994. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10995. msm_routing_put_audio_mixer),
  10996. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10997. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10998. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10999. msm_routing_put_audio_mixer),
  11000. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11001. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11002. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11003. msm_routing_put_audio_mixer),
  11004. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11005. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11006. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11007. msm_routing_put_audio_mixer),
  11008. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11009. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11010. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11011. msm_routing_put_audio_mixer),
  11012. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11013. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11014. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11015. msm_routing_put_audio_mixer),
  11016. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11017. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11018. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11019. msm_routing_put_audio_mixer),
  11020. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11021. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11022. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11023. msm_routing_put_audio_mixer),
  11024. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11025. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11026. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11027. msm_routing_put_audio_mixer),
  11028. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11029. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11030. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11031. msm_routing_put_audio_mixer),
  11032. };
  11033. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  11034. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11035. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11036. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11037. msm_routing_put_audio_mixer),
  11038. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11039. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11040. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11041. msm_routing_put_audio_mixer),
  11042. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11043. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11044. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11045. msm_routing_put_audio_mixer),
  11046. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11047. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11048. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11049. msm_routing_put_audio_mixer),
  11050. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11051. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11052. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11053. msm_routing_put_audio_mixer),
  11054. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11055. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11056. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11057. msm_routing_put_audio_mixer),
  11058. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11059. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11060. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11061. msm_routing_put_audio_mixer),
  11062. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11063. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11064. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11065. msm_routing_put_audio_mixer),
  11066. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11067. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11068. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11069. msm_routing_put_audio_mixer),
  11070. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11071. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11072. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11073. msm_routing_put_audio_mixer),
  11074. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11075. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11076. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11077. msm_routing_put_audio_mixer),
  11078. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11079. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11080. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11081. msm_routing_put_audio_mixer),
  11082. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11083. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11084. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11085. msm_routing_put_audio_mixer),
  11086. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11087. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11088. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11089. msm_routing_put_audio_mixer),
  11090. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11091. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11092. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11093. msm_routing_put_audio_mixer),
  11094. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11095. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11096. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11097. msm_routing_put_audio_mixer),
  11098. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11099. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11100. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11101. msm_routing_put_audio_mixer),
  11102. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11103. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11104. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11105. msm_routing_put_audio_mixer),
  11106. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11107. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11108. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11109. msm_routing_put_audio_mixer),
  11110. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11111. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11112. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11113. msm_routing_put_audio_mixer),
  11114. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11115. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11116. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11117. msm_routing_put_audio_mixer),
  11118. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11119. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11120. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11121. msm_routing_put_audio_mixer),
  11122. };
  11123. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  11124. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11125. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11126. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11127. msm_routing_put_audio_mixer),
  11128. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11129. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11130. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11131. msm_routing_put_audio_mixer),
  11132. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11133. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11134. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11135. msm_routing_put_audio_mixer),
  11136. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11137. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11138. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11139. msm_routing_put_audio_mixer),
  11140. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11141. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11142. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11143. msm_routing_put_audio_mixer),
  11144. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11145. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11146. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11147. msm_routing_put_audio_mixer),
  11148. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11149. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11150. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11151. msm_routing_put_audio_mixer),
  11152. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11153. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11154. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11155. msm_routing_put_audio_mixer),
  11156. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11157. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11158. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11159. msm_routing_put_audio_mixer),
  11160. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11161. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11162. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11163. msm_routing_put_audio_mixer),
  11164. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11165. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11166. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11167. msm_routing_put_audio_mixer),
  11168. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11169. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11170. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11171. msm_routing_put_audio_mixer),
  11172. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11173. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11174. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11175. msm_routing_put_audio_mixer),
  11176. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11177. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11178. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11179. msm_routing_put_audio_mixer),
  11180. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11181. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11182. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11183. msm_routing_put_audio_mixer),
  11184. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11185. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11186. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11187. msm_routing_put_audio_mixer),
  11188. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11189. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11190. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11191. msm_routing_put_audio_mixer),
  11192. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11193. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11194. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11195. msm_routing_put_audio_mixer),
  11196. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11197. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11198. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11199. msm_routing_put_audio_mixer),
  11200. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11201. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11202. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11203. msm_routing_put_audio_mixer),
  11204. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11205. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11206. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11207. msm_routing_put_audio_mixer),
  11208. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11209. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11210. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11211. msm_routing_put_audio_mixer),
  11212. };
  11213. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  11214. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11215. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11216. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11217. msm_routing_put_audio_mixer),
  11218. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11219. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11220. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11221. msm_routing_put_audio_mixer),
  11222. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11223. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11224. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11225. msm_routing_put_audio_mixer),
  11226. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11227. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11228. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11229. msm_routing_put_audio_mixer),
  11230. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11231. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11232. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11233. msm_routing_put_audio_mixer),
  11234. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11235. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11236. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11237. msm_routing_put_audio_mixer),
  11238. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11239. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11240. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11241. msm_routing_put_audio_mixer),
  11242. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11243. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11244. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11245. msm_routing_put_audio_mixer),
  11246. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11247. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11248. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11249. msm_routing_put_audio_mixer),
  11250. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11251. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11252. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11253. msm_routing_put_audio_mixer),
  11254. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11255. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11256. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11257. msm_routing_put_audio_mixer),
  11258. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11259. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11260. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11261. msm_routing_put_audio_mixer),
  11262. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11263. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11264. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11265. msm_routing_put_audio_mixer),
  11266. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11267. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11268. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11269. msm_routing_put_audio_mixer),
  11270. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11271. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11272. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11273. msm_routing_put_audio_mixer),
  11274. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11275. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11276. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11277. msm_routing_put_audio_mixer),
  11278. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11279. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11280. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11281. msm_routing_put_audio_mixer),
  11282. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11283. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11284. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11285. msm_routing_put_audio_mixer),
  11286. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11287. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11288. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11289. msm_routing_put_audio_mixer),
  11290. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11291. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11292. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11293. msm_routing_put_audio_mixer),
  11294. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11295. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11296. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11297. msm_routing_put_audio_mixer),
  11298. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11299. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11300. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11301. msm_routing_put_audio_mixer),
  11302. };
  11303. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  11304. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11305. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11306. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11307. msm_routing_put_audio_mixer),
  11308. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11309. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11310. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11311. msm_routing_put_audio_mixer),
  11312. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11313. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11314. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11315. msm_routing_put_audio_mixer),
  11316. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11317. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11318. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11319. msm_routing_put_audio_mixer),
  11320. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11321. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11322. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11323. msm_routing_put_audio_mixer),
  11324. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11325. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11326. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11327. msm_routing_put_audio_mixer),
  11328. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11329. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11330. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11331. msm_routing_put_audio_mixer),
  11332. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11333. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11334. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11335. msm_routing_put_audio_mixer),
  11336. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11337. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11338. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11339. msm_routing_put_audio_mixer),
  11340. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11341. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11342. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11343. msm_routing_put_audio_mixer),
  11344. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11345. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11346. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11347. msm_routing_put_audio_mixer),
  11348. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11349. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11350. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11351. msm_routing_put_audio_mixer),
  11352. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11353. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11354. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11355. msm_routing_put_audio_mixer),
  11356. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11357. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11358. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11359. msm_routing_put_audio_mixer),
  11360. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11361. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11362. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11363. msm_routing_put_audio_mixer),
  11364. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11365. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11366. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11367. msm_routing_put_audio_mixer),
  11368. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11369. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11370. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11371. msm_routing_put_audio_mixer),
  11372. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11373. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11374. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11375. msm_routing_put_audio_mixer),
  11376. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11377. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11378. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11379. msm_routing_put_audio_mixer),
  11380. };
  11381. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11382. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11383. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11384. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11385. msm_routing_put_audio_mixer),
  11386. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11387. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11388. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11389. msm_routing_put_audio_mixer),
  11390. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11391. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11392. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11393. msm_routing_put_audio_mixer),
  11394. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11395. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11396. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11397. msm_routing_put_audio_mixer),
  11398. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11399. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11400. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11401. msm_routing_put_audio_mixer),
  11402. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11403. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11404. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11405. msm_routing_put_audio_mixer),
  11406. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11407. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11408. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11409. msm_routing_put_audio_mixer),
  11410. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11411. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11412. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11413. msm_routing_put_audio_mixer),
  11414. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11415. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11416. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11417. msm_routing_put_audio_mixer),
  11418. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11419. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11420. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11421. msm_routing_put_audio_mixer),
  11422. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11423. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11424. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11425. msm_routing_put_audio_mixer),
  11426. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11427. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11428. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11429. msm_routing_put_audio_mixer),
  11430. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11431. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11432. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11433. msm_routing_put_audio_mixer),
  11434. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11435. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11436. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11437. msm_routing_put_audio_mixer),
  11438. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11439. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11440. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11441. msm_routing_put_audio_mixer),
  11442. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11443. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11444. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11445. msm_routing_put_audio_mixer),
  11446. };
  11447. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11448. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11449. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11450. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11451. msm_routing_put_audio_mixer),
  11452. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11453. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11454. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11455. msm_routing_put_audio_mixer),
  11456. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11457. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11458. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11459. msm_routing_put_audio_mixer),
  11460. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11461. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11462. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11463. msm_routing_put_audio_mixer),
  11464. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11466. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11467. msm_routing_put_audio_mixer),
  11468. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11469. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11470. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11471. msm_routing_put_audio_mixer),
  11472. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11473. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11474. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11475. msm_routing_put_audio_mixer),
  11476. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11477. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11478. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11479. msm_routing_put_audio_mixer),
  11480. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11481. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11482. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11483. msm_routing_put_audio_mixer),
  11484. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11486. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11487. msm_routing_put_audio_mixer),
  11488. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11489. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11490. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11491. msm_routing_put_audio_mixer),
  11492. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11493. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11494. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11495. msm_routing_put_audio_mixer),
  11496. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11497. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11498. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11499. msm_routing_put_audio_mixer),
  11500. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11501. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11502. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11503. msm_routing_put_audio_mixer),
  11504. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11505. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11506. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11507. msm_routing_put_audio_mixer),
  11508. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11509. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11510. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11511. msm_routing_put_audio_mixer),
  11512. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11513. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11514. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11515. msm_routing_put_audio_mixer),
  11516. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11517. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11518. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11519. msm_routing_put_audio_mixer),
  11520. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11521. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11522. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11523. msm_routing_put_audio_mixer),
  11524. };
  11525. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11526. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11527. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11528. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11529. msm_routing_put_audio_mixer),
  11530. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11531. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11532. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11533. msm_routing_put_audio_mixer),
  11534. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11536. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11537. msm_routing_put_audio_mixer),
  11538. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11539. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11540. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11541. msm_routing_put_audio_mixer),
  11542. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11543. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11544. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11545. msm_routing_put_audio_mixer),
  11546. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11548. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11549. msm_routing_put_audio_mixer),
  11550. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11551. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11552. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11553. msm_routing_put_audio_mixer),
  11554. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11555. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11556. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11557. msm_routing_put_audio_mixer),
  11558. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11559. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11560. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11561. msm_routing_put_audio_mixer),
  11562. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11563. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11564. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11565. msm_routing_put_audio_mixer),
  11566. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11567. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11568. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11569. msm_routing_put_audio_mixer),
  11570. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11571. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11572. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11573. msm_routing_put_audio_mixer),
  11574. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11575. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11576. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11577. msm_routing_put_audio_mixer),
  11578. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11579. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11580. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11581. msm_routing_put_audio_mixer),
  11582. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11583. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11584. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11585. msm_routing_put_audio_mixer),
  11586. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11587. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11588. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11589. msm_routing_put_audio_mixer),
  11590. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11591. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11592. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11593. msm_routing_put_audio_mixer),
  11594. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11595. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11596. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11597. msm_routing_put_audio_mixer),
  11598. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11599. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11600. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11601. msm_routing_put_audio_mixer),
  11602. };
  11603. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11604. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11605. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11606. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11607. msm_routing_put_audio_mixer),
  11608. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11609. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11610. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11611. msm_routing_put_audio_mixer),
  11612. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11613. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11614. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11615. msm_routing_put_audio_mixer),
  11616. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11618. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11619. msm_routing_put_audio_mixer),
  11620. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11621. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11622. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11623. msm_routing_put_audio_mixer),
  11624. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11625. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11626. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11627. msm_routing_put_audio_mixer),
  11628. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11629. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11630. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11631. msm_routing_put_audio_mixer),
  11632. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11633. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11634. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11635. msm_routing_put_audio_mixer),
  11636. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11638. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11639. msm_routing_put_audio_mixer),
  11640. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11641. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11642. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11643. msm_routing_put_audio_mixer),
  11644. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11645. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11646. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11647. msm_routing_put_audio_mixer),
  11648. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11650. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11651. msm_routing_put_audio_mixer),
  11652. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11653. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11654. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11655. msm_routing_put_audio_mixer),
  11656. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11657. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11658. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11659. msm_routing_put_audio_mixer),
  11660. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11661. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11662. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11663. msm_routing_put_audio_mixer),
  11664. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11665. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11666. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11667. msm_routing_put_audio_mixer),
  11668. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11669. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11670. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11671. msm_routing_put_audio_mixer),
  11672. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11673. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11674. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11675. msm_routing_put_audio_mixer),
  11676. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11677. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11678. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11679. msm_routing_put_audio_mixer),
  11680. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11681. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11682. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11683. msm_routing_put_audio_mixer),
  11684. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11685. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11686. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11687. msm_routing_put_audio_mixer),
  11688. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11690. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11691. msm_routing_put_audio_mixer),
  11692. };
  11693. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11694. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11695. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11696. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11697. msm_routing_put_audio_mixer),
  11698. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11699. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11700. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11701. msm_routing_put_audio_mixer),
  11702. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11703. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11704. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11705. msm_routing_put_audio_mixer),
  11706. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11707. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11708. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11709. msm_routing_put_audio_mixer),
  11710. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11711. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11712. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11713. msm_routing_put_audio_mixer),
  11714. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11715. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11716. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11717. msm_routing_put_audio_mixer),
  11718. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11720. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11721. msm_routing_put_audio_mixer),
  11722. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11723. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11724. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11725. msm_routing_put_audio_mixer),
  11726. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11727. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11728. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11729. msm_routing_put_audio_mixer),
  11730. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11731. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11732. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11733. msm_routing_put_audio_mixer),
  11734. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11735. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11736. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11737. msm_routing_put_audio_mixer),
  11738. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11739. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11740. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11741. msm_routing_put_audio_mixer),
  11742. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11743. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11744. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11745. msm_routing_put_audio_mixer),
  11746. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11747. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11748. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11749. msm_routing_put_audio_mixer),
  11750. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11751. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11752. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11753. msm_routing_put_audio_mixer),
  11754. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11755. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11756. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11757. msm_routing_put_audio_mixer),
  11758. };
  11759. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11760. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11762. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11763. msm_routing_put_audio_mixer),
  11764. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11765. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11766. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11767. msm_routing_put_audio_mixer),
  11768. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11769. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11770. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11771. msm_routing_put_audio_mixer),
  11772. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11773. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11774. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11775. msm_routing_put_audio_mixer),
  11776. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11777. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11778. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11779. msm_routing_put_audio_mixer),
  11780. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11782. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11783. msm_routing_put_audio_mixer),
  11784. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11785. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11786. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11787. msm_routing_put_audio_mixer),
  11788. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11789. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11790. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11791. msm_routing_put_audio_mixer),
  11792. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11793. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11794. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11795. msm_routing_put_audio_mixer),
  11796. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11797. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11798. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11799. msm_routing_put_audio_mixer),
  11800. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11801. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11802. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11803. msm_routing_put_audio_mixer),
  11804. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11806. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11807. msm_routing_put_audio_mixer),
  11808. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11809. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11810. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11811. msm_routing_put_audio_mixer),
  11812. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11813. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11814. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11815. msm_routing_put_audio_mixer),
  11816. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11817. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11818. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11819. msm_routing_put_audio_mixer),
  11820. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11822. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11823. msm_routing_put_audio_mixer),
  11824. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11826. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11827. msm_routing_put_audio_mixer),
  11828. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11829. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11830. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11831. msm_routing_put_audio_mixer),
  11832. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11833. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11834. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11835. msm_routing_put_audio_mixer),
  11836. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11837. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11838. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11839. msm_routing_put_audio_mixer),
  11840. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11841. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11842. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11843. msm_routing_put_audio_mixer),
  11844. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11845. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11846. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11847. msm_routing_put_audio_mixer),
  11848. };
  11849. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11850. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11851. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11852. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11853. msm_routing_put_audio_mixer),
  11854. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11855. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11856. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11857. msm_routing_put_audio_mixer),
  11858. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11859. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11860. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11861. msm_routing_put_audio_mixer),
  11862. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11863. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11864. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11865. msm_routing_put_audio_mixer),
  11866. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11867. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11868. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11869. msm_routing_put_audio_mixer),
  11870. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11871. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11872. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11873. msm_routing_put_audio_mixer),
  11874. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11875. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11876. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11877. msm_routing_put_audio_mixer),
  11878. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11879. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11880. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11881. msm_routing_put_audio_mixer),
  11882. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11884. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11885. msm_routing_put_audio_mixer),
  11886. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11887. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11888. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11889. msm_routing_put_audio_mixer),
  11890. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11891. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11892. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11893. msm_routing_put_audio_mixer),
  11894. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11895. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11896. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11897. msm_routing_put_audio_mixer),
  11898. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11899. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11900. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11901. msm_routing_put_audio_mixer),
  11902. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11903. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11904. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11905. msm_routing_put_audio_mixer),
  11906. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11907. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11908. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11909. msm_routing_put_audio_mixer),
  11910. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11911. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11912. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11913. msm_routing_put_audio_mixer),
  11914. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11915. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11916. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11917. msm_routing_put_audio_mixer),
  11918. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11919. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11920. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11921. msm_routing_put_audio_mixer),
  11922. };
  11923. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11924. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11925. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11926. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11927. msm_routing_put_audio_mixer),
  11928. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11929. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11930. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11931. msm_routing_put_audio_mixer),
  11932. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11934. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11935. msm_routing_put_audio_mixer),
  11936. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11937. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11938. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11939. msm_routing_put_audio_mixer),
  11940. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11941. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11942. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11943. msm_routing_put_audio_mixer),
  11944. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11945. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11946. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11947. msm_routing_put_audio_mixer),
  11948. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11949. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11950. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11951. msm_routing_put_audio_mixer),
  11952. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11953. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11954. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11955. msm_routing_put_audio_mixer),
  11956. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11957. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11958. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11959. msm_routing_put_audio_mixer),
  11960. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11961. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11962. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11963. msm_routing_put_audio_mixer),
  11964. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11966. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11967. msm_routing_put_audio_mixer),
  11968. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11969. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11970. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11971. msm_routing_put_audio_mixer),
  11972. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11973. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11974. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11975. msm_routing_put_audio_mixer),
  11976. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11977. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11978. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11979. msm_routing_put_audio_mixer),
  11980. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11981. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11982. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11983. msm_routing_put_audio_mixer),
  11984. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11985. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11986. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11987. msm_routing_put_audio_mixer),
  11988. };
  11989. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11990. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11991. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11992. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11993. msm_routing_put_audio_mixer),
  11994. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11996. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11997. msm_routing_put_audio_mixer),
  11998. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11999. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12000. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12001. msm_routing_put_audio_mixer),
  12002. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12003. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12004. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12005. msm_routing_put_audio_mixer),
  12006. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12008. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12009. msm_routing_put_audio_mixer),
  12010. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12011. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12012. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12013. msm_routing_put_audio_mixer),
  12014. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12016. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12017. msm_routing_put_audio_mixer),
  12018. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12019. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12020. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12021. msm_routing_put_audio_mixer),
  12022. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12023. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12024. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12025. msm_routing_put_audio_mixer),
  12026. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12028. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12029. msm_routing_put_audio_mixer),
  12030. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12031. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12032. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12033. msm_routing_put_audio_mixer),
  12034. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12036. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12037. msm_routing_put_audio_mixer),
  12038. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12039. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12040. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12041. msm_routing_put_audio_mixer),
  12042. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12043. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12044. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12045. msm_routing_put_audio_mixer),
  12046. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12047. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12048. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12049. msm_routing_put_audio_mixer),
  12050. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12051. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12052. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12053. msm_routing_put_audio_mixer),
  12054. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12055. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12056. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12057. msm_routing_put_audio_mixer),
  12058. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12059. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12060. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12061. msm_routing_put_audio_mixer),
  12062. };
  12063. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  12064. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12065. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12066. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12067. msm_routing_put_audio_mixer),
  12068. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12069. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12070. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12071. msm_routing_put_audio_mixer),
  12072. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12073. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12074. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12075. msm_routing_put_audio_mixer),
  12076. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12078. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12079. msm_routing_put_audio_mixer),
  12080. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12081. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12082. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12083. msm_routing_put_audio_mixer),
  12084. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12085. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12086. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12087. msm_routing_put_audio_mixer),
  12088. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12089. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12090. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12091. msm_routing_put_audio_mixer),
  12092. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12093. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12094. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12095. msm_routing_put_audio_mixer),
  12096. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12098. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12099. msm_routing_put_audio_mixer),
  12100. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12101. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12102. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12103. msm_routing_put_audio_mixer),
  12104. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12105. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12106. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12107. msm_routing_put_audio_mixer),
  12108. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12109. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12110. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12111. msm_routing_put_audio_mixer),
  12112. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12113. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12114. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12115. msm_routing_put_audio_mixer),
  12116. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12117. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12118. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12119. msm_routing_put_audio_mixer),
  12120. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12121. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12122. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12123. msm_routing_put_audio_mixer),
  12124. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12125. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12126. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12127. msm_routing_put_audio_mixer),
  12128. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12129. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12130. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12131. msm_routing_put_audio_mixer),
  12132. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12134. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12135. msm_routing_put_audio_mixer),
  12136. };
  12137. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  12138. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12139. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12140. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12141. msm_routing_put_audio_mixer),
  12142. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12144. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12145. msm_routing_put_audio_mixer),
  12146. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12148. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12149. msm_routing_put_audio_mixer),
  12150. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12151. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12152. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12153. msm_routing_put_audio_mixer),
  12154. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12155. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12156. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12157. msm_routing_put_audio_mixer),
  12158. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12160. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12161. msm_routing_put_audio_mixer),
  12162. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12163. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12164. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12165. msm_routing_put_audio_mixer),
  12166. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12167. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12168. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12169. msm_routing_put_audio_mixer),
  12170. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12171. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12172. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12173. msm_routing_put_audio_mixer),
  12174. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12175. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12176. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12177. msm_routing_put_audio_mixer),
  12178. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12180. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12181. msm_routing_put_audio_mixer),
  12182. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12183. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12184. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12185. msm_routing_put_audio_mixer),
  12186. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12187. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12188. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12189. msm_routing_put_audio_mixer),
  12190. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12191. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12192. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12193. msm_routing_put_audio_mixer),
  12194. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12195. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12196. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12197. msm_routing_put_audio_mixer),
  12198. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12200. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12201. msm_routing_put_audio_mixer),
  12202. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12203. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12204. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12205. msm_routing_put_audio_mixer),
  12206. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12207. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12208. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12209. msm_routing_put_audio_mixer),
  12210. };
  12211. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  12212. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  12213. MSM_BACKEND_DAI_PRI_I2S_TX,
  12214. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12215. msm_routing_put_audio_mixer),
  12216. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12217. MSM_BACKEND_DAI_MI2S_TX,
  12218. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12219. msm_routing_put_audio_mixer),
  12220. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12221. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12222. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12223. msm_routing_put_audio_mixer),
  12224. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12226. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12227. msm_routing_put_audio_mixer),
  12228. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12229. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12231. msm_routing_put_audio_mixer),
  12232. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12233. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12234. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12235. msm_routing_put_audio_mixer),
  12236. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12237. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12238. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12239. msm_routing_put_audio_mixer),
  12240. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12241. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12242. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12243. msm_routing_put_audio_mixer),
  12244. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12245. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12246. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12247. msm_routing_put_audio_mixer),
  12248. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12250. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12251. msm_routing_put_audio_mixer),
  12252. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12253. MSM_BACKEND_DAI_AUXPCM_TX,
  12254. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12255. msm_routing_put_audio_mixer),
  12256. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12257. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12258. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12259. msm_routing_put_audio_mixer),
  12260. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12262. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12263. msm_routing_put_audio_mixer),
  12264. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12265. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12266. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12267. msm_routing_put_audio_mixer),
  12268. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12269. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12270. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12271. msm_routing_put_audio_mixer),
  12272. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12273. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12275. msm_routing_put_audio_mixer),
  12276. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12277. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12278. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12279. msm_routing_put_audio_mixer),
  12280. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_INT_FM_TX,
  12282. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12283. msm_routing_put_audio_mixer),
  12284. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12285. MSM_BACKEND_DAI_AFE_PCM_TX,
  12286. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12287. msm_routing_put_audio_mixer),
  12288. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12289. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12290. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12291. msm_routing_put_audio_mixer),
  12292. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12293. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12294. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12295. msm_routing_put_audio_mixer),
  12296. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  12297. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12298. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12299. msm_routing_put_audio_mixer),
  12300. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12302. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12303. msm_routing_put_audio_mixer),
  12304. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12305. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12306. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12307. msm_routing_put_audio_mixer),
  12308. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12309. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12310. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12311. msm_routing_put_audio_mixer),
  12312. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12313. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12314. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12315. msm_routing_put_audio_mixer),
  12316. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12317. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12318. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12319. msm_routing_put_audio_mixer),
  12320. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12322. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12323. msm_routing_put_audio_mixer),
  12324. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12325. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12326. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12327. msm_routing_put_audio_mixer),
  12328. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12329. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12330. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12331. msm_routing_put_audio_mixer),
  12332. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12333. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12334. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12335. msm_routing_put_audio_mixer),
  12336. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12337. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12338. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12339. msm_routing_put_audio_mixer),
  12340. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12342. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12343. msm_routing_put_audio_mixer),
  12344. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12345. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12346. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12347. msm_routing_put_audio_mixer),
  12348. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12349. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12350. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12351. msm_routing_put_audio_mixer),
  12352. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12353. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12354. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12355. msm_routing_put_audio_mixer),
  12356. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12357. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12358. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12359. msm_routing_put_audio_mixer),
  12360. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12361. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12363. msm_routing_put_audio_mixer),
  12364. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12367. msm_routing_put_audio_mixer),
  12368. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12369. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12370. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12371. msm_routing_put_audio_mixer),
  12372. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12374. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12375. msm_routing_put_audio_mixer),
  12376. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12377. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12378. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12379. msm_routing_put_audio_mixer),
  12380. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12381. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12382. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12383. msm_routing_put_audio_mixer),
  12384. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12385. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12387. msm_routing_put_audio_mixer),
  12388. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12389. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12390. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12391. msm_routing_put_audio_mixer),
  12392. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12394. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12395. msm_routing_put_audio_mixer),
  12396. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12397. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12398. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12399. msm_routing_put_audio_mixer),
  12400. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12401. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12402. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12403. msm_routing_put_audio_mixer),
  12404. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12405. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12406. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12407. msm_routing_put_audio_mixer),
  12408. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12409. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12411. msm_routing_put_audio_mixer),
  12412. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12414. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12415. msm_routing_put_audio_mixer),
  12416. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12417. MSM_BACKEND_DAI_USB_TX,
  12418. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12419. msm_routing_put_audio_mixer),
  12420. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12421. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12422. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12423. msm_routing_put_audio_mixer),
  12424. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12425. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12426. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12427. msm_routing_put_audio_mixer),
  12428. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12429. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12430. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12431. msm_routing_put_audio_mixer),
  12432. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12434. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12435. msm_routing_put_audio_mixer),
  12436. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12437. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12438. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12439. msm_routing_put_audio_mixer),
  12440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12441. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12443. msm_routing_put_audio_mixer),
  12444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12446. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12447. msm_routing_put_audio_mixer),
  12448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12450. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12451. msm_routing_put_audio_mixer),
  12452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12454. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12455. msm_routing_put_audio_mixer),
  12456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12458. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12459. msm_routing_put_audio_mixer),
  12460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12462. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12463. msm_routing_put_audio_mixer),
  12464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12466. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12467. msm_routing_put_audio_mixer),
  12468. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12469. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12470. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12471. msm_routing_put_audio_mixer),
  12472. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12473. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12474. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12475. msm_routing_put_audio_mixer),
  12476. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12477. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12478. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12479. msm_routing_put_audio_mixer),
  12480. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12481. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12482. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12483. msm_routing_put_audio_mixer),
  12484. };
  12485. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12486. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12487. MSM_BACKEND_DAI_INT_FM_TX,
  12488. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12489. msm_routing_put_audio_mixer),
  12490. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12491. MSM_BACKEND_DAI_MI2S_TX,
  12492. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12493. msm_routing_put_audio_mixer),
  12494. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12496. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12497. msm_routing_put_audio_mixer),
  12498. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12499. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12500. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12501. msm_routing_put_audio_mixer),
  12502. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12503. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12504. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12505. msm_routing_put_audio_mixer),
  12506. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12507. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12508. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12509. msm_routing_put_audio_mixer),
  12510. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12511. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12512. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12513. msm_routing_put_audio_mixer),
  12514. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12516. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12517. msm_routing_put_audio_mixer),
  12518. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12519. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12520. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12521. msm_routing_put_audio_mixer),
  12522. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12523. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12524. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12525. msm_routing_put_audio_mixer),
  12526. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12527. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12528. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12529. msm_routing_put_audio_mixer),
  12530. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12531. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12532. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12533. msm_routing_put_audio_mixer),
  12534. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12537. msm_routing_put_audio_mixer),
  12538. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12539. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12540. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12541. msm_routing_put_audio_mixer),
  12542. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12543. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12544. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12545. msm_routing_put_audio_mixer),
  12546. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12547. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12548. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12549. msm_routing_put_audio_mixer),
  12550. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12551. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12552. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12553. msm_routing_put_audio_mixer),
  12554. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12556. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12557. msm_routing_put_audio_mixer),
  12558. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12559. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12560. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12561. msm_routing_put_audio_mixer),
  12562. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12563. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12564. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12565. msm_routing_put_audio_mixer),
  12566. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12568. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12569. msm_routing_put_audio_mixer),
  12570. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12571. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12572. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12573. msm_routing_put_audio_mixer),
  12574. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12575. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12576. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12577. msm_routing_put_audio_mixer),
  12578. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12579. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12580. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12581. msm_routing_put_audio_mixer),
  12582. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12583. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12584. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12585. msm_routing_put_audio_mixer),
  12586. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12588. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12589. msm_routing_put_audio_mixer),
  12590. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12591. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12592. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12593. msm_routing_put_audio_mixer),
  12594. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12595. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12596. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12597. msm_routing_put_audio_mixer),
  12598. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12599. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12600. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12601. msm_routing_put_audio_mixer),
  12602. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12603. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12604. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12605. msm_routing_put_audio_mixer),
  12606. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12608. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12609. msm_routing_put_audio_mixer),
  12610. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12611. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12612. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12613. msm_routing_put_audio_mixer),
  12614. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12615. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12616. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12617. msm_routing_put_audio_mixer),
  12618. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12619. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12620. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12621. msm_routing_put_audio_mixer),
  12622. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12623. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12625. msm_routing_put_audio_mixer),
  12626. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12628. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12629. msm_routing_put_audio_mixer),
  12630. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12631. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12632. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12633. msm_routing_put_audio_mixer),
  12634. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12635. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12636. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12637. msm_routing_put_audio_mixer),
  12638. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12639. MSM_BACKEND_DAI_USB_TX,
  12640. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12641. msm_routing_put_audio_mixer),
  12642. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12643. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12644. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12645. msm_routing_put_audio_mixer),
  12646. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12649. msm_routing_put_audio_mixer),
  12650. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12651. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12652. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12653. msm_routing_put_audio_mixer),
  12654. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12655. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12656. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12657. msm_routing_put_audio_mixer),
  12658. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12659. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12660. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12661. msm_routing_put_audio_mixer),
  12662. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12663. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12664. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12665. msm_routing_put_audio_mixer),
  12666. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12667. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12668. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12669. msm_routing_put_audio_mixer),
  12670. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12671. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12672. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12673. msm_routing_put_audio_mixer),
  12674. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12675. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12676. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12677. msm_routing_put_audio_mixer),
  12678. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12680. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12681. msm_routing_put_audio_mixer),
  12682. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12683. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12684. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12685. msm_routing_put_audio_mixer),
  12686. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12687. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12688. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12689. msm_routing_put_audio_mixer),
  12690. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12691. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12692. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12693. msm_routing_put_audio_mixer),
  12694. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12695. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12696. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12697. msm_routing_put_audio_mixer),
  12698. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12700. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12701. msm_routing_put_audio_mixer),
  12702. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12703. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12704. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12705. msm_routing_put_audio_mixer),
  12706. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12707. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12708. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12709. msm_routing_put_audio_mixer),
  12710. };
  12711. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12712. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12713. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12714. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12715. msm_routing_put_audio_mixer),
  12716. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12717. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12718. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12719. msm_routing_put_audio_mixer),
  12720. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12721. MSM_BACKEND_DAI_INT_FM_TX,
  12722. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12723. msm_routing_put_audio_mixer),
  12724. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12725. MSM_BACKEND_DAI_MI2S_TX,
  12726. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12727. msm_routing_put_audio_mixer),
  12728. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_AFE_PCM_TX,
  12730. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12731. msm_routing_put_audio_mixer),
  12732. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12733. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12734. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12735. msm_routing_put_audio_mixer),
  12736. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12737. MSM_BACKEND_DAI_AUXPCM_TX,
  12738. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12739. msm_routing_put_audio_mixer),
  12740. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12741. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12742. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12743. msm_routing_put_audio_mixer),
  12744. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12745. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12746. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12747. msm_routing_put_audio_mixer),
  12748. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12750. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12751. msm_routing_put_audio_mixer),
  12752. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12753. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12754. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12755. msm_routing_put_audio_mixer),
  12756. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12757. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12758. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12759. msm_routing_put_audio_mixer),
  12760. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12761. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12762. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12763. msm_routing_put_audio_mixer),
  12764. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12765. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12766. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12767. msm_routing_put_audio_mixer),
  12768. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12769. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12770. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12771. msm_routing_put_audio_mixer),
  12772. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12773. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12774. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12775. msm_routing_put_audio_mixer),
  12776. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12777. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12778. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12779. msm_routing_put_audio_mixer),
  12780. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12782. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12783. msm_routing_put_audio_mixer),
  12784. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12785. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12786. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12787. msm_routing_put_audio_mixer),
  12788. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12789. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12790. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12791. msm_routing_put_audio_mixer),
  12792. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12793. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12794. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12795. msm_routing_put_audio_mixer),
  12796. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12797. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12798. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12799. msm_routing_put_audio_mixer),
  12800. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12802. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12803. msm_routing_put_audio_mixer),
  12804. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12805. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12806. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12807. msm_routing_put_audio_mixer),
  12808. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12809. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12810. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12811. msm_routing_put_audio_mixer),
  12812. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12813. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12814. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12815. msm_routing_put_audio_mixer),
  12816. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12817. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12818. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12819. msm_routing_put_audio_mixer),
  12820. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12822. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12823. msm_routing_put_audio_mixer),
  12824. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12825. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12826. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12827. msm_routing_put_audio_mixer),
  12828. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12829. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12830. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12831. msm_routing_put_audio_mixer),
  12832. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12833. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12834. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12835. msm_routing_put_audio_mixer),
  12836. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12837. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12838. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12839. msm_routing_put_audio_mixer),
  12840. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12842. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12843. msm_routing_put_audio_mixer),
  12844. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12845. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12846. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12847. msm_routing_put_audio_mixer),
  12848. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12849. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12850. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12851. msm_routing_put_audio_mixer),
  12852. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12853. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12854. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12855. msm_routing_put_audio_mixer),
  12856. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12857. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12858. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12859. msm_routing_put_audio_mixer),
  12860. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12862. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12863. msm_routing_put_audio_mixer),
  12864. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12865. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12866. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12867. msm_routing_put_audio_mixer),
  12868. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12869. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12870. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12871. msm_routing_put_audio_mixer),
  12872. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12874. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12875. msm_routing_put_audio_mixer),
  12876. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12878. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12879. msm_routing_put_audio_mixer),
  12880. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12881. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12882. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12883. msm_routing_put_audio_mixer),
  12884. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12885. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12886. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12887. msm_routing_put_audio_mixer),
  12888. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12889. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12890. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12891. msm_routing_put_audio_mixer),
  12892. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12894. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12895. msm_routing_put_audio_mixer),
  12896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12898. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12899. msm_routing_put_audio_mixer),
  12900. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12901. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12902. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12903. msm_routing_put_audio_mixer),
  12904. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12905. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12907. msm_routing_put_audio_mixer),
  12908. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12910. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12911. msm_routing_put_audio_mixer),
  12912. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12914. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12915. msm_routing_put_audio_mixer),
  12916. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12917. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12918. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12919. msm_routing_put_audio_mixer),
  12920. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12921. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12922. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12923. msm_routing_put_audio_mixer),
  12924. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12925. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12926. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12927. msm_routing_put_audio_mixer),
  12928. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12929. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12930. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12931. msm_routing_put_audio_mixer),
  12932. };
  12933. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12934. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12935. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12936. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12937. msm_routing_put_audio_mixer),
  12938. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12939. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12940. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12941. msm_routing_put_audio_mixer),
  12942. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12944. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12945. msm_routing_put_audio_mixer),
  12946. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12947. MSM_BACKEND_DAI_INT_FM_TX,
  12948. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12949. msm_routing_put_audio_mixer),
  12950. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12951. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12952. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12953. msm_routing_put_audio_mixer),
  12954. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12955. MSM_BACKEND_DAI_AFE_PCM_TX,
  12956. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12957. msm_routing_put_audio_mixer),
  12958. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12959. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12960. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12961. msm_routing_put_audio_mixer),
  12962. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12964. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12965. msm_routing_put_audio_mixer),
  12966. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12967. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12968. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12969. msm_routing_put_audio_mixer),
  12970. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12971. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12972. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12973. msm_routing_put_audio_mixer),
  12974. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12976. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12977. msm_routing_put_audio_mixer),
  12978. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12979. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12980. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12981. msm_routing_put_audio_mixer),
  12982. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12983. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12984. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12985. msm_routing_put_audio_mixer),
  12986. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12987. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12988. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12989. msm_routing_put_audio_mixer),
  12990. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12991. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12992. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12993. msm_routing_put_audio_mixer),
  12994. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12996. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12997. msm_routing_put_audio_mixer),
  12998. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12999. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13000. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13001. msm_routing_put_audio_mixer),
  13002. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13004. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13005. msm_routing_put_audio_mixer),
  13006. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13007. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13008. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13009. msm_routing_put_audio_mixer),
  13010. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13011. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13012. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13013. msm_routing_put_audio_mixer),
  13014. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13016. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13017. msm_routing_put_audio_mixer),
  13018. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13019. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13020. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13021. msm_routing_put_audio_mixer),
  13022. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13023. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13024. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13025. msm_routing_put_audio_mixer),
  13026. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13027. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13028. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13029. msm_routing_put_audio_mixer),
  13030. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13031. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13033. msm_routing_put_audio_mixer),
  13034. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13036. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13037. msm_routing_put_audio_mixer),
  13038. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13039. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13040. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13041. msm_routing_put_audio_mixer),
  13042. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13043. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13044. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13045. msm_routing_put_audio_mixer),
  13046. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13047. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13048. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13049. msm_routing_put_audio_mixer),
  13050. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13051. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13052. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13053. msm_routing_put_audio_mixer),
  13054. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13056. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13057. msm_routing_put_audio_mixer),
  13058. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13059. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13060. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13061. msm_routing_put_audio_mixer),
  13062. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13063. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13064. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13065. msm_routing_put_audio_mixer),
  13066. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13067. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13068. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13069. msm_routing_put_audio_mixer),
  13070. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13071. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13072. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13073. msm_routing_put_audio_mixer),
  13074. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13075. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13076. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13077. msm_routing_put_audio_mixer),
  13078. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13079. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13080. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13081. msm_routing_put_audio_mixer),
  13082. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13083. MSM_BACKEND_DAI_USB_TX,
  13084. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13085. msm_routing_put_audio_mixer),
  13086. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13088. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13089. msm_routing_put_audio_mixer),
  13090. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13091. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13092. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13093. msm_routing_put_audio_mixer),
  13094. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13095. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13096. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13097. msm_routing_put_audio_mixer),
  13098. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13099. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13100. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13101. msm_routing_put_audio_mixer),
  13102. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13103. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13104. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13105. msm_routing_put_audio_mixer),
  13106. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13108. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13109. msm_routing_put_audio_mixer),
  13110. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13111. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13112. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13113. msm_routing_put_audio_mixer),
  13114. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13115. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13116. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13117. msm_routing_put_audio_mixer),
  13118. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13119. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13120. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13121. msm_routing_put_audio_mixer),
  13122. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13123. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13124. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13125. msm_routing_put_audio_mixer),
  13126. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13128. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13129. msm_routing_put_audio_mixer),
  13130. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13131. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13132. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13133. msm_routing_put_audio_mixer),
  13134. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13135. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13136. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13137. msm_routing_put_audio_mixer),
  13138. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13139. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13140. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13141. msm_routing_put_audio_mixer),
  13142. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13143. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13144. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13145. msm_routing_put_audio_mixer),
  13146. };
  13147. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  13148. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13149. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13150. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13151. msm_routing_put_audio_mixer),
  13152. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13153. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13154. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13155. msm_routing_put_audio_mixer),
  13156. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_INT_FM_TX,
  13158. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13159. msm_routing_put_audio_mixer),
  13160. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13161. MSM_BACKEND_DAI_MI2S_TX,
  13162. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13163. msm_routing_put_audio_mixer),
  13164. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13165. MSM_BACKEND_DAI_AFE_PCM_TX,
  13166. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13167. msm_routing_put_audio_mixer),
  13168. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13169. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13170. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13171. msm_routing_put_audio_mixer),
  13172. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13173. MSM_BACKEND_DAI_AUXPCM_TX,
  13174. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13175. msm_routing_put_audio_mixer),
  13176. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13177. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13178. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13179. msm_routing_put_audio_mixer),
  13180. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13181. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13182. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13183. msm_routing_put_audio_mixer),
  13184. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13185. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13186. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13187. msm_routing_put_audio_mixer),
  13188. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13190. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13191. msm_routing_put_audio_mixer),
  13192. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  13193. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  13194. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13195. msm_routing_put_audio_mixer),
  13196. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13197. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13198. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13199. msm_routing_put_audio_mixer),
  13200. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13201. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13202. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13203. msm_routing_put_audio_mixer),
  13204. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13205. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13206. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13207. msm_routing_put_audio_mixer),
  13208. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13210. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13211. msm_routing_put_audio_mixer),
  13212. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13213. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13214. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13215. msm_routing_put_audio_mixer),
  13216. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13217. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13218. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13219. msm_routing_put_audio_mixer),
  13220. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13221. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13222. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13223. msm_routing_put_audio_mixer),
  13224. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13225. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13226. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13227. msm_routing_put_audio_mixer),
  13228. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13230. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13231. msm_routing_put_audio_mixer),
  13232. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13233. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13234. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13235. msm_routing_put_audio_mixer),
  13236. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13237. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13239. msm_routing_put_audio_mixer),
  13240. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13242. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13243. msm_routing_put_audio_mixer),
  13244. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13245. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13247. msm_routing_put_audio_mixer),
  13248. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13250. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13251. msm_routing_put_audio_mixer),
  13252. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13253. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13254. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13255. msm_routing_put_audio_mixer),
  13256. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13257. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13258. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13259. msm_routing_put_audio_mixer),
  13260. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13262. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13263. msm_routing_put_audio_mixer),
  13264. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13265. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13266. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13267. msm_routing_put_audio_mixer),
  13268. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13270. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13271. msm_routing_put_audio_mixer),
  13272. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13273. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13274. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13275. msm_routing_put_audio_mixer),
  13276. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13277. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13278. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13279. msm_routing_put_audio_mixer),
  13280. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13282. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13283. msm_routing_put_audio_mixer),
  13284. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13285. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13286. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13287. msm_routing_put_audio_mixer),
  13288. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13289. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13291. msm_routing_put_audio_mixer),
  13292. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13293. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13294. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13295. msm_routing_put_audio_mixer),
  13296. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13297. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13298. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13299. msm_routing_put_audio_mixer),
  13300. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13302. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13303. msm_routing_put_audio_mixer),
  13304. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13305. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13306. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13307. msm_routing_put_audio_mixer),
  13308. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13309. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13310. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13311. msm_routing_put_audio_mixer),
  13312. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13313. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13314. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13315. msm_routing_put_audio_mixer),
  13316. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13317. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13318. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13319. msm_routing_put_audio_mixer),
  13320. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13322. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13323. msm_routing_put_audio_mixer),
  13324. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13325. MSM_BACKEND_DAI_USB_TX,
  13326. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13327. msm_routing_put_audio_mixer),
  13328. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13329. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13330. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13331. msm_routing_put_audio_mixer),
  13332. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13333. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13334. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13335. msm_routing_put_audio_mixer),
  13336. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13337. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13338. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13339. msm_routing_put_audio_mixer),
  13340. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13342. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13343. msm_routing_put_audio_mixer),
  13344. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13345. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13346. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13347. msm_routing_put_audio_mixer),
  13348. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13349. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13350. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13351. msm_routing_put_audio_mixer),
  13352. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13353. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13354. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13355. msm_routing_put_audio_mixer),
  13356. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13357. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13358. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13359. msm_routing_put_audio_mixer),
  13360. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13362. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13363. msm_routing_put_audio_mixer),
  13364. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13365. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13366. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13367. msm_routing_put_audio_mixer),
  13368. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13369. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13370. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13371. msm_routing_put_audio_mixer),
  13372. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13373. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13374. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13375. msm_routing_put_audio_mixer),
  13376. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13377. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13378. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13379. msm_routing_put_audio_mixer),
  13380. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13381. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13383. msm_routing_put_audio_mixer),
  13384. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13385. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13386. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13387. msm_routing_put_audio_mixer),
  13388. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13389. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13390. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13391. msm_routing_put_audio_mixer),
  13392. };
  13393. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13394. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13395. MSM_BACKEND_DAI_INT_FM_TX,
  13396. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13397. msm_routing_put_audio_mixer),
  13398. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13399. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13400. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13401. msm_routing_put_audio_mixer),
  13402. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13404. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13405. msm_routing_put_audio_mixer),
  13406. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13407. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13408. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13409. msm_routing_put_audio_mixer),
  13410. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13411. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13412. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13413. msm_routing_put_audio_mixer),
  13414. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13415. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13416. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13417. msm_routing_put_audio_mixer),
  13418. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13419. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13420. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13421. msm_routing_put_audio_mixer),
  13422. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13424. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13425. msm_routing_put_audio_mixer),
  13426. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13427. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13428. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13429. msm_routing_put_audio_mixer),
  13430. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13431. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13432. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13433. msm_routing_put_audio_mixer),
  13434. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13435. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13436. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13437. msm_routing_put_audio_mixer),
  13438. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13439. MSM_BACKEND_DAI_AUXPCM_TX,
  13440. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13441. msm_routing_put_audio_mixer),
  13442. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13444. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13445. msm_routing_put_audio_mixer),
  13446. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13447. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13448. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13449. msm_routing_put_audio_mixer),
  13450. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13451. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13452. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13453. msm_routing_put_audio_mixer),
  13454. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13455. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13456. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13457. msm_routing_put_audio_mixer),
  13458. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13459. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13460. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13461. msm_routing_put_audio_mixer),
  13462. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13464. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13465. msm_routing_put_audio_mixer),
  13466. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13467. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13468. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13469. msm_routing_put_audio_mixer),
  13470. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13471. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13472. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13473. msm_routing_put_audio_mixer),
  13474. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13475. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13476. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13477. msm_routing_put_audio_mixer),
  13478. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13479. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13481. msm_routing_put_audio_mixer),
  13482. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13483. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13484. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13485. msm_routing_put_audio_mixer),
  13486. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13487. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13488. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13489. msm_routing_put_audio_mixer),
  13490. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13491. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13492. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13493. msm_routing_put_audio_mixer),
  13494. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13495. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13496. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13497. msm_routing_put_audio_mixer),
  13498. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13499. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13500. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13501. msm_routing_put_audio_mixer),
  13502. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13503. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13504. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13505. msm_routing_put_audio_mixer),
  13506. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13507. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13508. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13509. msm_routing_put_audio_mixer),
  13510. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13511. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13512. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13513. msm_routing_put_audio_mixer),
  13514. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13515. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13516. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13517. msm_routing_put_audio_mixer),
  13518. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13519. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13520. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13521. msm_routing_put_audio_mixer),
  13522. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13523. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13524. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13525. msm_routing_put_audio_mixer),
  13526. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13527. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13528. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13529. msm_routing_put_audio_mixer),
  13530. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13531. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13532. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13533. msm_routing_put_audio_mixer),
  13534. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13535. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13536. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13537. msm_routing_put_audio_mixer),
  13538. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13539. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13540. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13541. msm_routing_put_audio_mixer),
  13542. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13543. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13544. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13545. msm_routing_put_audio_mixer),
  13546. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13547. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13548. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13549. msm_routing_put_audio_mixer),
  13550. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13551. MSM_BACKEND_DAI_USB_TX,
  13552. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13553. msm_routing_put_audio_mixer),
  13554. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13555. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13556. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13557. msm_routing_put_audio_mixer),
  13558. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13559. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13560. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13561. msm_routing_put_audio_mixer),
  13562. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13563. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13564. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13565. msm_routing_put_audio_mixer),
  13566. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13567. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13568. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13569. msm_routing_put_audio_mixer),
  13570. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13571. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13572. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13573. msm_routing_put_audio_mixer),
  13574. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13575. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13576. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13577. msm_routing_put_audio_mixer),
  13578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13580. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13581. msm_routing_put_audio_mixer),
  13582. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13583. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13584. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13585. msm_routing_put_audio_mixer),
  13586. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13588. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13589. msm_routing_put_audio_mixer),
  13590. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13592. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13593. msm_routing_put_audio_mixer),
  13594. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13596. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13597. msm_routing_put_audio_mixer),
  13598. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13600. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13601. msm_routing_put_audio_mixer),
  13602. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13604. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13605. msm_routing_put_audio_mixer),
  13606. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13608. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13609. msm_routing_put_audio_mixer),
  13610. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13611. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13612. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13613. msm_routing_put_audio_mixer),
  13614. };
  13615. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13616. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13617. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13618. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13619. msm_routing_put_audio_mixer),
  13620. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13621. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13622. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13623. msm_routing_put_audio_mixer),
  13624. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13625. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13626. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13627. msm_routing_put_audio_mixer),
  13628. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13629. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13630. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13631. msm_routing_put_audio_mixer),
  13632. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13634. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13635. msm_routing_put_audio_mixer),
  13636. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13638. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13639. msm_routing_put_audio_mixer),
  13640. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13642. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13643. msm_routing_put_audio_mixer),
  13644. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13646. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13647. msm_routing_put_audio_mixer),
  13648. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_INT_FM_TX,
  13650. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13651. msm_routing_put_audio_mixer),
  13652. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13654. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13655. msm_routing_put_audio_mixer),
  13656. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_AFE_PCM_TX,
  13658. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13659. msm_routing_put_audio_mixer),
  13660. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13661. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13662. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13663. msm_routing_put_audio_mixer),
  13664. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13665. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13666. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13667. msm_routing_put_audio_mixer),
  13668. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13670. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13671. msm_routing_put_audio_mixer),
  13672. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13674. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13675. msm_routing_put_audio_mixer),
  13676. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13678. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13679. msm_routing_put_audio_mixer),
  13680. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13682. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13683. msm_routing_put_audio_mixer),
  13684. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13685. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13686. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13687. msm_routing_put_audio_mixer),
  13688. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13689. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13690. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13691. msm_routing_put_audio_mixer),
  13692. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13693. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13694. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13695. msm_routing_put_audio_mixer),
  13696. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13697. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13698. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13699. msm_routing_put_audio_mixer),
  13700. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13701. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13702. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13703. msm_routing_put_audio_mixer),
  13704. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13705. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13706. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13707. msm_routing_put_audio_mixer),
  13708. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13710. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13711. msm_routing_put_audio_mixer),
  13712. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13714. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13715. msm_routing_put_audio_mixer),
  13716. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13718. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13719. msm_routing_put_audio_mixer),
  13720. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13722. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13723. msm_routing_put_audio_mixer),
  13724. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13726. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13727. msm_routing_put_audio_mixer),
  13728. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13730. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13731. msm_routing_put_audio_mixer),
  13732. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13734. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13735. msm_routing_put_audio_mixer),
  13736. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13737. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13739. msm_routing_put_audio_mixer),
  13740. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13741. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13742. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13743. msm_routing_put_audio_mixer),
  13744. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13745. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13747. msm_routing_put_audio_mixer),
  13748. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13750. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13751. msm_routing_put_audio_mixer),
  13752. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13754. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13755. msm_routing_put_audio_mixer),
  13756. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13758. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13759. msm_routing_put_audio_mixer),
  13760. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13761. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13762. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13763. msm_routing_put_audio_mixer),
  13764. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13765. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13766. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13767. msm_routing_put_audio_mixer),
  13768. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13770. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13771. msm_routing_put_audio_mixer),
  13772. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_USB_TX,
  13774. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13775. msm_routing_put_audio_mixer),
  13776. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13777. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13779. msm_routing_put_audio_mixer),
  13780. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13781. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13782. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13783. msm_routing_put_audio_mixer),
  13784. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13785. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13786. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13787. msm_routing_put_audio_mixer),
  13788. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13789. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13790. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13791. msm_routing_put_audio_mixer),
  13792. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13793. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13794. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13795. msm_routing_put_audio_mixer),
  13796. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13797. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13798. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13799. msm_routing_put_audio_mixer),
  13800. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13802. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13803. msm_routing_put_audio_mixer),
  13804. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13806. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13807. msm_routing_put_audio_mixer),
  13808. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13810. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13811. msm_routing_put_audio_mixer),
  13812. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13814. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13815. msm_routing_put_audio_mixer),
  13816. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13818. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13819. msm_routing_put_audio_mixer),
  13820. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13822. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13823. msm_routing_put_audio_mixer),
  13824. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13826. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13827. msm_routing_put_audio_mixer),
  13828. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13830. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13831. msm_routing_put_audio_mixer),
  13832. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13834. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13835. msm_routing_put_audio_mixer),
  13836. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13837. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13838. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13839. msm_routing_put_audio_mixer),
  13840. };
  13841. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13842. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13844. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13845. msm_routing_put_audio_mixer),
  13846. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13848. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13849. msm_routing_put_audio_mixer),
  13850. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13852. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13853. msm_routing_put_audio_mixer),
  13854. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13856. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13857. msm_routing_put_audio_mixer),
  13858. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13860. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13861. msm_routing_put_audio_mixer),
  13862. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13864. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13865. msm_routing_put_audio_mixer),
  13866. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13869. msm_routing_put_audio_mixer),
  13870. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13872. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13873. msm_routing_put_audio_mixer),
  13874. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_INT_FM_TX,
  13876. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13877. msm_routing_put_audio_mixer),
  13878. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13880. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13881. msm_routing_put_audio_mixer),
  13882. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13883. MSM_BACKEND_DAI_AFE_PCM_TX,
  13884. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13885. msm_routing_put_audio_mixer),
  13886. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13887. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13888. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13889. msm_routing_put_audio_mixer),
  13890. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13891. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13892. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13893. msm_routing_put_audio_mixer),
  13894. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13895. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13896. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13897. msm_routing_put_audio_mixer),
  13898. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13899. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13900. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13901. msm_routing_put_audio_mixer),
  13902. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13903. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13904. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13905. msm_routing_put_audio_mixer),
  13906. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13907. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13908. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13909. msm_routing_put_audio_mixer),
  13910. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13911. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13912. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13913. msm_routing_put_audio_mixer),
  13914. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13915. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13916. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13917. msm_routing_put_audio_mixer),
  13918. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13919. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13920. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13921. msm_routing_put_audio_mixer),
  13922. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13924. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13925. msm_routing_put_audio_mixer),
  13926. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13928. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13929. msm_routing_put_audio_mixer),
  13930. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13932. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13933. msm_routing_put_audio_mixer),
  13934. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13936. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13937. msm_routing_put_audio_mixer),
  13938. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13941. msm_routing_put_audio_mixer),
  13942. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13944. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13945. msm_routing_put_audio_mixer),
  13946. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13948. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13949. msm_routing_put_audio_mixer),
  13950. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13952. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13953. msm_routing_put_audio_mixer),
  13954. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13955. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13956. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13957. msm_routing_put_audio_mixer),
  13958. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13959. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13960. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13961. msm_routing_put_audio_mixer),
  13962. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13963. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13964. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13965. msm_routing_put_audio_mixer),
  13966. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13967. MSM_BACKEND_DAI_USB_TX,
  13968. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13969. msm_routing_put_audio_mixer),
  13970. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13971. MSM_BACKEND_DAI_MI2S_TX,
  13972. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13973. msm_routing_put_audio_mixer),
  13974. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13975. MSM_BACKEND_DAI_AUXPCM_TX,
  13976. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13977. msm_routing_put_audio_mixer),
  13978. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13979. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13980. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13981. msm_routing_put_audio_mixer),
  13982. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13983. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13984. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13985. msm_routing_put_audio_mixer),
  13986. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13987. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13988. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13989. msm_routing_put_audio_mixer),
  13990. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13992. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13993. msm_routing_put_audio_mixer),
  13994. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13996. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13997. msm_routing_put_audio_mixer),
  13998. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14000. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14001. msm_routing_put_audio_mixer),
  14002. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14004. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14005. msm_routing_put_audio_mixer),
  14006. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14008. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14009. msm_routing_put_audio_mixer),
  14010. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14012. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14013. msm_routing_get_audio_mixer,
  14014. msm_routing_put_audio_mixer),
  14015. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14016. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14017. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14018. msm_routing_get_audio_mixer,
  14019. msm_routing_put_audio_mixer),
  14020. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14021. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14022. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14023. msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14028. msm_routing_get_audio_mixer,
  14029. msm_routing_put_audio_mixer),
  14030. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14031. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14032. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14033. msm_routing_get_audio_mixer,
  14034. msm_routing_put_audio_mixer),
  14035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14037. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14038. msm_routing_get_audio_mixer,
  14039. msm_routing_put_audio_mixer),
  14040. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14041. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14042. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14043. msm_routing_put_audio_mixer),
  14044. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14046. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14047. msm_routing_put_audio_mixer),
  14048. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14049. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14050. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14051. msm_routing_put_audio_mixer),
  14052. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14053. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14054. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14055. msm_routing_put_audio_mixer),
  14056. };
  14057. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  14058. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14060. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14061. msm_routing_put_audio_mixer),
  14062. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14064. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14065. msm_routing_put_audio_mixer),
  14066. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14067. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14068. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14069. msm_routing_put_audio_mixer),
  14070. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14071. MSM_BACKEND_DAI_INT_FM_TX,
  14072. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14073. msm_routing_put_audio_mixer),
  14074. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14076. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14077. msm_routing_put_audio_mixer),
  14078. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14079. MSM_BACKEND_DAI_AFE_PCM_TX,
  14080. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14081. msm_routing_put_audio_mixer),
  14082. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14083. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14084. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14085. msm_routing_put_audio_mixer),
  14086. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14087. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14088. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14089. msm_routing_put_audio_mixer),
  14090. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14091. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14092. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14093. msm_routing_put_audio_mixer),
  14094. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14095. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14096. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14097. msm_routing_put_audio_mixer),
  14098. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14100. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14101. msm_routing_put_audio_mixer),
  14102. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14103. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14104. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14105. msm_routing_put_audio_mixer),
  14106. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14107. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14108. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14109. msm_routing_put_audio_mixer),
  14110. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14111. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14112. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14113. msm_routing_put_audio_mixer),
  14114. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14116. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14117. msm_routing_put_audio_mixer),
  14118. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14119. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14120. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14121. msm_routing_put_audio_mixer),
  14122. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14123. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14124. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14125. msm_routing_put_audio_mixer),
  14126. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14128. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14129. msm_routing_put_audio_mixer),
  14130. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14131. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14132. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14133. msm_routing_put_audio_mixer),
  14134. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14135. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14136. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14137. msm_routing_put_audio_mixer),
  14138. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14140. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14141. msm_routing_put_audio_mixer),
  14142. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14143. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14144. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14145. msm_routing_put_audio_mixer),
  14146. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14147. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14148. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14149. msm_routing_put_audio_mixer),
  14150. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14151. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14152. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14153. msm_routing_put_audio_mixer),
  14154. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14155. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14156. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14157. msm_routing_put_audio_mixer),
  14158. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14159. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14160. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14161. msm_routing_put_audio_mixer),
  14162. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14163. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14164. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14165. msm_routing_put_audio_mixer),
  14166. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14168. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14169. msm_routing_put_audio_mixer),
  14170. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14171. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14172. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14173. msm_routing_put_audio_mixer),
  14174. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14175. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14176. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14177. msm_routing_put_audio_mixer),
  14178. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14180. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14181. msm_routing_put_audio_mixer),
  14182. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14183. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14184. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14185. msm_routing_put_audio_mixer),
  14186. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14187. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14189. msm_routing_put_audio_mixer),
  14190. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14192. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14193. msm_routing_put_audio_mixer),
  14194. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14195. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14196. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14197. msm_routing_put_audio_mixer),
  14198. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14199. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14200. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14201. msm_routing_put_audio_mixer),
  14202. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14204. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14205. msm_routing_put_audio_mixer),
  14206. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14207. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14208. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14209. msm_routing_put_audio_mixer),
  14210. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14211. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14212. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14213. msm_routing_put_audio_mixer),
  14214. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14215. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14217. msm_routing_put_audio_mixer),
  14218. };
  14219. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  14220. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14222. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14223. msm_routing_put_audio_mixer),
  14224. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14225. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14226. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14227. msm_routing_put_audio_mixer),
  14228. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14229. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14230. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14231. msm_routing_put_audio_mixer),
  14232. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14233. MSM_BACKEND_DAI_INT_FM_TX,
  14234. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14235. msm_routing_put_audio_mixer),
  14236. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14237. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14238. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14239. msm_routing_put_audio_mixer),
  14240. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14241. MSM_BACKEND_DAI_AFE_PCM_TX,
  14242. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14243. msm_routing_put_audio_mixer),
  14244. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14245. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14246. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14247. msm_routing_put_audio_mixer),
  14248. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14250. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14251. msm_routing_put_audio_mixer),
  14252. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14253. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14254. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14255. msm_routing_put_audio_mixer),
  14256. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14257. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14258. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14259. msm_routing_put_audio_mixer),
  14260. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14261. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14262. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14263. msm_routing_put_audio_mixer),
  14264. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14265. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14267. msm_routing_put_audio_mixer),
  14268. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14270. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14271. msm_routing_put_audio_mixer),
  14272. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14273. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14274. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14275. msm_routing_put_audio_mixer),
  14276. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14277. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14278. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14279. msm_routing_put_audio_mixer),
  14280. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14281. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14282. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14283. msm_routing_put_audio_mixer),
  14284. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14285. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14287. msm_routing_put_audio_mixer),
  14288. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14290. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14291. msm_routing_put_audio_mixer),
  14292. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_USB_TX,
  14294. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14295. msm_routing_put_audio_mixer),
  14296. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14297. MSM_BACKEND_DAI_MI2S_TX,
  14298. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14299. msm_routing_put_audio_mixer),
  14300. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_AUXPCM_TX,
  14302. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14303. msm_routing_put_audio_mixer),
  14304. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14306. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14307. msm_routing_put_audio_mixer),
  14308. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14310. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14311. msm_routing_put_audio_mixer),
  14312. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  14313. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14314. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14315. msm_routing_put_audio_mixer),
  14316. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14317. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14318. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14319. msm_routing_put_audio_mixer),
  14320. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_INT2_MI2S_TX,
  14322. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14323. msm_routing_put_audio_mixer),
  14324. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14325. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14326. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14327. msm_routing_put_audio_mixer),
  14328. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14329. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14330. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14331. msm_routing_put_audio_mixer),
  14332. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14334. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14335. msm_routing_put_audio_mixer),
  14336. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14337. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14338. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14339. msm_routing_put_audio_mixer),
  14340. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14342. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14343. msm_routing_put_audio_mixer),
  14344. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14345. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14347. msm_routing_put_audio_mixer),
  14348. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14349. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14350. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14351. msm_routing_put_audio_mixer),
  14352. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14353. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14354. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14355. msm_routing_get_audio_mixer,
  14356. msm_routing_put_audio_mixer),
  14357. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14360. msm_routing_get_audio_mixer,
  14361. msm_routing_put_audio_mixer),
  14362. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14363. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14364. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14365. msm_routing_get_audio_mixer,
  14366. msm_routing_put_audio_mixer),
  14367. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14370. msm_routing_get_audio_mixer,
  14371. msm_routing_put_audio_mixer),
  14372. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14373. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14374. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14375. msm_routing_get_audio_mixer,
  14376. msm_routing_put_audio_mixer),
  14377. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14379. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14380. msm_routing_get_audio_mixer,
  14381. msm_routing_put_audio_mixer),
  14382. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14383. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14385. msm_routing_put_audio_mixer),
  14386. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14387. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14388. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14389. msm_routing_put_audio_mixer),
  14390. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14391. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14392. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14393. msm_routing_put_audio_mixer),
  14394. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14395. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14396. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14397. msm_routing_put_audio_mixer),
  14398. };
  14399. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14400. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14402. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14403. msm_routing_put_audio_mixer),
  14404. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14405. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14406. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14407. msm_routing_put_audio_mixer),
  14408. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14409. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14410. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14411. msm_routing_put_audio_mixer),
  14412. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14414. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14415. msm_routing_put_audio_mixer),
  14416. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_INT_FM_TX,
  14418. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14419. msm_routing_put_audio_mixer),
  14420. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14422. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14423. msm_routing_put_audio_mixer),
  14424. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_AFE_PCM_TX,
  14426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14427. msm_routing_put_audio_mixer),
  14428. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14431. msm_routing_put_audio_mixer),
  14432. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14434. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14435. msm_routing_put_audio_mixer),
  14436. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14438. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14439. msm_routing_put_audio_mixer),
  14440. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14442. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14443. msm_routing_put_audio_mixer),
  14444. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14446. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14447. msm_routing_put_audio_mixer),
  14448. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14450. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14451. msm_routing_put_audio_mixer),
  14452. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14454. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14455. msm_routing_put_audio_mixer),
  14456. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14457. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14458. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14459. msm_routing_put_audio_mixer),
  14460. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14462. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14463. msm_routing_put_audio_mixer),
  14464. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14465. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14466. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14467. msm_routing_put_audio_mixer),
  14468. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14470. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14471. msm_routing_get_audio_mixer,
  14472. msm_routing_put_audio_mixer),
  14473. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14475. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14476. msm_routing_get_audio_mixer,
  14477. msm_routing_put_audio_mixer),
  14478. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14479. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14480. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14481. msm_routing_get_audio_mixer,
  14482. msm_routing_put_audio_mixer),
  14483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14486. msm_routing_get_audio_mixer,
  14487. msm_routing_put_audio_mixer),
  14488. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14489. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14490. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14491. msm_routing_get_audio_mixer,
  14492. msm_routing_put_audio_mixer),
  14493. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14495. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14496. msm_routing_get_audio_mixer,
  14497. msm_routing_put_audio_mixer),
  14498. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14500. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14501. msm_routing_put_audio_mixer),
  14502. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14504. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14505. msm_routing_put_audio_mixer),
  14506. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14508. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14509. msm_routing_put_audio_mixer),
  14510. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14512. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14513. msm_routing_put_audio_mixer),
  14514. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14515. MSM_BACKEND_DAI_USB_TX,
  14516. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14517. msm_routing_put_audio_mixer),
  14518. };
  14519. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14520. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14521. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14522. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14523. msm_routing_put_audio_mixer),
  14524. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14525. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14526. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14527. msm_routing_put_audio_mixer),
  14528. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14529. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14530. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14531. msm_routing_put_audio_mixer),
  14532. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14533. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14534. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14535. msm_routing_put_audio_mixer),
  14536. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14537. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14538. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14539. msm_routing_put_audio_mixer),
  14540. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14541. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14542. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14543. msm_routing_put_audio_mixer),
  14544. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14545. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14546. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14547. msm_routing_put_audio_mixer),
  14548. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14549. MSM_BACKEND_DAI_INT_FM_TX,
  14550. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14551. msm_routing_put_audio_mixer),
  14552. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14553. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14554. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14555. msm_routing_put_audio_mixer),
  14556. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14557. MSM_BACKEND_DAI_AFE_PCM_TX,
  14558. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14559. msm_routing_put_audio_mixer),
  14560. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14561. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14562. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14563. msm_routing_put_audio_mixer),
  14564. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14566. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14567. msm_routing_put_audio_mixer),
  14568. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14570. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14571. msm_routing_put_audio_mixer),
  14572. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14573. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14574. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14575. msm_routing_put_audio_mixer),
  14576. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14578. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14579. msm_routing_put_audio_mixer),
  14580. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14581. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14582. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14583. msm_routing_put_audio_mixer),
  14584. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14586. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14587. msm_routing_put_audio_mixer),
  14588. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14589. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14590. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14591. msm_routing_put_audio_mixer),
  14592. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14593. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14594. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14595. msm_routing_get_audio_mixer,
  14596. msm_routing_put_audio_mixer),
  14597. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14599. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14600. msm_routing_get_audio_mixer,
  14601. msm_routing_put_audio_mixer),
  14602. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14603. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14604. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14605. msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14610. msm_routing_get_audio_mixer,
  14611. msm_routing_put_audio_mixer),
  14612. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14613. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14614. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14615. msm_routing_get_audio_mixer,
  14616. msm_routing_put_audio_mixer),
  14617. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14619. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14620. msm_routing_get_audio_mixer,
  14621. msm_routing_put_audio_mixer),
  14622. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14623. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14624. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14625. msm_routing_put_audio_mixer),
  14626. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14627. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14628. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14629. msm_routing_put_audio_mixer),
  14630. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14631. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14632. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14633. msm_routing_put_audio_mixer),
  14634. };
  14635. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14636. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14637. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14638. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14639. msm_routing_put_audio_mixer),
  14640. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14641. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14642. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14643. msm_routing_put_audio_mixer),
  14644. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14646. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14647. msm_routing_put_audio_mixer),
  14648. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14650. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14651. msm_routing_put_audio_mixer),
  14652. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14653. MSM_BACKEND_DAI_INT_FM_TX,
  14654. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14655. msm_routing_put_audio_mixer),
  14656. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14658. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14659. msm_routing_put_audio_mixer),
  14660. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_AFE_PCM_TX,
  14662. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14663. msm_routing_put_audio_mixer),
  14664. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14665. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14666. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14667. msm_routing_put_audio_mixer),
  14668. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14669. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14670. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14671. msm_routing_put_audio_mixer),
  14672. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14673. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14674. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14675. msm_routing_put_audio_mixer),
  14676. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14677. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14678. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14679. msm_routing_put_audio_mixer),
  14680. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14681. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14682. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14683. msm_routing_put_audio_mixer),
  14684. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14685. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14686. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14687. msm_routing_put_audio_mixer),
  14688. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14689. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14690. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14691. msm_routing_put_audio_mixer),
  14692. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14693. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14694. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14695. msm_routing_put_audio_mixer),
  14696. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14697. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14698. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14699. msm_routing_put_audio_mixer),
  14700. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14702. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14703. msm_routing_put_audio_mixer),
  14704. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14705. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14706. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14707. msm_routing_put_audio_mixer),
  14708. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14709. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14710. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14711. msm_routing_get_audio_mixer,
  14712. msm_routing_put_audio_mixer),
  14713. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14715. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14716. msm_routing_get_audio_mixer,
  14717. msm_routing_put_audio_mixer),
  14718. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14719. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14720. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14721. msm_routing_get_audio_mixer,
  14722. msm_routing_put_audio_mixer),
  14723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14725. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14726. msm_routing_get_audio_mixer,
  14727. msm_routing_put_audio_mixer),
  14728. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14729. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14730. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14731. msm_routing_get_audio_mixer,
  14732. msm_routing_put_audio_mixer),
  14733. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14735. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14736. msm_routing_get_audio_mixer,
  14737. msm_routing_put_audio_mixer),
  14738. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14739. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14740. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14741. msm_routing_put_audio_mixer),
  14742. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14743. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14744. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14745. msm_routing_put_audio_mixer),
  14746. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14748. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14749. msm_routing_put_audio_mixer),
  14750. };
  14751. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14752. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14753. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14754. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14755. msm_routing_put_audio_mixer),
  14756. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14757. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14758. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14759. msm_routing_put_audio_mixer),
  14760. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14761. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14762. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14763. msm_routing_put_audio_mixer),
  14764. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14765. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14766. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14767. msm_routing_put_audio_mixer),
  14768. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14769. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14770. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14771. msm_routing_put_audio_mixer),
  14772. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14774. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14775. msm_routing_put_audio_mixer),
  14776. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14777. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14778. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14779. msm_routing_put_audio_mixer),
  14780. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14781. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14782. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14783. msm_routing_put_audio_mixer),
  14784. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14785. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14786. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14787. msm_routing_put_audio_mixer),
  14788. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14789. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14790. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14791. msm_routing_put_audio_mixer),
  14792. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14793. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14794. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14795. msm_routing_put_audio_mixer),
  14796. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14797. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14798. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14799. msm_routing_put_audio_mixer),
  14800. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14801. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14802. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14803. msm_routing_put_audio_mixer),
  14804. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14805. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14806. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14807. msm_routing_put_audio_mixer),
  14808. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14809. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14810. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14811. msm_routing_put_audio_mixer),
  14812. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14813. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14814. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14815. msm_routing_put_audio_mixer),
  14816. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14817. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14818. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14819. msm_routing_put_audio_mixer),
  14820. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14821. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14822. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14823. msm_routing_put_audio_mixer),
  14824. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14825. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14826. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14827. msm_routing_put_audio_mixer),
  14828. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14829. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14830. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14831. msm_routing_put_audio_mixer),
  14832. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14833. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14834. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14835. msm_routing_put_audio_mixer),
  14836. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14837. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14838. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14839. msm_routing_put_audio_mixer),
  14840. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14841. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14842. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14843. msm_routing_put_audio_mixer),
  14844. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14845. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14846. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14847. msm_routing_put_audio_mixer),
  14848. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14849. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14850. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14851. msm_routing_put_audio_mixer),
  14852. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14853. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14854. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14855. msm_routing_put_audio_mixer),
  14856. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14857. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14858. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14859. msm_routing_put_audio_mixer),
  14860. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14861. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14862. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14863. msm_routing_put_audio_mixer),
  14864. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14865. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14866. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14867. msm_routing_put_audio_mixer),
  14868. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14869. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14870. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14871. msm_routing_put_audio_mixer),
  14872. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14873. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14874. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14875. msm_routing_put_audio_mixer),
  14876. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14877. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14878. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14879. msm_routing_put_audio_mixer),
  14880. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14881. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14882. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14883. msm_routing_put_audio_mixer),
  14884. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14885. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14886. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14887. msm_routing_put_audio_mixer),
  14888. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14889. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14890. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14891. msm_routing_put_audio_mixer),
  14892. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14893. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14894. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14895. msm_routing_put_audio_mixer),
  14896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14898. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14899. msm_routing_put_audio_mixer),
  14900. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14901. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14902. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14903. msm_routing_put_audio_mixer),
  14904. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14905. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14906. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14907. msm_routing_put_audio_mixer),
  14908. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14910. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14911. msm_routing_put_audio_mixer),
  14912. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14913. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14914. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14915. msm_routing_put_audio_mixer),
  14916. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14917. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14918. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14919. msm_routing_put_audio_mixer),
  14920. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14921. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14922. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14923. msm_routing_put_audio_mixer),
  14924. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14925. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14926. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14927. msm_routing_put_audio_mixer),
  14928. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14929. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14930. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14931. msm_routing_put_audio_mixer),
  14932. };
  14933. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14934. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14935. MSM_BACKEND_DAI_AUXPCM_TX,
  14936. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14937. msm_routing_put_audio_mixer),
  14938. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14939. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14940. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14941. msm_routing_put_audio_mixer),
  14942. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14943. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14944. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14945. msm_routing_put_audio_mixer),
  14946. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14947. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14948. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14949. msm_routing_put_audio_mixer),
  14950. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14951. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14952. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14953. msm_routing_put_audio_mixer),
  14954. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14955. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14956. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14957. msm_routing_put_audio_mixer),
  14958. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14959. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14960. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14961. msm_routing_put_audio_mixer),
  14962. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14963. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14964. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14965. msm_routing_put_audio_mixer),
  14966. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14967. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14968. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14969. msm_routing_put_audio_mixer),
  14970. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14971. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14972. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14973. msm_routing_put_audio_mixer),
  14974. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14975. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14976. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14977. msm_routing_put_audio_mixer),
  14978. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14979. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14980. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14981. msm_routing_put_audio_mixer),
  14982. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14983. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14984. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14985. msm_routing_put_audio_mixer),
  14986. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14987. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14988. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14989. msm_routing_put_audio_mixer),
  14990. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14991. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14992. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14993. msm_routing_put_audio_mixer),
  14994. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14995. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14996. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14997. msm_routing_put_audio_mixer),
  14998. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14999. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15000. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15001. msm_routing_put_audio_mixer),
  15002. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15003. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15004. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15005. msm_routing_put_audio_mixer),
  15006. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15007. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15008. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15009. msm_routing_put_audio_mixer),
  15010. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15011. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15012. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15013. msm_routing_put_audio_mixer),
  15014. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15015. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15016. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15017. msm_routing_put_audio_mixer),
  15018. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15019. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15020. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15021. msm_routing_put_audio_mixer),
  15022. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15023. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  15024. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15025. msm_routing_put_audio_mixer),
  15026. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15027. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  15028. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15029. msm_routing_put_audio_mixer),
  15030. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15031. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  15032. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15033. msm_routing_put_audio_mixer),
  15034. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15035. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  15036. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15037. msm_routing_put_audio_mixer),
  15038. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15039. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15040. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15041. msm_routing_put_audio_mixer),
  15042. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15043. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15044. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15045. msm_routing_put_audio_mixer),
  15046. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15047. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15048. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15049. msm_routing_put_audio_mixer),
  15050. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15051. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15052. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15053. msm_routing_put_audio_mixer),
  15054. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15055. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15056. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15057. msm_routing_put_audio_mixer),
  15058. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15059. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15060. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15061. msm_routing_put_audio_mixer),
  15062. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15063. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15064. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15065. msm_routing_put_audio_mixer),
  15066. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15067. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15068. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15069. msm_routing_put_audio_mixer),
  15070. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15071. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15072. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15073. msm_routing_put_audio_mixer),
  15074. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15075. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15076. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15077. msm_routing_put_audio_mixer),
  15078. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15079. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15080. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15081. msm_routing_put_audio_mixer),
  15082. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15083. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15084. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15085. msm_routing_put_audio_mixer),
  15086. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15087. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15088. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15089. msm_routing_put_audio_mixer),
  15090. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15091. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15092. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15093. msm_routing_put_audio_mixer),
  15094. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15095. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15096. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15097. msm_routing_put_audio_mixer),
  15098. };
  15099. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  15100. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15101. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15102. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15103. msm_routing_put_audio_mixer),
  15104. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15105. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15106. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15107. msm_routing_put_audio_mixer),
  15108. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15109. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15110. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15111. msm_routing_put_audio_mixer),
  15112. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15113. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15114. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15115. msm_routing_put_audio_mixer),
  15116. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15117. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15118. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15119. msm_routing_put_audio_mixer),
  15120. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15121. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15122. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15123. msm_routing_put_audio_mixer),
  15124. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15125. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15126. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15127. msm_routing_put_audio_mixer),
  15128. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15129. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15130. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15131. msm_routing_put_audio_mixer),
  15132. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15133. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15134. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15135. msm_routing_put_audio_mixer),
  15136. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15137. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15138. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15139. msm_routing_put_audio_mixer),
  15140. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15141. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15142. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15143. msm_routing_put_audio_mixer),
  15144. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15145. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15146. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15147. msm_routing_put_audio_mixer),
  15148. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15149. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15150. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15151. msm_routing_put_audio_mixer),
  15152. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15153. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15154. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15155. msm_routing_put_audio_mixer),
  15156. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15157. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15158. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15159. msm_routing_put_audio_mixer),
  15160. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15161. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15162. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15163. msm_routing_put_audio_mixer),
  15164. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15165. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15166. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15167. msm_routing_put_audio_mixer),
  15168. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15169. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15170. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15171. msm_routing_put_audio_mixer),
  15172. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15173. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15174. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15175. msm_routing_put_audio_mixer),
  15176. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15177. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15178. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15179. msm_routing_put_audio_mixer),
  15180. };
  15181. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  15182. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15183. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15184. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15185. msm_routing_put_audio_mixer),
  15186. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15187. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15188. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15189. msm_routing_put_audio_mixer),
  15190. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15191. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15192. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15193. msm_routing_put_audio_mixer),
  15194. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15195. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15196. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15197. msm_routing_put_audio_mixer),
  15198. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15199. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15200. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15201. msm_routing_put_audio_mixer),
  15202. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15203. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15204. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15205. msm_routing_put_audio_mixer),
  15206. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15207. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15208. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15209. msm_routing_put_audio_mixer),
  15210. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15211. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15212. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15213. msm_routing_put_audio_mixer),
  15214. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15215. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15216. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15217. msm_routing_put_audio_mixer),
  15218. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15219. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15220. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15221. msm_routing_put_audio_mixer),
  15222. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15223. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15224. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15225. msm_routing_put_audio_mixer),
  15226. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15227. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15228. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15229. msm_routing_put_audio_mixer),
  15230. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15231. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15232. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15233. msm_routing_put_audio_mixer),
  15234. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15235. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15236. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15237. msm_routing_put_audio_mixer),
  15238. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15239. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15240. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15241. msm_routing_put_audio_mixer),
  15242. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15243. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15244. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15245. msm_routing_put_audio_mixer),
  15246. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15247. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15248. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15249. msm_routing_put_audio_mixer),
  15250. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15251. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15252. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15253. msm_routing_put_audio_mixer),
  15254. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15255. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15256. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15257. msm_routing_put_audio_mixer),
  15258. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15259. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15260. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15261. msm_routing_put_audio_mixer),
  15262. };
  15263. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  15264. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15265. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15266. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15267. msm_routing_put_audio_mixer),
  15268. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15269. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15270. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15271. msm_routing_put_audio_mixer),
  15272. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15273. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15274. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15275. msm_routing_put_audio_mixer),
  15276. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15277. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15278. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15279. msm_routing_put_audio_mixer),
  15280. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15281. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15282. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15283. msm_routing_put_audio_mixer),
  15284. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15285. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15286. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15287. msm_routing_put_audio_mixer),
  15288. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15289. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15290. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15291. msm_routing_put_audio_mixer),
  15292. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15293. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15294. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15295. msm_routing_put_audio_mixer),
  15296. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15297. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15298. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15299. msm_routing_put_audio_mixer),
  15300. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15301. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15302. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15303. msm_routing_put_audio_mixer),
  15304. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15305. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15306. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15307. msm_routing_put_audio_mixer),
  15308. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15309. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15310. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15311. msm_routing_put_audio_mixer),
  15312. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15313. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15314. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15315. msm_routing_put_audio_mixer),
  15316. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15317. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15318. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15319. msm_routing_put_audio_mixer),
  15320. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15321. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15322. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15323. msm_routing_put_audio_mixer),
  15324. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15325. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15326. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15327. msm_routing_put_audio_mixer),
  15328. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15329. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15330. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15331. msm_routing_put_audio_mixer),
  15332. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15333. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15334. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15335. msm_routing_put_audio_mixer),
  15336. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15337. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15338. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15339. msm_routing_put_audio_mixer),
  15340. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15341. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15342. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15343. msm_routing_put_audio_mixer),
  15344. };
  15345. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  15346. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15347. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15348. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15349. msm_routing_put_audio_mixer),
  15350. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15351. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15352. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15353. msm_routing_put_audio_mixer),
  15354. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15355. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15356. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15357. msm_routing_put_audio_mixer),
  15358. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15359. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15360. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15361. msm_routing_put_audio_mixer),
  15362. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15363. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15364. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15365. msm_routing_put_audio_mixer),
  15366. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15368. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15369. msm_routing_put_audio_mixer),
  15370. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15371. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15372. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15373. msm_routing_put_audio_mixer),
  15374. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15375. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15376. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15377. msm_routing_put_audio_mixer),
  15378. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15380. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15381. msm_routing_put_audio_mixer),
  15382. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15384. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15385. msm_routing_put_audio_mixer),
  15386. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15387. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15388. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15389. msm_routing_put_audio_mixer),
  15390. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15391. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15392. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15393. msm_routing_put_audio_mixer),
  15394. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15395. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15396. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15397. msm_routing_put_audio_mixer),
  15398. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15399. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15400. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15401. msm_routing_put_audio_mixer),
  15402. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15403. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15404. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15405. msm_routing_put_audio_mixer),
  15406. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15407. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15408. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15409. msm_routing_put_audio_mixer),
  15410. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15412. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15413. msm_routing_put_audio_mixer),
  15414. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15416. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15417. msm_routing_put_audio_mixer),
  15418. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15420. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15421. msm_routing_put_audio_mixer),
  15422. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15424. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15425. msm_routing_put_audio_mixer),
  15426. };
  15427. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15428. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15429. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15430. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15431. msm_routing_put_audio_mixer),
  15432. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15434. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15435. msm_routing_put_audio_mixer),
  15436. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15437. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15438. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15439. msm_routing_put_audio_mixer),
  15440. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15441. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15442. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15443. msm_routing_put_audio_mixer),
  15444. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15446. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15447. msm_routing_put_audio_mixer),
  15448. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15450. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15451. msm_routing_put_audio_mixer),
  15452. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15454. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15455. msm_routing_put_audio_mixer),
  15456. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15458. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15459. msm_routing_put_audio_mixer),
  15460. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15462. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15463. msm_routing_put_audio_mixer),
  15464. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15465. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15466. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15467. msm_routing_put_audio_mixer),
  15468. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15469. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15470. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15471. msm_routing_put_audio_mixer),
  15472. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15474. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15475. msm_routing_put_audio_mixer),
  15476. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15477. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15478. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15479. msm_routing_put_audio_mixer),
  15480. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15481. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15482. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15483. msm_routing_put_audio_mixer),
  15484. };
  15485. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15486. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15487. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15488. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15489. msm_routing_put_audio_mixer),
  15490. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15491. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15492. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15493. msm_routing_put_audio_mixer),
  15494. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15495. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15496. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15497. msm_routing_put_audio_mixer),
  15498. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15499. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15500. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15501. msm_routing_put_audio_mixer),
  15502. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_INT_FM_TX,
  15504. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15505. msm_routing_put_audio_mixer),
  15506. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15507. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15508. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15509. msm_routing_put_audio_mixer),
  15510. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_AFE_PCM_TX,
  15512. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15513. msm_routing_put_audio_mixer),
  15514. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15516. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15517. msm_routing_put_audio_mixer),
  15518. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15520. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15521. msm_routing_put_audio_mixer),
  15522. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15524. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15525. msm_routing_put_audio_mixer),
  15526. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15527. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15528. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15529. msm_routing_put_audio_mixer),
  15530. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15531. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15532. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15533. msm_routing_put_audio_mixer),
  15534. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15535. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15536. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15537. msm_routing_put_audio_mixer),
  15538. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15539. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15540. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15541. msm_routing_put_audio_mixer),
  15542. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15543. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15544. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15545. msm_routing_put_audio_mixer),
  15546. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15547. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15548. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15549. msm_routing_put_audio_mixer),
  15550. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15552. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15553. msm_routing_put_audio_mixer),
  15554. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15556. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15557. msm_routing_put_audio_mixer),
  15558. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15560. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15561. msm_routing_get_audio_mixer,
  15562. msm_routing_put_audio_mixer),
  15563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15565. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15566. msm_routing_get_audio_mixer,
  15567. msm_routing_put_audio_mixer),
  15568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15570. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15571. msm_routing_get_audio_mixer,
  15572. msm_routing_put_audio_mixer),
  15573. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15575. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15576. msm_routing_get_audio_mixer,
  15577. msm_routing_put_audio_mixer),
  15578. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15579. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15580. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15581. msm_routing_get_audio_mixer,
  15582. msm_routing_put_audio_mixer),
  15583. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15585. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15586. msm_routing_get_audio_mixer,
  15587. msm_routing_put_audio_mixer),
  15588. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15590. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15591. msm_routing_put_audio_mixer),
  15592. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15594. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15595. msm_routing_put_audio_mixer),
  15596. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15597. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15598. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15599. msm_routing_put_audio_mixer),
  15600. };
  15601. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15602. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15604. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15605. msm_routing_put_audio_mixer),
  15606. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15608. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15609. msm_routing_put_audio_mixer),
  15610. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15612. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15613. msm_routing_put_audio_mixer),
  15614. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15616. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15617. msm_routing_put_audio_mixer),
  15618. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15619. MSM_BACKEND_DAI_INT_FM_TX,
  15620. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15621. msm_routing_put_audio_mixer),
  15622. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15623. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15624. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15625. msm_routing_put_audio_mixer),
  15626. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15627. MSM_BACKEND_DAI_AFE_PCM_TX,
  15628. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15629. msm_routing_put_audio_mixer),
  15630. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15631. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15632. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15633. msm_routing_put_audio_mixer),
  15634. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15636. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15637. msm_routing_put_audio_mixer),
  15638. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15639. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15640. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15641. msm_routing_put_audio_mixer),
  15642. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15644. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15645. msm_routing_put_audio_mixer),
  15646. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15648. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15649. msm_routing_put_audio_mixer),
  15650. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15652. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15653. msm_routing_put_audio_mixer),
  15654. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15656. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15657. msm_routing_put_audio_mixer),
  15658. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15660. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15661. msm_routing_put_audio_mixer),
  15662. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15663. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15664. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15665. msm_routing_put_audio_mixer),
  15666. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15668. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15669. msm_routing_put_audio_mixer),
  15670. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15671. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15672. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15673. msm_routing_put_audio_mixer),
  15674. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15675. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15676. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15677. msm_routing_get_audio_mixer,
  15678. msm_routing_put_audio_mixer),
  15679. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15680. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15681. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15682. msm_routing_get_audio_mixer,
  15683. msm_routing_put_audio_mixer),
  15684. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15686. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15687. msm_routing_get_audio_mixer,
  15688. msm_routing_put_audio_mixer),
  15689. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15691. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15692. msm_routing_get_audio_mixer,
  15693. msm_routing_put_audio_mixer),
  15694. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15695. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15696. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15697. msm_routing_get_audio_mixer,
  15698. msm_routing_put_audio_mixer),
  15699. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15701. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15702. msm_routing_get_audio_mixer,
  15703. msm_routing_put_audio_mixer),
  15704. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15705. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15706. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15707. msm_routing_put_audio_mixer),
  15708. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15709. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15710. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15711. msm_routing_put_audio_mixer),
  15712. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15713. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15714. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15715. msm_routing_put_audio_mixer),
  15716. };
  15717. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15718. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15720. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15721. msm_routing_put_audio_mixer),
  15722. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15724. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15725. msm_routing_put_audio_mixer),
  15726. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15728. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15729. msm_routing_put_audio_mixer),
  15730. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15731. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15732. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15733. msm_routing_put_audio_mixer),
  15734. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15735. MSM_BACKEND_DAI_INT_FM_TX,
  15736. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15737. msm_routing_put_audio_mixer),
  15738. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15739. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15740. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15741. msm_routing_put_audio_mixer),
  15742. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15743. MSM_BACKEND_DAI_AFE_PCM_TX,
  15744. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15745. msm_routing_put_audio_mixer),
  15746. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15748. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15749. msm_routing_put_audio_mixer),
  15750. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15751. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15752. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15753. msm_routing_put_audio_mixer),
  15754. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15755. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15756. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15757. msm_routing_put_audio_mixer),
  15758. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15759. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15760. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15761. msm_routing_put_audio_mixer),
  15762. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15763. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15764. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15765. msm_routing_put_audio_mixer),
  15766. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15767. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15768. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15769. msm_routing_put_audio_mixer),
  15770. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15771. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15772. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15773. msm_routing_put_audio_mixer),
  15774. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15775. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15776. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15777. msm_routing_put_audio_mixer),
  15778. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15779. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15780. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15781. msm_routing_put_audio_mixer),
  15782. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15783. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15784. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15785. msm_routing_put_audio_mixer),
  15786. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15788. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15789. msm_routing_get_audio_mixer,
  15790. msm_routing_put_audio_mixer),
  15791. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15792. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15793. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15794. msm_routing_get_audio_mixer,
  15795. msm_routing_put_audio_mixer),
  15796. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15797. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15798. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15799. msm_routing_get_audio_mixer,
  15800. msm_routing_put_audio_mixer),
  15801. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15803. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15804. msm_routing_get_audio_mixer,
  15805. msm_routing_put_audio_mixer),
  15806. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15807. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15808. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15809. msm_routing_get_audio_mixer,
  15810. msm_routing_put_audio_mixer),
  15811. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15813. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15814. msm_routing_get_audio_mixer,
  15815. msm_routing_put_audio_mixer),
  15816. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15817. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15818. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15819. msm_routing_put_audio_mixer),
  15820. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15822. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15823. msm_routing_put_audio_mixer),
  15824. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15826. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15827. msm_routing_put_audio_mixer),
  15828. };
  15829. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15830. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_PRI_I2S_RX,
  15832. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15833. msm_routing_put_voice_mixer),
  15834. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_PRI_I2S_RX,
  15836. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15837. msm_routing_put_voice_mixer),
  15838. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_PRI_I2S_RX,
  15840. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15841. msm_routing_put_voice_mixer),
  15842. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15843. MSM_BACKEND_DAI_PRI_I2S_RX,
  15844. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15845. msm_routing_put_voice_mixer),
  15846. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15847. MSM_BACKEND_DAI_PRI_I2S_RX,
  15848. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15849. msm_routing_put_voice_mixer),
  15850. };
  15851. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15852. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15853. MSM_BACKEND_DAI_SEC_I2S_RX,
  15854. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15855. msm_routing_put_voice_mixer),
  15856. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15857. MSM_BACKEND_DAI_SEC_I2S_RX,
  15858. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15859. msm_routing_put_voice_mixer),
  15860. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15861. MSM_BACKEND_DAI_SEC_I2S_RX,
  15862. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15863. msm_routing_put_voice_mixer),
  15864. };
  15865. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15866. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15867. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15868. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15869. msm_routing_put_voice_mixer),
  15870. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15871. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15872. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15873. msm_routing_put_voice_mixer),
  15874. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15876. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15877. msm_routing_put_voice_mixer),
  15878. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15880. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15881. msm_routing_put_voice_mixer),
  15882. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15883. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15884. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15885. msm_routing_put_voice_mixer),
  15886. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15887. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15888. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15889. msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15892. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15893. msm_routing_put_voice_mixer),
  15894. };
  15895. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15896. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15898. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15899. msm_routing_put_voice_mixer),
  15900. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15901. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15902. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15903. msm_routing_put_voice_mixer),
  15904. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15905. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15906. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15907. msm_routing_put_voice_mixer),
  15908. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15910. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15911. msm_routing_put_voice_mixer),
  15912. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15913. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15914. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15915. msm_routing_put_voice_mixer),
  15916. };
  15917. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15918. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15919. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15920. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15921. msm_routing_put_voice_mixer),
  15922. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15923. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15924. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15925. msm_routing_put_voice_mixer),
  15926. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15927. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15928. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15929. msm_routing_put_voice_mixer),
  15930. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15931. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15932. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15933. msm_routing_put_voice_mixer),
  15934. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15935. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15936. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15937. msm_routing_put_voice_mixer),
  15938. };
  15939. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15940. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_USB_RX,
  15942. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15943. msm_routing_put_voice_mixer),
  15944. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15945. MSM_BACKEND_DAI_USB_RX,
  15946. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15947. msm_routing_put_voice_mixer),
  15948. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_USB_RX,
  15950. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15951. msm_routing_put_voice_mixer),
  15952. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15953. MSM_BACKEND_DAI_USB_RX,
  15954. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15955. msm_routing_put_voice_mixer),
  15956. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15957. MSM_BACKEND_DAI_USB_RX,
  15958. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15959. msm_routing_put_voice_mixer),
  15960. };
  15961. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15962. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15963. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15964. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15965. msm_routing_put_voice_mixer),
  15966. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15968. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15969. msm_routing_put_voice_mixer),
  15970. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15972. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15973. msm_routing_put_voice_mixer),
  15974. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15975. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15976. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15977. msm_routing_put_voice_mixer),
  15978. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15980. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15981. msm_routing_put_voice_mixer),
  15982. };
  15983. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15984. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15986. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15987. msm_routing_put_voice_mixer),
  15988. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15989. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15990. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15991. msm_routing_put_voice_mixer),
  15992. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15993. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15994. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15995. msm_routing_put_voice_mixer),
  15996. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15997. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15998. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15999. msm_routing_put_voice_mixer),
  16000. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16001. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  16002. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16003. msm_routing_put_voice_mixer),
  16004. };
  16005. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  16006. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16007. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16008. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16009. msm_routing_put_voice_mixer),
  16010. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16012. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16013. msm_routing_put_voice_mixer),
  16014. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16016. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16017. msm_routing_put_voice_mixer),
  16018. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16019. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16020. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16021. msm_routing_put_voice_mixer),
  16022. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16024. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16025. msm_routing_put_voice_mixer),
  16026. };
  16027. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  16028. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16029. MSM_BACKEND_DAI_MI2S_RX,
  16030. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16031. msm_routing_put_voice_mixer),
  16032. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16033. MSM_BACKEND_DAI_MI2S_RX,
  16034. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16035. msm_routing_put_voice_mixer),
  16036. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16037. MSM_BACKEND_DAI_MI2S_RX,
  16038. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16039. msm_routing_put_voice_mixer),
  16040. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16041. MSM_BACKEND_DAI_MI2S_RX,
  16042. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16043. msm_routing_put_voice_mixer),
  16044. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16045. MSM_BACKEND_DAI_MI2S_RX,
  16046. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16047. msm_routing_put_voice_mixer),
  16048. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16049. MSM_BACKEND_DAI_MI2S_RX,
  16050. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16051. msm_routing_put_voice_mixer),
  16052. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_MI2S_RX,
  16054. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16055. msm_routing_put_voice_mixer),
  16056. };
  16057. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  16058. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16060. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16061. msm_routing_put_voice_mixer),
  16062. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16064. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16065. msm_routing_put_voice_mixer),
  16066. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16068. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16069. msm_routing_put_voice_mixer),
  16070. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16072. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16073. msm_routing_put_voice_mixer),
  16074. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16075. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16076. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16077. msm_routing_put_voice_mixer),
  16078. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16080. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16081. msm_routing_put_voice_mixer),
  16082. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16084. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16085. msm_routing_put_voice_mixer),
  16086. };
  16087. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  16088. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16089. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16090. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16091. msm_routing_put_voice_mixer),
  16092. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16094. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16095. msm_routing_put_voice_mixer),
  16096. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16097. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16098. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16099. msm_routing_put_voice_mixer),
  16100. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16102. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16103. msm_routing_put_voice_mixer),
  16104. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16105. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16106. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16107. msm_routing_put_voice_mixer),
  16108. };
  16109. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  16110. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16111. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16112. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16113. msm_routing_put_voice_mixer),
  16114. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16115. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16116. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16117. msm_routing_put_voice_mixer),
  16118. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16120. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16121. msm_routing_put_voice_mixer),
  16122. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16124. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16125. msm_routing_put_voice_mixer),
  16126. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16127. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16128. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16129. msm_routing_put_voice_mixer),
  16130. };
  16131. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  16132. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16134. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16135. msm_routing_put_voice_mixer),
  16136. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16137. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16138. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16139. msm_routing_put_voice_mixer),
  16140. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16141. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16142. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16143. msm_routing_put_voice_mixer),
  16144. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16145. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16146. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16147. msm_routing_put_voice_mixer),
  16148. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16149. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16150. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16151. msm_routing_put_voice_mixer),
  16152. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16153. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16154. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16155. msm_routing_put_voice_mixer),
  16156. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16157. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16158. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16159. msm_routing_put_voice_mixer),
  16160. };
  16161. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  16162. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16164. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16165. msm_routing_put_voice_mixer),
  16166. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16168. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16169. msm_routing_put_voice_mixer),
  16170. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16172. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16173. msm_routing_put_voice_mixer),
  16174. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16176. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16177. msm_routing_put_voice_mixer),
  16178. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16179. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16180. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16181. msm_routing_put_voice_mixer),
  16182. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16184. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16185. msm_routing_put_voice_mixer),
  16186. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16188. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16189. msm_routing_put_voice_mixer),
  16190. };
  16191. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  16192. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16193. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16194. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16195. msm_routing_put_voice_mixer),
  16196. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16197. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16198. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16199. msm_routing_put_voice_stub_mixer),
  16200. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16201. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16202. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16203. msm_routing_put_voice_stub_mixer),
  16204. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16206. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16207. msm_routing_put_voice_mixer),
  16208. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16209. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16210. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16211. msm_routing_put_voice_mixer),
  16212. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16213. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16214. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16215. msm_routing_put_voice_mixer),
  16216. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16217. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16218. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16219. msm_routing_put_voice_mixer),
  16220. };
  16221. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  16222. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16224. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16225. msm_routing_put_voice_mixer),
  16226. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16228. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16229. msm_routing_put_voice_mixer),
  16230. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16232. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16233. msm_routing_put_voice_mixer),
  16234. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16236. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16237. msm_routing_put_voice_mixer),
  16238. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16240. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16241. msm_routing_put_voice_mixer),
  16242. };
  16243. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  16244. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_AFE_PCM_RX,
  16246. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16247. msm_routing_put_voice_mixer),
  16248. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_AFE_PCM_RX,
  16250. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16251. msm_routing_put_voice_mixer),
  16252. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_AFE_PCM_RX,
  16254. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16255. msm_routing_put_voice_mixer),
  16256. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_AFE_PCM_RX,
  16258. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16259. msm_routing_put_voice_mixer),
  16260. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_AFE_PCM_RX,
  16262. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16263. msm_routing_put_voice_mixer),
  16264. };
  16265. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  16266. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16267. MSM_BACKEND_DAI_AUXPCM_RX,
  16268. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16269. msm_routing_put_voice_mixer),
  16270. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16271. MSM_BACKEND_DAI_AUXPCM_RX,
  16272. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16273. msm_routing_put_voice_mixer),
  16274. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16275. MSM_BACKEND_DAI_AUXPCM_RX,
  16276. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16277. msm_routing_put_voice_mixer),
  16278. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16279. MSM_BACKEND_DAI_AUXPCM_RX,
  16280. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16281. msm_routing_put_voice_mixer),
  16282. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16283. MSM_BACKEND_DAI_AUXPCM_RX,
  16284. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16285. msm_routing_put_voice_mixer),
  16286. };
  16287. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  16288. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16290. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16291. msm_routing_put_voice_mixer),
  16292. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16294. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16295. msm_routing_put_voice_mixer),
  16296. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16298. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16299. msm_routing_put_voice_mixer),
  16300. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16302. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16303. msm_routing_put_voice_mixer),
  16304. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16306. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16307. msm_routing_put_voice_mixer),
  16308. };
  16309. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  16310. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16311. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16312. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16313. msm_routing_put_voice_mixer),
  16314. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16315. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16316. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16317. msm_routing_put_voice_mixer),
  16318. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16319. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16320. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16321. msm_routing_put_voice_mixer),
  16322. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16323. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16324. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16325. msm_routing_put_voice_mixer),
  16326. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16328. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16329. msm_routing_put_voice_mixer),
  16330. };
  16331. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  16332. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16333. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16334. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16335. msm_routing_put_voice_mixer),
  16336. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16338. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16339. msm_routing_put_voice_mixer),
  16340. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16342. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16343. msm_routing_put_voice_mixer),
  16344. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16346. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16347. msm_routing_put_voice_mixer),
  16348. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16349. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16350. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16351. msm_routing_put_voice_mixer),
  16352. };
  16353. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  16354. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16355. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16356. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16357. msm_routing_put_voice_mixer),
  16358. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16360. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16361. msm_routing_put_voice_mixer),
  16362. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16363. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16364. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16365. msm_routing_put_voice_mixer),
  16366. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16368. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16369. msm_routing_put_voice_mixer),
  16370. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16371. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16372. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16373. msm_routing_put_voice_mixer),
  16374. };
  16375. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16376. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16377. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16378. msm_routing_put_voice_mixer),
  16379. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16380. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16381. msm_routing_put_voice_mixer),
  16382. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16383. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16384. msm_routing_put_voice_mixer),
  16385. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16386. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16387. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16388. msm_routing_put_voice_mixer),
  16389. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16390. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16391. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16392. msm_routing_put_voice_mixer),
  16393. };
  16394. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16395. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16396. MSM_BACKEND_DAI_HDMI_RX,
  16397. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16398. msm_routing_put_voice_mixer),
  16399. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16400. MSM_BACKEND_DAI_HDMI_RX,
  16401. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16402. msm_routing_put_voice_mixer),
  16403. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_HDMI_RX,
  16405. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16406. msm_routing_put_voice_mixer),
  16407. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16408. MSM_BACKEND_DAI_HDMI_RX,
  16409. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16410. msm_routing_put_voice_mixer),
  16411. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16412. MSM_BACKEND_DAI_HDMI_RX,
  16413. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16414. msm_routing_put_voice_mixer),
  16415. };
  16416. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16417. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16418. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16419. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16420. msm_routing_put_voice_mixer),
  16421. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16422. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16423. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16424. msm_routing_put_voice_mixer),
  16425. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16426. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16427. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16428. msm_routing_put_voice_mixer),
  16429. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16430. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16431. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16432. msm_routing_put_voice_mixer),
  16433. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16434. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16435. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16436. msm_routing_put_voice_mixer),
  16437. };
  16438. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16439. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16440. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16441. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16442. msm_routing_put_voice_mixer),
  16443. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16444. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16445. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16446. msm_routing_put_voice_mixer),
  16447. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16448. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16449. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16450. msm_routing_put_voice_mixer),
  16451. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16452. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16453. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16454. msm_routing_put_voice_mixer),
  16455. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16456. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16457. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16458. msm_routing_put_voice_mixer),
  16459. };
  16460. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16461. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16462. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16463. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16464. msm_routing_put_voice_mixer),
  16465. };
  16466. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16467. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16468. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16469. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16470. msm_routing_put_voice_mixer),
  16471. };
  16472. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16473. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16474. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16475. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16476. msm_routing_put_voice_mixer),
  16477. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16478. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16479. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16480. msm_routing_put_voice_mixer),
  16481. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16482. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16483. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16484. msm_routing_put_voice_mixer),
  16485. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16487. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16488. msm_routing_put_voice_mixer),
  16489. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16490. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16491. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16492. msm_routing_put_voice_mixer),
  16493. };
  16494. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16495. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16497. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16498. msm_routing_put_voice_mixer),
  16499. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16500. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16501. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16502. msm_routing_put_voice_mixer),
  16503. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16504. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16505. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16506. msm_routing_put_voice_mixer),
  16507. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16508. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16509. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16510. msm_routing_put_voice_mixer),
  16511. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16512. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16513. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16514. msm_routing_put_voice_mixer),
  16515. };
  16516. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16517. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16519. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16520. msm_routing_put_voice_mixer),
  16521. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16523. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16524. msm_routing_put_voice_mixer),
  16525. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16527. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16528. msm_routing_put_voice_mixer),
  16529. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16531. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16532. msm_routing_put_voice_mixer),
  16533. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16535. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16536. msm_routing_put_voice_mixer),
  16537. };
  16538. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16539. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16541. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16542. msm_routing_put_voice_mixer),
  16543. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16545. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16546. msm_routing_put_voice_mixer),
  16547. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16549. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16550. msm_routing_put_voice_mixer),
  16551. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16553. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16554. msm_routing_put_voice_mixer),
  16555. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16557. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16558. msm_routing_put_voice_mixer),
  16559. };
  16560. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16561. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16563. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16564. msm_routing_put_voice_mixer),
  16565. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16567. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16568. msm_routing_put_voice_mixer),
  16569. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16571. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16572. msm_routing_put_voice_mixer),
  16573. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16575. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16576. msm_routing_put_voice_mixer),
  16577. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16579. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16580. msm_routing_put_voice_mixer),
  16581. };
  16582. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16583. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16585. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16586. msm_routing_put_voice_mixer),
  16587. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16589. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16590. msm_routing_put_voice_mixer),
  16591. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16593. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16594. msm_routing_put_voice_mixer),
  16595. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16597. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16598. msm_routing_put_voice_mixer),
  16599. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16601. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16602. msm_routing_put_voice_mixer),
  16603. };
  16604. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16605. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16607. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16608. msm_routing_put_voice_mixer),
  16609. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16611. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16612. msm_routing_put_voice_mixer),
  16613. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16615. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16616. msm_routing_put_voice_mixer),
  16617. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16619. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16620. msm_routing_put_voice_mixer),
  16621. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16623. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16624. msm_routing_put_voice_mixer),
  16625. };
  16626. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16627. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16629. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16630. msm_routing_put_voice_mixer),
  16631. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16633. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16634. msm_routing_put_voice_mixer),
  16635. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16637. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16638. msm_routing_put_voice_mixer),
  16639. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16641. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16642. msm_routing_put_voice_mixer),
  16643. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16645. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16646. msm_routing_put_voice_mixer),
  16647. };
  16648. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16649. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16651. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16652. msm_routing_put_voice_mixer),
  16653. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16655. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16656. msm_routing_put_voice_mixer),
  16657. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16659. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16660. msm_routing_put_voice_mixer),
  16661. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16662. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16663. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16664. msm_routing_put_voice_mixer),
  16665. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16666. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16667. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16668. msm_routing_put_voice_mixer),
  16669. };
  16670. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16671. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16673. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16674. msm_routing_put_voice_mixer),
  16675. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16677. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16678. msm_routing_put_voice_mixer),
  16679. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16681. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16682. msm_routing_put_voice_mixer),
  16683. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16685. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16686. msm_routing_put_voice_mixer),
  16687. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16689. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16690. msm_routing_put_voice_mixer),
  16691. };
  16692. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16693. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16694. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16695. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16696. msm_routing_put_voice_mixer),
  16697. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16699. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16700. msm_routing_put_voice_stub_mixer),
  16701. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16702. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16703. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16704. msm_routing_put_voice_stub_mixer),
  16705. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16706. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16707. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16708. msm_routing_put_voice_mixer),
  16709. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16711. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16712. msm_routing_put_voice_mixer),
  16713. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16714. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16715. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16716. msm_routing_put_voice_mixer),
  16717. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16719. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16720. msm_routing_put_voice_mixer),
  16721. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16723. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16724. msm_routing_put_voice_mixer),
  16725. };
  16726. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16727. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16728. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16729. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16730. msm_routing_put_voice_mixer),
  16731. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16732. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16733. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16734. msm_routing_put_voice_stub_mixer),
  16735. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16736. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16737. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16738. msm_routing_put_voice_stub_mixer),
  16739. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16741. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16742. msm_routing_put_voice_mixer),
  16743. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16744. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16745. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16746. msm_routing_put_voice_mixer),
  16747. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16748. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16749. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16750. msm_routing_put_voice_mixer),
  16751. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16752. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16753. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16754. msm_routing_put_voice_mixer),
  16755. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16756. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16757. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16758. msm_routing_put_voice_mixer),
  16759. };
  16760. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16761. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16763. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16764. msm_routing_put_voice_mixer),
  16765. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16766. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16767. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16768. msm_routing_put_voice_stub_mixer),
  16769. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16771. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16772. msm_routing_put_voice_stub_mixer),
  16773. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16774. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16775. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16776. msm_routing_put_voice_mixer),
  16777. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16778. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16779. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16780. msm_routing_put_voice_mixer),
  16781. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16783. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16784. msm_routing_put_voice_mixer),
  16785. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16786. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16787. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16788. msm_routing_put_voice_mixer),
  16789. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16790. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16791. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16792. msm_routing_put_voice_mixer),
  16793. };
  16794. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16795. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16796. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16797. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16798. msm_routing_put_voice_mixer),
  16799. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16801. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16802. msm_routing_put_voice_stub_mixer),
  16803. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16804. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16805. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16806. msm_routing_put_voice_stub_mixer),
  16807. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16809. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16810. msm_routing_put_voice_mixer),
  16811. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16813. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16814. msm_routing_put_voice_mixer),
  16815. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16816. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16817. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16818. msm_routing_put_voice_mixer),
  16819. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16820. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16821. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16822. msm_routing_put_voice_mixer),
  16823. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16824. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16825. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16826. msm_routing_put_voice_mixer),
  16827. };
  16828. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16829. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_EXTPROC_RX,
  16831. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16832. msm_routing_put_voice_mixer),
  16833. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16834. MSM_BACKEND_DAI_EXTPROC_RX,
  16835. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16836. msm_routing_put_voice_mixer),
  16837. };
  16838. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16839. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16841. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16842. msm_routing_put_voice_mixer),
  16843. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16844. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16845. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16846. msm_routing_put_voice_mixer),
  16847. };
  16848. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16849. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16850. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16851. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16852. msm_routing_put_voice_mixer),
  16853. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16854. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16855. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16856. msm_routing_put_voice_mixer),
  16857. };
  16858. static const struct snd_kcontrol_new proxy_rx_voice_mixer_controls[] = {
  16859. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16860. MSM_BACKEND_DAI_PROXY_RX,
  16861. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16862. msm_routing_put_voice_mixer),
  16863. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_PROXY_RX,
  16865. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16866. msm_routing_put_voice_mixer),
  16867. };
  16868. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16869. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16870. MSM_BACKEND_DAI_PRI_I2S_TX,
  16871. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16872. msm_routing_put_voice_mixer),
  16873. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16874. MSM_BACKEND_DAI_MI2S_TX,
  16875. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16876. msm_routing_put_voice_mixer),
  16877. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16878. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16879. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16880. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16881. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16882. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16883. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16884. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16885. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16886. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16887. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16888. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16889. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16891. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16892. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16893. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16894. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16895. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16896. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16897. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16898. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16899. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16900. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16901. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16902. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16903. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16904. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16905. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16906. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16907. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16909. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16910. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16911. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16912. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16913. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16915. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16916. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16917. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16918. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16919. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16920. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16921. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16922. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16923. MSM_BACKEND_DAI_USB_TX,
  16924. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16925. msm_routing_put_voice_mixer),
  16926. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16927. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16928. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16929. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16931. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16932. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16933. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16934. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16935. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16936. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16937. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16938. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16939. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16940. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16941. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16942. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16943. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16944. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16945. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16946. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16947. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16948. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16949. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16950. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16951. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16952. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16953. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16955. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16956. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16957. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16958. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16959. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16960. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16961. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16962. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16963. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16964. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16965. SOC_DOUBLE_EXT("PROXY_TX_MMode1", SND_SOC_NOPM,
  16966. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16967. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16968. };
  16969. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16970. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16971. MSM_BACKEND_DAI_PRI_I2S_TX,
  16972. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16973. msm_routing_put_voice_mixer),
  16974. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16975. MSM_BACKEND_DAI_MI2S_TX,
  16976. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16977. msm_routing_put_voice_mixer),
  16978. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16979. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16980. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16981. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16982. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16983. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16984. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16985. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16986. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16987. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16988. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16989. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16990. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16991. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16992. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16993. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16995. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16996. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16997. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16998. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16999. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  17000. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17001. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17002. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  17003. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17004. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17005. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  17006. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  17007. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17008. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  17010. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17011. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17013. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17014. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  17015. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17016. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17017. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  17018. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17019. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17020. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17022. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17023. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17025. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17026. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  17027. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  17028. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17029. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  17030. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  17031. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17032. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  17033. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  17034. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17035. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  17037. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17038. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  17039. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  17040. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  17042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  17043. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17044. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  17046. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  17048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  17049. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17050. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  17051. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  17052. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17053. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  17054. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17055. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17056. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  17057. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17058. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17059. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  17061. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17062. SOC_DOUBLE_EXT("PROXY_TX_MMode2", SND_SOC_NOPM,
  17063. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17064. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17065. };
  17066. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  17067. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  17068. MSM_BACKEND_DAI_PRI_I2S_TX,
  17069. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17070. msm_routing_put_voice_mixer),
  17071. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  17072. MSM_BACKEND_DAI_MI2S_TX,
  17073. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17074. msm_routing_put_voice_mixer),
  17075. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17077. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17078. msm_routing_put_voice_mixer),
  17079. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17081. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17082. msm_routing_put_voice_mixer),
  17083. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_AFE_PCM_TX,
  17085. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17086. msm_routing_put_voice_mixer),
  17087. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_AUXPCM_TX,
  17089. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17090. msm_routing_put_voice_mixer),
  17091. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17092. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17093. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17094. msm_routing_put_voice_mixer),
  17095. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17097. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17098. msm_routing_put_voice_mixer),
  17099. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17100. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17101. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17102. msm_routing_put_voice_mixer),
  17103. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17104. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17105. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17106. msm_routing_put_voice_mixer),
  17107. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17109. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17110. msm_routing_put_voice_mixer),
  17111. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  17112. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17113. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17114. msm_routing_put_voice_mixer),
  17115. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  17116. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  17117. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17118. msm_routing_put_voice_mixer),
  17119. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17121. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17122. msm_routing_put_voice_mixer),
  17123. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  17124. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17125. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17126. msm_routing_put_voice_mixer),
  17127. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  17128. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17129. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17130. msm_routing_put_voice_mixer),
  17131. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  17132. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17133. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17134. msm_routing_put_voice_mixer),
  17135. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  17136. MSM_BACKEND_DAI_USB_TX,
  17137. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17138. msm_routing_put_voice_mixer),
  17139. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  17140. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  17141. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17142. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  17143. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  17144. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17145. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  17147. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17148. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  17149. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  17150. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17151. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  17152. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  17153. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17154. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  17155. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  17156. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17157. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  17158. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  17159. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17160. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  17162. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17163. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  17164. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  17165. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17166. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  17167. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17168. msm_routing_put_voice_mixer),
  17169. };
  17170. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  17171. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17172. MSM_BACKEND_DAI_EXTPROC_TX,
  17173. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17174. msm_routing_put_voice_stub_mixer),
  17175. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17176. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17177. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17178. msm_routing_put_voice_stub_mixer),
  17179. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17180. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17181. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17182. msm_routing_put_voice_stub_mixer),
  17183. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17185. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17186. msm_routing_put_voice_stub_mixer),
  17187. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_MI2S_TX,
  17189. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17190. msm_routing_put_voice_stub_mixer),
  17191. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17192. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17193. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17194. msm_routing_put_voice_stub_mixer),
  17195. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17197. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17198. msm_routing_put_voice_stub_mixer),
  17199. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17200. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17201. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17202. msm_routing_put_voice_stub_mixer),
  17203. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17204. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17205. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17206. msm_routing_put_voice_stub_mixer),
  17207. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_AUXPCM_TX,
  17209. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17210. msm_routing_put_voice_stub_mixer),
  17211. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17212. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17213. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17214. msm_routing_put_voice_stub_mixer),
  17215. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17216. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17217. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17218. msm_routing_put_voice_stub_mixer),
  17219. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17220. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17221. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17222. msm_routing_put_voice_stub_mixer),
  17223. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17224. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17225. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17226. msm_routing_put_voice_stub_mixer),
  17227. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17228. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17229. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17230. msm_routing_put_voice_stub_mixer),
  17231. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17232. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17233. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17234. msm_routing_put_voice_stub_mixer),
  17235. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17236. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17237. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17238. msm_routing_put_voice_stub_mixer),
  17239. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17240. MSM_BACKEND_DAI_AFE_PCM_TX,
  17241. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17242. msm_routing_put_voice_stub_mixer),
  17243. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17244. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17245. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17246. msm_routing_put_voice_stub_mixer),
  17247. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17249. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17250. msm_routing_put_voice_stub_mixer),
  17251. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17252. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17253. 1, 0, msm_routing_get_voice_stub_mixer,
  17254. msm_routing_put_voice_stub_mixer),
  17255. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17256. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17257. 1, 0, msm_routing_get_voice_stub_mixer,
  17258. msm_routing_put_voice_stub_mixer),
  17259. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17260. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17261. 1, 0, msm_routing_get_voice_stub_mixer,
  17262. msm_routing_put_voice_stub_mixer),
  17263. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17265. 1, 0, msm_routing_get_voice_stub_mixer,
  17266. msm_routing_put_voice_stub_mixer),
  17267. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17268. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17269. 1, 0, msm_routing_get_voice_stub_mixer,
  17270. msm_routing_put_voice_stub_mixer),
  17271. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17272. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17273. 1, 0, msm_routing_get_voice_stub_mixer,
  17274. msm_routing_put_voice_stub_mixer),
  17275. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17276. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  17277. 1, 0, msm_routing_get_voice_stub_mixer,
  17278. msm_routing_put_voice_stub_mixer),
  17279. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17280. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  17281. 1, 0, msm_routing_get_voice_stub_mixer,
  17282. msm_routing_put_voice_stub_mixer),
  17283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  17285. 1, 0, msm_routing_get_voice_stub_mixer,
  17286. msm_routing_put_voice_stub_mixer),
  17287. };
  17288. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  17289. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_EXTPROC_TX,
  17291. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17292. msm_routing_put_voice_stub_mixer),
  17293. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17295. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17296. msm_routing_put_voice_stub_mixer),
  17297. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17298. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17299. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17300. msm_routing_put_voice_stub_mixer),
  17301. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17302. MSM_BACKEND_DAI_AUXPCM_TX,
  17303. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17304. msm_routing_put_voice_stub_mixer),
  17305. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17306. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17307. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17308. msm_routing_put_voice_stub_mixer),
  17309. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17311. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17312. msm_routing_put_voice_stub_mixer),
  17313. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17315. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17316. msm_routing_put_voice_stub_mixer),
  17317. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17318. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17319. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17320. msm_routing_put_voice_stub_mixer),
  17321. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17322. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17323. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17324. msm_routing_put_voice_stub_mixer),
  17325. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17326. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17327. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17328. msm_routing_put_voice_stub_mixer),
  17329. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17331. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17332. msm_routing_put_voice_stub_mixer),
  17333. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17334. MSM_BACKEND_DAI_AFE_PCM_TX,
  17335. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17336. msm_routing_put_voice_stub_mixer),
  17337. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17338. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17339. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17340. msm_routing_put_voice_stub_mixer),
  17341. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17342. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17343. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17344. msm_routing_put_voice_stub_mixer),
  17345. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17346. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17347. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17348. msm_routing_put_voice_stub_mixer),
  17349. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17350. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17351. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17352. msm_routing_put_voice_stub_mixer),
  17353. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17354. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17355. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17356. msm_routing_put_voice_stub_mixer),
  17357. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17358. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17359. 1, 0, msm_routing_get_voice_stub_mixer,
  17360. msm_routing_put_voice_stub_mixer),
  17361. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17362. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17363. 1, 0, msm_routing_get_voice_stub_mixer,
  17364. msm_routing_put_voice_stub_mixer),
  17365. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17366. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17367. 1, 0, msm_routing_get_voice_stub_mixer,
  17368. msm_routing_put_voice_stub_mixer),
  17369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17371. 1, 0, msm_routing_get_voice_stub_mixer,
  17372. msm_routing_put_voice_stub_mixer),
  17373. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17374. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17375. 1, 0, msm_routing_get_voice_stub_mixer,
  17376. msm_routing_put_voice_stub_mixer),
  17377. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17378. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17379. 1, 0, msm_routing_get_voice_stub_mixer,
  17380. msm_routing_put_voice_stub_mixer),
  17381. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17382. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  17383. 1, 0, msm_routing_get_voice_stub_mixer,
  17384. msm_routing_put_voice_stub_mixer),
  17385. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  17387. 1, 0, msm_routing_get_voice_stub_mixer,
  17388. msm_routing_put_voice_stub_mixer),
  17389. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17390. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17391. 1, 0, msm_routing_get_voice_stub_mixer,
  17392. msm_routing_put_voice_stub_mixer),
  17393. };
  17394. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17395. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17396. MSM_BACKEND_DAI_EXTPROC_TX,
  17397. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17398. msm_routing_put_voice_stub_mixer),
  17399. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17400. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17401. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17402. msm_routing_put_voice_stub_mixer),
  17403. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17404. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17405. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17406. msm_routing_put_voice_stub_mixer),
  17407. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17408. MSM_BACKEND_DAI_AUXPCM_TX,
  17409. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17410. msm_routing_put_voice_stub_mixer),
  17411. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17412. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17413. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17414. msm_routing_put_voice_stub_mixer),
  17415. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17417. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17418. msm_routing_put_voice_stub_mixer),
  17419. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17420. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17421. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17422. msm_routing_put_voice_stub_mixer),
  17423. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17424. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17425. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17426. msm_routing_put_voice_stub_mixer),
  17427. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17428. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17429. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17430. msm_routing_put_voice_stub_mixer),
  17431. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17432. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17433. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17434. msm_routing_put_voice_stub_mixer),
  17435. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17437. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17438. msm_routing_put_voice_stub_mixer),
  17439. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17440. MSM_BACKEND_DAI_AFE_PCM_TX,
  17441. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17442. msm_routing_put_voice_stub_mixer),
  17443. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17445. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17446. msm_routing_put_voice_stub_mixer),
  17447. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17448. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17449. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17450. msm_routing_put_voice_stub_mixer),
  17451. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17452. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17453. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17454. msm_routing_put_voice_stub_mixer),
  17455. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17456. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17457. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17458. msm_routing_put_voice_stub_mixer),
  17459. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17460. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17461. 1, 0, msm_routing_get_voice_stub_mixer,
  17462. msm_routing_put_voice_stub_mixer),
  17463. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17464. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17465. 1, 0, msm_routing_get_voice_stub_mixer,
  17466. msm_routing_put_voice_stub_mixer),
  17467. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17468. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17469. 1, 0, msm_routing_get_voice_stub_mixer,
  17470. msm_routing_put_voice_stub_mixer),
  17471. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17472. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17473. 1, 0, msm_routing_get_voice_stub_mixer,
  17474. msm_routing_put_voice_stub_mixer),
  17475. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17476. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17477. 1, 0, msm_routing_get_voice_stub_mixer,
  17478. msm_routing_put_voice_stub_mixer),
  17479. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17480. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17481. 1, 0, msm_routing_get_voice_stub_mixer,
  17482. msm_routing_put_voice_stub_mixer),
  17483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17485. 1, 0, msm_routing_get_voice_stub_mixer,
  17486. msm_routing_put_voice_stub_mixer),
  17487. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17488. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17489. 1, 0, msm_routing_get_voice_stub_mixer,
  17490. msm_routing_put_voice_stub_mixer),
  17491. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17492. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17493. 1, 0, msm_routing_get_voice_stub_mixer,
  17494. msm_routing_put_voice_stub_mixer),
  17495. };
  17496. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17497. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_PRI_I2S_TX,
  17499. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17500. msm_routing_put_voice_mixer),
  17501. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17502. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17503. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17504. msm_routing_put_voice_mixer),
  17505. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17506. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17507. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17508. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17509. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17510. MSM_BACKEND_DAI_AFE_PCM_TX,
  17511. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17512. msm_routing_put_voice_mixer),
  17513. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17514. MSM_BACKEND_DAI_AUXPCM_TX,
  17515. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17516. msm_routing_put_voice_mixer),
  17517. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17519. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17520. msm_routing_put_voice_mixer),
  17521. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17522. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17523. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17524. msm_routing_put_voice_mixer),
  17525. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17526. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17527. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17528. msm_routing_put_voice_mixer),
  17529. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17530. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17531. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17532. msm_routing_put_voice_mixer),
  17533. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17534. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17535. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17536. msm_routing_put_voice_mixer),
  17537. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_MI2S_TX,
  17539. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17540. msm_routing_put_voice_mixer),
  17541. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17542. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17543. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17544. msm_routing_put_voice_mixer),
  17545. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17546. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17547. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17548. msm_routing_put_voice_mixer),
  17549. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17550. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17551. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17552. msm_routing_put_voice_mixer),
  17553. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17554. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17555. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17556. msm_routing_put_voice_mixer),
  17557. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17559. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17560. msm_routing_put_voice_mixer),
  17561. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17562. MSM_BACKEND_DAI_USB_TX,
  17563. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17564. msm_routing_put_voice_mixer),
  17565. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17566. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17567. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17568. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17569. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17570. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17571. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17572. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17573. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17576. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17577. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17578. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17579. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17580. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17581. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17582. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17583. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17585. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17586. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17587. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17588. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17589. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17590. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17591. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17592. };
  17593. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17594. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17595. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17596. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17597. msm_routing_put_port_mixer),
  17598. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17599. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17600. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17601. msm_routing_put_port_mixer),
  17602. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17603. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17604. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17605. msm_routing_put_port_mixer),
  17606. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17607. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17608. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17609. msm_routing_put_port_mixer),
  17610. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17611. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17612. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17613. msm_routing_put_port_mixer),
  17614. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17615. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17616. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17617. msm_routing_put_port_mixer),
  17618. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17619. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17620. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17621. msm_routing_put_port_mixer),
  17622. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17623. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17624. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17625. msm_routing_put_port_mixer),
  17626. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17627. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17628. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17631. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17632. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17633. msm_routing_put_port_mixer),
  17634. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17635. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17636. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17637. msm_routing_put_port_mixer),
  17638. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17639. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17640. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17641. msm_routing_put_port_mixer),
  17642. };
  17643. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17644. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17645. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17646. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17647. msm_routing_put_port_mixer),
  17648. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17649. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17650. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17651. msm_routing_put_port_mixer),
  17652. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17653. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17654. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17655. msm_routing_put_port_mixer),
  17656. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17657. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17658. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17659. msm_routing_put_port_mixer),
  17660. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17661. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17662. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17663. msm_routing_put_port_mixer),
  17664. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17665. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17666. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17667. msm_routing_put_port_mixer),
  17668. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17669. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17670. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17671. msm_routing_put_port_mixer),
  17672. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17673. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17674. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17675. msm_routing_put_port_mixer),
  17676. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17677. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17678. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17679. msm_routing_put_port_mixer),
  17680. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17681. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17682. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17683. msm_routing_put_port_mixer),
  17684. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17685. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17686. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17687. msm_routing_put_port_mixer),
  17688. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17689. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17690. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17691. msm_routing_put_port_mixer),
  17692. };
  17693. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17694. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17697. msm_routing_put_port_mixer),
  17698. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17699. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17700. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17704. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17705. msm_routing_put_port_mixer),
  17706. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17707. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17708. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17709. msm_routing_put_port_mixer),
  17710. };
  17711. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17712. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17714. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17715. msm_routing_put_port_mixer),
  17716. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17718. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17719. msm_routing_put_port_mixer),
  17720. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17722. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17723. msm_routing_put_port_mixer),
  17724. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17726. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17727. msm_routing_put_port_mixer),
  17728. };
  17729. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17730. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17731. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17732. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17733. msm_routing_put_port_mixer),
  17734. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17735. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17736. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17737. msm_routing_put_port_mixer),
  17738. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17739. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17740. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17741. msm_routing_put_port_mixer),
  17742. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17744. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17745. msm_routing_put_port_mixer),
  17746. };
  17747. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17748. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17749. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17750. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17751. msm_routing_put_port_mixer),
  17752. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17753. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17754. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17755. msm_routing_put_port_mixer),
  17756. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17757. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17758. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17759. msm_routing_put_port_mixer),
  17760. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17761. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17762. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17763. msm_routing_put_port_mixer),
  17764. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17765. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17766. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17767. msm_routing_put_port_mixer),
  17768. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17769. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17770. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17771. msm_routing_put_port_mixer),
  17772. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17773. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17774. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17775. msm_routing_put_port_mixer),
  17776. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17777. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17778. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17779. msm_routing_put_port_mixer),
  17780. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17781. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17782. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17783. msm_routing_put_port_mixer),
  17784. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17785. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17786. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17787. msm_routing_put_port_mixer),
  17788. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17789. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17790. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17791. msm_routing_put_port_mixer),
  17792. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17793. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17794. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17795. msm_routing_put_port_mixer),
  17796. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17798. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17799. msm_routing_put_port_mixer),
  17800. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17801. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17802. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17803. msm_routing_put_port_mixer),
  17804. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17805. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17806. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17807. msm_routing_put_port_mixer),
  17808. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17809. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17810. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17811. msm_routing_put_port_mixer),
  17812. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17813. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17814. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17815. msm_routing_put_port_mixer),
  17816. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17817. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17818. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17819. msm_routing_put_port_mixer),
  17820. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17821. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17822. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17823. msm_routing_put_port_mixer),
  17824. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17826. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17827. msm_routing_put_port_mixer),
  17828. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17829. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17830. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17831. msm_routing_put_port_mixer),
  17832. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17833. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17834. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17835. msm_routing_put_port_mixer),
  17836. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17837. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17838. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17839. msm_routing_put_port_mixer),
  17840. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17841. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17842. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17846. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17847. msm_routing_put_port_mixer),
  17848. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17849. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17850. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17851. msm_routing_put_port_mixer),
  17852. };
  17853. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17854. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17855. MSM_BACKEND_DAI_AUXPCM_RX,
  17856. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17857. msm_routing_put_port_mixer),
  17858. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17859. MSM_BACKEND_DAI_AUXPCM_RX,
  17860. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17861. msm_routing_put_port_mixer),
  17862. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17863. MSM_BACKEND_DAI_AUXPCM_RX,
  17864. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17865. msm_routing_put_port_mixer),
  17866. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17867. MSM_BACKEND_DAI_AUXPCM_RX,
  17868. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17869. msm_routing_put_port_mixer),
  17870. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17871. MSM_BACKEND_DAI_AUXPCM_RX,
  17872. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17875. MSM_BACKEND_DAI_AUXPCM_RX,
  17876. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17877. msm_routing_put_port_mixer),
  17878. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17879. MSM_BACKEND_DAI_AUXPCM_RX,
  17880. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17881. msm_routing_put_port_mixer),
  17882. };
  17883. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17884. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17885. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17886. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17887. msm_routing_put_port_mixer),
  17888. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17889. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17890. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17891. msm_routing_put_port_mixer),
  17892. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17893. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17894. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17895. msm_routing_put_port_mixer),
  17896. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17897. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17898. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17899. msm_routing_put_port_mixer),
  17900. };
  17901. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17902. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17903. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17904. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17905. msm_routing_put_port_mixer),
  17906. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17907. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17908. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17909. msm_routing_put_port_mixer),
  17910. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17911. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17912. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17913. msm_routing_put_port_mixer),
  17914. };
  17915. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17916. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17917. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17918. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17919. msm_routing_put_port_mixer),
  17920. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17921. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17922. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17923. msm_routing_put_port_mixer),
  17924. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17925. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17926. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17927. msm_routing_put_port_mixer),
  17928. };
  17929. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17930. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17931. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17932. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17933. msm_routing_put_port_mixer),
  17934. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17935. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17936. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17940. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17941. msm_routing_put_port_mixer),
  17942. };
  17943. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17944. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17945. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17946. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17947. msm_routing_put_port_mixer),
  17948. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17949. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17950. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17951. msm_routing_put_port_mixer),
  17952. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17953. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17954. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. };
  17957. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17958. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17959. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17960. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17961. msm_routing_put_port_mixer),
  17962. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17963. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17964. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17967. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17968. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17969. msm_routing_put_port_mixer),
  17970. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17971. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17972. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17973. msm_routing_put_port_mixer),
  17974. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17975. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17976. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17977. msm_routing_put_port_mixer),
  17978. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17979. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17980. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17981. msm_routing_put_port_mixer),
  17982. };
  17983. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17984. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17985. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17986. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17987. msm_routing_put_port_mixer),
  17988. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17989. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17990. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17991. msm_routing_put_port_mixer),
  17992. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17993. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17994. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17995. msm_routing_put_port_mixer),
  17996. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17998. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17999. msm_routing_put_port_mixer),
  18000. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  18001. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  18002. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  18003. msm_routing_put_port_mixer),
  18004. };
  18005. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  18006. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18007. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18008. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18009. msm_routing_put_port_mixer),
  18010. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18011. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18012. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18013. msm_routing_put_port_mixer),
  18014. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18015. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18016. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18017. msm_routing_put_port_mixer),
  18018. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  18019. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18020. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  18021. msm_routing_put_port_mixer),
  18022. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18023. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18024. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18025. msm_routing_put_port_mixer),
  18026. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18027. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18028. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18029. msm_routing_put_port_mixer),
  18030. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18031. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18032. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18033. msm_routing_put_port_mixer),
  18034. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18035. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18036. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18037. msm_routing_put_port_mixer),
  18038. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18039. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18040. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18041. msm_routing_put_port_mixer),
  18042. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18043. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18044. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18045. msm_routing_put_port_mixer),
  18046. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18047. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18048. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18049. msm_routing_put_port_mixer),
  18050. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18051. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18052. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  18053. msm_routing_put_port_mixer),
  18054. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  18055. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18056. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  18057. msm_routing_put_port_mixer),
  18058. };
  18059. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  18060. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18061. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  18062. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18063. msm_routing_put_port_mixer),
  18064. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18065. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  18066. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18067. msm_routing_put_port_mixer),
  18068. };
  18069. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  18070. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18071. MSM_BACKEND_DAI_AFE_PCM_RX,
  18072. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18073. msm_routing_put_port_mixer),
  18074. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18075. MSM_BACKEND_DAI_AFE_PCM_RX,
  18076. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18077. msm_routing_put_port_mixer),
  18078. };
  18079. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  18080. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18081. MSM_BACKEND_DAI_HDMI_RX,
  18082. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18083. msm_routing_put_port_mixer),
  18084. };
  18085. static const struct snd_kcontrol_new hdmi_rx_ms_port_mixer_controls[] = {
  18086. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18087. MSM_BACKEND_DAI_HDMI_RX_MS,
  18088. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18089. msm_routing_put_port_mixer),
  18090. };
  18091. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  18092. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18093. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  18094. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18095. msm_routing_put_port_mixer),
  18096. };
  18097. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  18098. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18099. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  18100. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18101. msm_routing_put_port_mixer),
  18102. };
  18103. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  18104. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18105. MSM_BACKEND_DAI_SEC_I2S_RX,
  18106. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18107. msm_routing_put_port_mixer),
  18108. };
  18109. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  18110. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18111. MSM_BACKEND_DAI_MI2S_RX,
  18112. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18113. msm_routing_put_port_mixer),
  18114. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18115. MSM_BACKEND_DAI_MI2S_RX,
  18116. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18117. msm_routing_put_port_mixer),
  18118. };
  18119. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  18120. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18121. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18122. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18123. msm_routing_put_port_mixer),
  18124. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18125. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18126. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18127. msm_routing_put_port_mixer),
  18128. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18129. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18130. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18131. msm_routing_put_port_mixer),
  18132. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18133. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18134. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18135. msm_routing_put_port_mixer),
  18136. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18137. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18138. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  18139. msm_routing_put_port_mixer),
  18140. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18141. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18142. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18143. msm_routing_put_port_mixer),
  18144. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18145. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18146. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18147. msm_routing_put_port_mixer),
  18148. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18149. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18150. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18153. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18154. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18155. msm_routing_put_port_mixer),
  18156. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18157. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18158. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18159. msm_routing_put_port_mixer),
  18160. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18161. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18162. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18163. msm_routing_put_port_mixer),
  18164. };
  18165. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  18166. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  18167. MSM_BACKEND_DAI_USB_RX,
  18168. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  18169. msm_routing_put_port_mixer),
  18170. };
  18171. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  18172. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18174. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18175. msm_routing_put_port_mixer),
  18176. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18177. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18178. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18179. msm_routing_put_port_mixer),
  18180. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18181. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18182. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18183. msm_routing_put_port_mixer),
  18184. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18185. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18186. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18187. msm_routing_put_port_mixer),
  18188. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18189. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18190. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18191. msm_routing_put_port_mixer),
  18192. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18193. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18194. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18195. msm_routing_put_port_mixer),
  18196. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18197. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18198. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18199. msm_routing_put_port_mixer),
  18200. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18201. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18202. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18203. msm_routing_put_port_mixer),
  18204. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18205. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18206. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18207. msm_routing_put_port_mixer),
  18208. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18209. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18210. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18211. msm_routing_put_port_mixer),
  18212. };
  18213. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  18214. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18215. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18216. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18217. msm_routing_put_port_mixer),
  18218. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18219. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18220. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18221. msm_routing_put_port_mixer),
  18222. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18223. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18224. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18225. msm_routing_put_port_mixer),
  18226. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18227. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18228. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18229. msm_routing_put_port_mixer),
  18230. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18232. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18233. msm_routing_put_port_mixer),
  18234. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18235. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18236. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18237. msm_routing_put_port_mixer),
  18238. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18239. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18240. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18241. msm_routing_put_port_mixer),
  18242. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18243. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18244. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18245. msm_routing_put_port_mixer),
  18246. };
  18247. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  18248. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18249. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18250. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18251. msm_routing_put_port_mixer),
  18252. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18253. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18254. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18255. msm_routing_put_port_mixer),
  18256. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18257. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18258. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18259. msm_routing_put_port_mixer),
  18260. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18261. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18262. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18263. msm_routing_put_port_mixer),
  18264. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18265. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18266. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18267. msm_routing_put_port_mixer),
  18268. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18269. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18270. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18271. msm_routing_put_port_mixer),
  18272. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18273. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18274. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18275. msm_routing_put_port_mixer),
  18276. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18277. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18278. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18279. msm_routing_put_port_mixer),
  18280. };
  18281. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  18282. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18283. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18284. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18285. msm_routing_get_port_mixer,
  18286. msm_routing_put_port_mixer),
  18287. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18288. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18289. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18290. msm_routing_get_port_mixer,
  18291. msm_routing_put_port_mixer),
  18292. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18293. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18294. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18295. msm_routing_get_port_mixer,
  18296. msm_routing_put_port_mixer),
  18297. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18298. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18299. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18300. msm_routing_get_port_mixer,
  18301. msm_routing_put_port_mixer),
  18302. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18303. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18304. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18305. msm_routing_get_port_mixer,
  18306. msm_routing_put_port_mixer),
  18307. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18308. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18309. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18310. msm_routing_get_port_mixer,
  18311. msm_routing_put_port_mixer),
  18312. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18313. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18314. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18315. msm_routing_get_port_mixer,
  18316. msm_routing_put_port_mixer),
  18317. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18318. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18319. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18320. msm_routing_get_port_mixer,
  18321. msm_routing_put_port_mixer),
  18322. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18323. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18324. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18325. msm_routing_get_port_mixer,
  18326. msm_routing_put_port_mixer),
  18327. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18328. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18329. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18330. msm_routing_get_port_mixer,
  18331. msm_routing_put_port_mixer),
  18332. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18333. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18334. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18335. msm_routing_get_port_mixer,
  18336. msm_routing_put_port_mixer),
  18337. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18338. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18339. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18340. msm_routing_get_port_mixer,
  18341. msm_routing_put_port_mixer),
  18342. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18343. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18344. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18345. msm_routing_get_port_mixer,
  18346. msm_routing_put_port_mixer),
  18347. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18348. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18349. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18350. msm_routing_get_port_mixer,
  18351. msm_routing_put_port_mixer),
  18352. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18354. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18355. msm_routing_get_port_mixer,
  18356. msm_routing_put_port_mixer),
  18357. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18358. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18359. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18360. msm_routing_get_port_mixer,
  18361. msm_routing_put_port_mixer),
  18362. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18364. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18368. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18369. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18370. msm_routing_get_port_mixer,
  18371. msm_routing_put_port_mixer),
  18372. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18373. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18374. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18375. msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18379. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18380. msm_routing_get_port_mixer,
  18381. msm_routing_put_port_mixer),
  18382. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18383. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18384. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18385. msm_routing_get_port_mixer,
  18386. msm_routing_put_port_mixer),
  18387. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18388. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18389. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18390. msm_routing_get_port_mixer,
  18391. msm_routing_put_port_mixer),
  18392. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18393. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18394. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18395. msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18399. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18400. msm_routing_get_port_mixer,
  18401. msm_routing_put_port_mixer),
  18402. };
  18403. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18404. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18405. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18406. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18407. msm_routing_get_port_mixer,
  18408. msm_routing_put_port_mixer),
  18409. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18410. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18411. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18412. msm_routing_get_port_mixer,
  18413. msm_routing_put_port_mixer),
  18414. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18415. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18416. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18417. msm_routing_get_port_mixer,
  18418. msm_routing_put_port_mixer),
  18419. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18420. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18421. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18422. msm_routing_get_port_mixer,
  18423. msm_routing_put_port_mixer),
  18424. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18425. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18426. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18427. msm_routing_get_port_mixer,
  18428. msm_routing_put_port_mixer),
  18429. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18430. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18431. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18432. msm_routing_get_port_mixer,
  18433. msm_routing_put_port_mixer),
  18434. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18435. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18436. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18437. msm_routing_get_port_mixer,
  18438. msm_routing_put_port_mixer),
  18439. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18440. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18441. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18442. msm_routing_get_port_mixer,
  18443. msm_routing_put_port_mixer),
  18444. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18445. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18446. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18447. msm_routing_get_port_mixer,
  18448. msm_routing_put_port_mixer),
  18449. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18450. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18451. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18452. msm_routing_get_port_mixer,
  18453. msm_routing_put_port_mixer),
  18454. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18455. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18456. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18457. msm_routing_get_port_mixer,
  18458. msm_routing_put_port_mixer),
  18459. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18460. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18461. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18462. msm_routing_get_port_mixer,
  18463. msm_routing_put_port_mixer),
  18464. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18465. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18466. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18467. msm_routing_get_port_mixer,
  18468. msm_routing_put_port_mixer),
  18469. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18470. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18471. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18472. msm_routing_get_port_mixer,
  18473. msm_routing_put_port_mixer),
  18474. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18475. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18476. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18477. msm_routing_get_port_mixer,
  18478. msm_routing_put_port_mixer),
  18479. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18480. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18481. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18482. msm_routing_get_port_mixer,
  18483. msm_routing_put_port_mixer),
  18484. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18485. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18486. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18487. msm_routing_get_port_mixer,
  18488. msm_routing_put_port_mixer),
  18489. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18490. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18491. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18492. msm_routing_get_port_mixer,
  18493. msm_routing_put_port_mixer),
  18494. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18495. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18496. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18497. msm_routing_get_port_mixer,
  18498. msm_routing_put_port_mixer),
  18499. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18500. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18501. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18502. msm_routing_get_port_mixer,
  18503. msm_routing_put_port_mixer),
  18504. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18505. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18506. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18507. msm_routing_get_port_mixer,
  18508. msm_routing_put_port_mixer),
  18509. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18510. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18511. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18512. msm_routing_get_port_mixer,
  18513. msm_routing_put_port_mixer),
  18514. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18515. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18516. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18517. msm_routing_get_port_mixer,
  18518. msm_routing_put_port_mixer),
  18519. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18520. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18521. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18522. msm_routing_get_port_mixer,
  18523. msm_routing_put_port_mixer),
  18524. };
  18525. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18526. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18527. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18528. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18529. msm_routing_get_port_mixer,
  18530. msm_routing_put_port_mixer),
  18531. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18532. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18533. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18534. msm_routing_get_port_mixer,
  18535. msm_routing_put_port_mixer),
  18536. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18537. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18538. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18539. msm_routing_get_port_mixer,
  18540. msm_routing_put_port_mixer),
  18541. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18542. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18543. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18544. msm_routing_get_port_mixer,
  18545. msm_routing_put_port_mixer),
  18546. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18547. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18548. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18549. msm_routing_get_port_mixer,
  18550. msm_routing_put_port_mixer),
  18551. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18552. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18553. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18554. msm_routing_get_port_mixer,
  18555. msm_routing_put_port_mixer),
  18556. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18557. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18558. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18559. msm_routing_get_port_mixer,
  18560. msm_routing_put_port_mixer),
  18561. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18562. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18563. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18564. msm_routing_get_port_mixer,
  18565. msm_routing_put_port_mixer),
  18566. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18567. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18568. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18569. msm_routing_get_port_mixer,
  18570. msm_routing_put_port_mixer),
  18571. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18572. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18573. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18574. msm_routing_get_port_mixer,
  18575. msm_routing_put_port_mixer),
  18576. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18577. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18578. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18579. msm_routing_get_port_mixer,
  18580. msm_routing_put_port_mixer),
  18581. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18582. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18583. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18584. msm_routing_get_port_mixer,
  18585. msm_routing_put_port_mixer),
  18586. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18587. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18588. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18589. msm_routing_get_port_mixer,
  18590. msm_routing_put_port_mixer),
  18591. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18592. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18593. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18594. msm_routing_get_port_mixer,
  18595. msm_routing_put_port_mixer),
  18596. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18597. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18598. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18599. msm_routing_get_port_mixer,
  18600. msm_routing_put_port_mixer),
  18601. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18602. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18603. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18604. msm_routing_get_port_mixer,
  18605. msm_routing_put_port_mixer),
  18606. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18607. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18608. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18609. msm_routing_get_port_mixer,
  18610. msm_routing_put_port_mixer),
  18611. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18612. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18613. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18614. msm_routing_get_port_mixer,
  18615. msm_routing_put_port_mixer),
  18616. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18618. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18619. msm_routing_get_port_mixer,
  18620. msm_routing_put_port_mixer),
  18621. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18622. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18623. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18624. msm_routing_get_port_mixer,
  18625. msm_routing_put_port_mixer),
  18626. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18627. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18628. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18629. msm_routing_get_port_mixer,
  18630. msm_routing_put_port_mixer),
  18631. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18632. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18633. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18634. msm_routing_get_port_mixer,
  18635. msm_routing_put_port_mixer),
  18636. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18638. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18639. msm_routing_get_port_mixer,
  18640. msm_routing_put_port_mixer),
  18641. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18642. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18643. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18644. msm_routing_get_port_mixer,
  18645. msm_routing_put_port_mixer),
  18646. };
  18647. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18648. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18649. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18650. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18651. msm_routing_get_port_mixer,
  18652. msm_routing_put_port_mixer),
  18653. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18654. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18655. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18656. msm_routing_get_port_mixer,
  18657. msm_routing_put_port_mixer),
  18658. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18659. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18660. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18661. msm_routing_get_port_mixer,
  18662. msm_routing_put_port_mixer),
  18663. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18664. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18665. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18666. msm_routing_get_port_mixer,
  18667. msm_routing_put_port_mixer),
  18668. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18669. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18670. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18671. msm_routing_get_port_mixer,
  18672. msm_routing_put_port_mixer),
  18673. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18674. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18675. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18676. msm_routing_get_port_mixer,
  18677. msm_routing_put_port_mixer),
  18678. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18679. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18680. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18681. msm_routing_get_port_mixer,
  18682. msm_routing_put_port_mixer),
  18683. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18684. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18685. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18686. msm_routing_get_port_mixer,
  18687. msm_routing_put_port_mixer),
  18688. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18689. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18690. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18691. msm_routing_get_port_mixer,
  18692. msm_routing_put_port_mixer),
  18693. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18694. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18695. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18696. msm_routing_get_port_mixer,
  18697. msm_routing_put_port_mixer),
  18698. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18699. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18700. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18701. msm_routing_get_port_mixer,
  18702. msm_routing_put_port_mixer),
  18703. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18704. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18705. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18706. msm_routing_get_port_mixer,
  18707. msm_routing_put_port_mixer),
  18708. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18709. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18710. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18711. msm_routing_get_port_mixer,
  18712. msm_routing_put_port_mixer),
  18713. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18714. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18715. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18716. msm_routing_get_port_mixer,
  18717. msm_routing_put_port_mixer),
  18718. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18719. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18720. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18721. msm_routing_get_port_mixer,
  18722. msm_routing_put_port_mixer),
  18723. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18724. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18725. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18726. msm_routing_get_port_mixer,
  18727. msm_routing_put_port_mixer),
  18728. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18729. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18730. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18731. msm_routing_get_port_mixer,
  18732. msm_routing_put_port_mixer),
  18733. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18734. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18735. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18736. msm_routing_get_port_mixer,
  18737. msm_routing_put_port_mixer),
  18738. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18739. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18740. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18741. msm_routing_get_port_mixer,
  18742. msm_routing_put_port_mixer),
  18743. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18744. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18745. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18746. msm_routing_get_port_mixer,
  18747. msm_routing_put_port_mixer),
  18748. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18750. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18751. msm_routing_get_port_mixer,
  18752. msm_routing_put_port_mixer),
  18753. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18754. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18755. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18756. msm_routing_get_port_mixer,
  18757. msm_routing_put_port_mixer),
  18758. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18759. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18760. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18761. msm_routing_get_port_mixer,
  18762. msm_routing_put_port_mixer),
  18763. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18764. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18765. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18766. msm_routing_get_port_mixer,
  18767. msm_routing_put_port_mixer),
  18768. };
  18769. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18770. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18771. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18772. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18773. msm_routing_get_port_mixer,
  18774. msm_routing_put_port_mixer),
  18775. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18776. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18777. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18778. msm_routing_get_port_mixer,
  18779. msm_routing_put_port_mixer),
  18780. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18781. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18782. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18783. msm_routing_get_port_mixer,
  18784. msm_routing_put_port_mixer),
  18785. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18786. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18787. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18788. msm_routing_get_port_mixer,
  18789. msm_routing_put_port_mixer),
  18790. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18791. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18792. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18793. msm_routing_get_port_mixer,
  18794. msm_routing_put_port_mixer),
  18795. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18796. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18797. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18798. msm_routing_get_port_mixer,
  18799. msm_routing_put_port_mixer),
  18800. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18801. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18802. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18803. msm_routing_get_port_mixer,
  18804. msm_routing_put_port_mixer),
  18805. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18806. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18807. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18808. msm_routing_get_port_mixer,
  18809. msm_routing_put_port_mixer),
  18810. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18811. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18812. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18813. msm_routing_get_port_mixer,
  18814. msm_routing_put_port_mixer),
  18815. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18816. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18817. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18818. msm_routing_get_port_mixer,
  18819. msm_routing_put_port_mixer),
  18820. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18821. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18822. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18823. msm_routing_get_port_mixer,
  18824. msm_routing_put_port_mixer),
  18825. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18826. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18827. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18828. msm_routing_get_port_mixer,
  18829. msm_routing_put_port_mixer),
  18830. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18831. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18832. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18833. msm_routing_get_port_mixer,
  18834. msm_routing_put_port_mixer),
  18835. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18836. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18837. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18838. msm_routing_get_port_mixer,
  18839. msm_routing_put_port_mixer),
  18840. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18841. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18842. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18843. msm_routing_get_port_mixer,
  18844. msm_routing_put_port_mixer),
  18845. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18846. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18847. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18848. msm_routing_get_port_mixer,
  18849. msm_routing_put_port_mixer),
  18850. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18851. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18852. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18853. msm_routing_get_port_mixer,
  18854. msm_routing_put_port_mixer),
  18855. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18856. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18857. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18858. msm_routing_get_port_mixer,
  18859. msm_routing_put_port_mixer),
  18860. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18861. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18862. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18863. msm_routing_get_port_mixer,
  18864. msm_routing_put_port_mixer),
  18865. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18866. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18867. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18868. msm_routing_get_port_mixer,
  18869. msm_routing_put_port_mixer),
  18870. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18871. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18872. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18873. msm_routing_get_port_mixer,
  18874. msm_routing_put_port_mixer),
  18875. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18876. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18877. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18878. msm_routing_get_port_mixer,
  18879. msm_routing_put_port_mixer),
  18880. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18881. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18882. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18883. msm_routing_get_port_mixer,
  18884. msm_routing_put_port_mixer),
  18885. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18886. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18887. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18888. msm_routing_get_port_mixer,
  18889. msm_routing_put_port_mixer),
  18890. };
  18891. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18892. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18893. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18894. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18895. msm_routing_get_port_mixer,
  18896. msm_routing_put_port_mixer),
  18897. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18898. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18899. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18900. msm_routing_get_port_mixer,
  18901. msm_routing_put_port_mixer),
  18902. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18903. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18904. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18905. msm_routing_get_port_mixer,
  18906. msm_routing_put_port_mixer),
  18907. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18908. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18909. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18910. msm_routing_get_port_mixer,
  18911. msm_routing_put_port_mixer),
  18912. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18913. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18914. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18915. msm_routing_get_port_mixer,
  18916. msm_routing_put_port_mixer),
  18917. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18918. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18919. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18920. msm_routing_get_port_mixer,
  18921. msm_routing_put_port_mixer),
  18922. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18923. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18924. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18925. msm_routing_get_port_mixer,
  18926. msm_routing_put_port_mixer),
  18927. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18928. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18929. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18930. msm_routing_get_port_mixer,
  18931. msm_routing_put_port_mixer),
  18932. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18933. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18934. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18935. msm_routing_get_port_mixer,
  18936. msm_routing_put_port_mixer),
  18937. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18938. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18939. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18940. msm_routing_get_port_mixer,
  18941. msm_routing_put_port_mixer),
  18942. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18943. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18944. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18945. msm_routing_get_port_mixer,
  18946. msm_routing_put_port_mixer),
  18947. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18948. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18949. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18950. msm_routing_get_port_mixer,
  18951. msm_routing_put_port_mixer),
  18952. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18953. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18954. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18955. msm_routing_get_port_mixer,
  18956. msm_routing_put_port_mixer),
  18957. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18958. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18959. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18960. msm_routing_get_port_mixer,
  18961. msm_routing_put_port_mixer),
  18962. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18963. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18964. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18965. msm_routing_get_port_mixer,
  18966. msm_routing_put_port_mixer),
  18967. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18968. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18969. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18970. msm_routing_get_port_mixer,
  18971. msm_routing_put_port_mixer),
  18972. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18973. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18974. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18975. msm_routing_get_port_mixer,
  18976. msm_routing_put_port_mixer),
  18977. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18978. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18979. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18980. msm_routing_get_port_mixer,
  18981. msm_routing_put_port_mixer),
  18982. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18983. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18984. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18985. msm_routing_get_port_mixer,
  18986. msm_routing_put_port_mixer),
  18987. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18988. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18989. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18990. msm_routing_get_port_mixer,
  18991. msm_routing_put_port_mixer),
  18992. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18993. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18994. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18995. msm_routing_get_port_mixer,
  18996. msm_routing_put_port_mixer),
  18997. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18998. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18999. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19000. msm_routing_get_port_mixer,
  19001. msm_routing_put_port_mixer),
  19002. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19003. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  19004. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19005. msm_routing_get_port_mixer,
  19006. msm_routing_put_port_mixer),
  19007. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19008. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  19009. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19010. msm_routing_get_port_mixer,
  19011. msm_routing_put_port_mixer),
  19012. };
  19013. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  19014. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19015. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19016. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19017. msm_routing_get_port_mixer,
  19018. msm_routing_put_port_mixer),
  19019. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19020. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19021. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19022. msm_routing_get_port_mixer,
  19023. msm_routing_put_port_mixer),
  19024. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19025. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19026. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19027. msm_routing_get_port_mixer,
  19028. msm_routing_put_port_mixer),
  19029. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19030. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19031. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19032. msm_routing_get_port_mixer,
  19033. msm_routing_put_port_mixer),
  19034. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19035. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19036. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19037. msm_routing_get_port_mixer,
  19038. msm_routing_put_port_mixer),
  19039. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19040. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19041. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19042. msm_routing_get_port_mixer,
  19043. msm_routing_put_port_mixer),
  19044. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19045. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19046. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19047. msm_routing_get_port_mixer,
  19048. msm_routing_put_port_mixer),
  19049. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19050. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19051. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19052. msm_routing_get_port_mixer,
  19053. msm_routing_put_port_mixer),
  19054. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19055. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19056. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  19057. msm_routing_get_port_mixer,
  19058. msm_routing_put_port_mixer),
  19059. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19060. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19061. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  19062. msm_routing_get_port_mixer,
  19063. msm_routing_put_port_mixer),
  19064. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19065. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19066. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  19067. msm_routing_get_port_mixer,
  19068. msm_routing_put_port_mixer),
  19069. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19070. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19071. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  19072. msm_routing_get_port_mixer,
  19073. msm_routing_put_port_mixer),
  19074. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19075. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19076. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19077. msm_routing_get_port_mixer,
  19078. msm_routing_put_port_mixer),
  19079. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19080. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19081. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19082. msm_routing_get_port_mixer,
  19083. msm_routing_put_port_mixer),
  19084. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19085. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19086. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19087. msm_routing_get_port_mixer,
  19088. msm_routing_put_port_mixer),
  19089. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19090. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19091. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19092. msm_routing_get_port_mixer,
  19093. msm_routing_put_port_mixer),
  19094. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19095. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19096. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19097. msm_routing_get_port_mixer,
  19098. msm_routing_put_port_mixer),
  19099. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19100. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19101. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19102. msm_routing_get_port_mixer,
  19103. msm_routing_put_port_mixer),
  19104. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19105. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19106. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19107. msm_routing_get_port_mixer,
  19108. msm_routing_put_port_mixer),
  19109. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19110. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19111. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19112. msm_routing_get_port_mixer,
  19113. msm_routing_put_port_mixer),
  19114. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19115. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19116. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19117. msm_routing_get_port_mixer,
  19118. msm_routing_put_port_mixer),
  19119. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19120. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19121. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19122. msm_routing_get_port_mixer,
  19123. msm_routing_put_port_mixer),
  19124. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19125. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19126. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19127. msm_routing_get_port_mixer,
  19128. msm_routing_put_port_mixer),
  19129. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19130. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19131. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19132. msm_routing_get_port_mixer,
  19133. msm_routing_put_port_mixer),
  19134. };
  19135. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  19136. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19137. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19138. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19139. msm_routing_get_port_mixer,
  19140. msm_routing_put_port_mixer),
  19141. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19142. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19143. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19144. msm_routing_get_port_mixer,
  19145. msm_routing_put_port_mixer),
  19146. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19147. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19148. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19149. msm_routing_get_port_mixer,
  19150. msm_routing_put_port_mixer),
  19151. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19152. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19153. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19154. msm_routing_get_port_mixer,
  19155. msm_routing_put_port_mixer),
  19156. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19157. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19158. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19159. msm_routing_get_port_mixer,
  19160. msm_routing_put_port_mixer),
  19161. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19162. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19163. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19164. msm_routing_get_port_mixer,
  19165. msm_routing_put_port_mixer),
  19166. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19167. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19168. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19169. msm_routing_get_port_mixer,
  19170. msm_routing_put_port_mixer),
  19171. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19172. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19173. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19174. msm_routing_get_port_mixer,
  19175. msm_routing_put_port_mixer),
  19176. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19177. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19178. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  19179. msm_routing_get_port_mixer,
  19180. msm_routing_put_port_mixer),
  19181. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19182. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19183. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  19184. msm_routing_get_port_mixer,
  19185. msm_routing_put_port_mixer),
  19186. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19187. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19188. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  19189. msm_routing_get_port_mixer,
  19190. msm_routing_put_port_mixer),
  19191. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19192. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19193. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  19194. msm_routing_get_port_mixer,
  19195. msm_routing_put_port_mixer),
  19196. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19197. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19198. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19199. msm_routing_get_port_mixer,
  19200. msm_routing_put_port_mixer),
  19201. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19202. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19203. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19204. msm_routing_get_port_mixer,
  19205. msm_routing_put_port_mixer),
  19206. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19207. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19208. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19209. msm_routing_get_port_mixer,
  19210. msm_routing_put_port_mixer),
  19211. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19212. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19213. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19214. msm_routing_get_port_mixer,
  19215. msm_routing_put_port_mixer),
  19216. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19217. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19218. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19219. msm_routing_get_port_mixer,
  19220. msm_routing_put_port_mixer),
  19221. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19222. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19223. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19224. msm_routing_get_port_mixer,
  19225. msm_routing_put_port_mixer),
  19226. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19227. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19228. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19229. msm_routing_get_port_mixer,
  19230. msm_routing_put_port_mixer),
  19231. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19232. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19233. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19234. msm_routing_get_port_mixer,
  19235. msm_routing_put_port_mixer),
  19236. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19237. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19238. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19239. msm_routing_get_port_mixer,
  19240. msm_routing_put_port_mixer),
  19241. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19242. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19243. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19244. msm_routing_get_port_mixer,
  19245. msm_routing_put_port_mixer),
  19246. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19247. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19248. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19249. msm_routing_get_port_mixer,
  19250. msm_routing_put_port_mixer),
  19251. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19252. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19253. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19254. msm_routing_get_port_mixer,
  19255. msm_routing_put_port_mixer),
  19256. };
  19257. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  19258. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19259. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  19260. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19261. msm_routing_get_port_mixer,
  19262. msm_routing_put_port_mixer),
  19263. };
  19264. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  19265. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19266. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19267. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19268. msm_routing_get_port_mixer,
  19269. msm_routing_put_port_mixer),
  19270. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19271. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19272. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19273. msm_routing_get_port_mixer,
  19274. msm_routing_put_port_mixer),
  19275. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19276. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19277. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19278. msm_routing_get_port_mixer,
  19279. msm_routing_put_port_mixer),
  19280. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19281. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19282. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19283. msm_routing_get_port_mixer,
  19284. msm_routing_put_port_mixer),
  19285. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19286. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19287. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19288. msm_routing_get_port_mixer,
  19289. msm_routing_put_port_mixer),
  19290. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19291. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19292. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19293. msm_routing_get_port_mixer,
  19294. msm_routing_put_port_mixer),
  19295. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19296. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19297. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19298. msm_routing_get_port_mixer,
  19299. msm_routing_put_port_mixer),
  19300. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19301. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19302. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19303. msm_routing_get_port_mixer,
  19304. msm_routing_put_port_mixer),
  19305. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19306. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19307. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19308. msm_routing_get_port_mixer,
  19309. msm_routing_put_port_mixer),
  19310. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19311. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19312. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19313. msm_routing_get_port_mixer,
  19314. msm_routing_put_port_mixer),
  19315. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19316. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19317. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19318. msm_routing_get_port_mixer,
  19319. msm_routing_put_port_mixer),
  19320. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19321. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19322. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19323. msm_routing_get_port_mixer,
  19324. msm_routing_put_port_mixer),
  19325. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19326. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19327. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19328. msm_routing_get_port_mixer,
  19329. msm_routing_put_port_mixer),
  19330. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19331. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19332. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19333. msm_routing_get_port_mixer,
  19334. msm_routing_put_port_mixer),
  19335. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19336. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19337. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19338. msm_routing_get_port_mixer,
  19339. msm_routing_put_port_mixer),
  19340. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19341. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19342. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19343. msm_routing_get_port_mixer,
  19344. msm_routing_put_port_mixer),
  19345. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19346. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19347. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19348. msm_routing_get_port_mixer,
  19349. msm_routing_put_port_mixer),
  19350. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19351. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19352. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19353. msm_routing_get_port_mixer,
  19354. msm_routing_put_port_mixer),
  19355. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19356. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19357. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19358. msm_routing_get_port_mixer,
  19359. msm_routing_put_port_mixer),
  19360. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19361. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19362. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19363. msm_routing_get_port_mixer,
  19364. msm_routing_put_port_mixer),
  19365. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19366. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19367. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19368. msm_routing_get_port_mixer,
  19369. msm_routing_put_port_mixer),
  19370. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19371. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19372. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19373. msm_routing_get_port_mixer,
  19374. msm_routing_put_port_mixer),
  19375. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19376. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19377. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19378. msm_routing_get_port_mixer,
  19379. msm_routing_put_port_mixer),
  19380. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19381. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19382. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19383. msm_routing_get_port_mixer,
  19384. msm_routing_put_port_mixer),
  19385. };
  19386. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  19387. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19388. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19389. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19390. msm_routing_get_port_mixer,
  19391. msm_routing_put_port_mixer),
  19392. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19393. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19394. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19395. msm_routing_get_port_mixer,
  19396. msm_routing_put_port_mixer),
  19397. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19398. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19399. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19400. msm_routing_get_port_mixer,
  19401. msm_routing_put_port_mixer),
  19402. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19403. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19404. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19405. msm_routing_get_port_mixer,
  19406. msm_routing_put_port_mixer),
  19407. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19408. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19409. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19410. msm_routing_get_port_mixer,
  19411. msm_routing_put_port_mixer),
  19412. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19413. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19414. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19415. msm_routing_get_port_mixer,
  19416. msm_routing_put_port_mixer),
  19417. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19418. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19419. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19420. msm_routing_get_port_mixer,
  19421. msm_routing_put_port_mixer),
  19422. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19423. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19424. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19425. msm_routing_get_port_mixer,
  19426. msm_routing_put_port_mixer),
  19427. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19428. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19429. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19430. msm_routing_get_port_mixer,
  19431. msm_routing_put_port_mixer),
  19432. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19433. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19434. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19435. msm_routing_get_port_mixer,
  19436. msm_routing_put_port_mixer),
  19437. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19438. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19439. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19440. msm_routing_get_port_mixer,
  19441. msm_routing_put_port_mixer),
  19442. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19443. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19444. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19445. msm_routing_get_port_mixer,
  19446. msm_routing_put_port_mixer),
  19447. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19448. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19449. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19450. msm_routing_get_port_mixer,
  19451. msm_routing_put_port_mixer),
  19452. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19453. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19454. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19455. msm_routing_get_port_mixer,
  19456. msm_routing_put_port_mixer),
  19457. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19458. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19459. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19460. msm_routing_get_port_mixer,
  19461. msm_routing_put_port_mixer),
  19462. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19463. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19464. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19465. msm_routing_get_port_mixer,
  19466. msm_routing_put_port_mixer),
  19467. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19468. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19469. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19470. msm_routing_get_port_mixer,
  19471. msm_routing_put_port_mixer),
  19472. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19473. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19474. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19475. msm_routing_get_port_mixer,
  19476. msm_routing_put_port_mixer),
  19477. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19478. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19479. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19480. msm_routing_get_port_mixer,
  19481. msm_routing_put_port_mixer),
  19482. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19483. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19484. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19485. msm_routing_get_port_mixer,
  19486. msm_routing_put_port_mixer),
  19487. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19488. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19489. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19490. msm_routing_get_port_mixer,
  19491. msm_routing_put_port_mixer),
  19492. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19493. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19494. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19495. msm_routing_get_port_mixer,
  19496. msm_routing_put_port_mixer),
  19497. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19498. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19499. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19500. msm_routing_get_port_mixer,
  19501. msm_routing_put_port_mixer),
  19502. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19503. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19504. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19505. msm_routing_get_port_mixer,
  19506. msm_routing_put_port_mixer),
  19507. };
  19508. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19509. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19510. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19511. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19512. msm_routing_get_port_mixer,
  19513. msm_routing_put_port_mixer),
  19514. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19515. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19516. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19517. msm_routing_get_port_mixer,
  19518. msm_routing_put_port_mixer),
  19519. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19520. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19521. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19522. msm_routing_get_port_mixer,
  19523. msm_routing_put_port_mixer),
  19524. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19525. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19526. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19527. msm_routing_get_port_mixer,
  19528. msm_routing_put_port_mixer),
  19529. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19530. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19531. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19532. msm_routing_get_port_mixer,
  19533. msm_routing_put_port_mixer),
  19534. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19535. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19536. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19537. msm_routing_get_port_mixer,
  19538. msm_routing_put_port_mixer),
  19539. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19540. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19541. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19542. msm_routing_get_port_mixer,
  19543. msm_routing_put_port_mixer),
  19544. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19545. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19546. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19547. msm_routing_get_port_mixer,
  19548. msm_routing_put_port_mixer),
  19549. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19550. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19551. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19552. msm_routing_get_port_mixer,
  19553. msm_routing_put_port_mixer),
  19554. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19555. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19556. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19557. msm_routing_get_port_mixer,
  19558. msm_routing_put_port_mixer),
  19559. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19560. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19561. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19562. msm_routing_get_port_mixer,
  19563. msm_routing_put_port_mixer),
  19564. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19565. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19566. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19567. msm_routing_get_port_mixer,
  19568. msm_routing_put_port_mixer),
  19569. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19570. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19571. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19572. msm_routing_get_port_mixer,
  19573. msm_routing_put_port_mixer),
  19574. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19575. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19576. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19577. msm_routing_get_port_mixer,
  19578. msm_routing_put_port_mixer),
  19579. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19580. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19581. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19582. msm_routing_get_port_mixer,
  19583. msm_routing_put_port_mixer),
  19584. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19585. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19586. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19587. msm_routing_get_port_mixer,
  19588. msm_routing_put_port_mixer),
  19589. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19590. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19591. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19592. msm_routing_get_port_mixer,
  19593. msm_routing_put_port_mixer),
  19594. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19595. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19596. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19597. msm_routing_get_port_mixer,
  19598. msm_routing_put_port_mixer),
  19599. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19600. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19601. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19602. msm_routing_get_port_mixer,
  19603. msm_routing_put_port_mixer),
  19604. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19605. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19606. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19607. msm_routing_get_port_mixer,
  19608. msm_routing_put_port_mixer),
  19609. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19610. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19611. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19612. msm_routing_get_port_mixer,
  19613. msm_routing_put_port_mixer),
  19614. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19615. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19616. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19617. msm_routing_get_port_mixer,
  19618. msm_routing_put_port_mixer),
  19619. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19620. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19621. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19622. msm_routing_get_port_mixer,
  19623. msm_routing_put_port_mixer),
  19624. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19625. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19626. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19627. msm_routing_get_port_mixer,
  19628. msm_routing_put_port_mixer),
  19629. };
  19630. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19631. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19632. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19633. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19634. msm_routing_get_port_mixer,
  19635. msm_routing_put_port_mixer),
  19636. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19637. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19638. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19639. msm_routing_get_port_mixer,
  19640. msm_routing_put_port_mixer),
  19641. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19642. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19643. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19644. msm_routing_get_port_mixer,
  19645. msm_routing_put_port_mixer),
  19646. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19647. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19648. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19649. msm_routing_get_port_mixer,
  19650. msm_routing_put_port_mixer),
  19651. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19652. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19653. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19654. msm_routing_get_port_mixer,
  19655. msm_routing_put_port_mixer),
  19656. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19657. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19658. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19659. msm_routing_get_port_mixer,
  19660. msm_routing_put_port_mixer),
  19661. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19662. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19663. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19664. msm_routing_get_port_mixer,
  19665. msm_routing_put_port_mixer),
  19666. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19667. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19668. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19669. msm_routing_get_port_mixer,
  19670. msm_routing_put_port_mixer),
  19671. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19672. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19673. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19674. msm_routing_get_port_mixer,
  19675. msm_routing_put_port_mixer),
  19676. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19677. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19678. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19679. msm_routing_get_port_mixer,
  19680. msm_routing_put_port_mixer),
  19681. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19682. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19683. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19684. msm_routing_get_port_mixer,
  19685. msm_routing_put_port_mixer),
  19686. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19687. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19688. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19689. msm_routing_get_port_mixer,
  19690. msm_routing_put_port_mixer),
  19691. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19692. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19693. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19694. msm_routing_get_port_mixer,
  19695. msm_routing_put_port_mixer),
  19696. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19697. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19698. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19699. msm_routing_get_port_mixer,
  19700. msm_routing_put_port_mixer),
  19701. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19702. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19703. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19704. msm_routing_get_port_mixer,
  19705. msm_routing_put_port_mixer),
  19706. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19707. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19708. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19709. msm_routing_get_port_mixer,
  19710. msm_routing_put_port_mixer),
  19711. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19712. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19713. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19714. msm_routing_get_port_mixer,
  19715. msm_routing_put_port_mixer),
  19716. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19717. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19718. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19719. msm_routing_get_port_mixer,
  19720. msm_routing_put_port_mixer),
  19721. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19722. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19723. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19724. msm_routing_get_port_mixer,
  19725. msm_routing_put_port_mixer),
  19726. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19727. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19728. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19729. msm_routing_get_port_mixer,
  19730. msm_routing_put_port_mixer),
  19731. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19732. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19733. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19734. msm_routing_get_port_mixer,
  19735. msm_routing_put_port_mixer),
  19736. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19737. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19738. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19739. msm_routing_get_port_mixer,
  19740. msm_routing_put_port_mixer),
  19741. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19742. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19743. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19744. msm_routing_get_port_mixer,
  19745. msm_routing_put_port_mixer),
  19746. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19747. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19748. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19749. msm_routing_get_port_mixer,
  19750. msm_routing_put_port_mixer),
  19751. };
  19752. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19753. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19754. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19755. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19756. msm_routing_get_port_mixer,
  19757. msm_routing_put_port_mixer),
  19758. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19759. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19760. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19761. msm_routing_get_port_mixer,
  19762. msm_routing_put_port_mixer),
  19763. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19764. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19765. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19766. msm_routing_get_port_mixer,
  19767. msm_routing_put_port_mixer),
  19768. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19769. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19770. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19771. msm_routing_get_port_mixer,
  19772. msm_routing_put_port_mixer),
  19773. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19774. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19775. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19776. msm_routing_get_port_mixer,
  19777. msm_routing_put_port_mixer),
  19778. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19779. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19780. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19781. msm_routing_get_port_mixer,
  19782. msm_routing_put_port_mixer),
  19783. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19784. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19785. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19786. msm_routing_get_port_mixer,
  19787. msm_routing_put_port_mixer),
  19788. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19789. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19790. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19791. msm_routing_get_port_mixer,
  19792. msm_routing_put_port_mixer),
  19793. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19794. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19795. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19796. msm_routing_get_port_mixer,
  19797. msm_routing_put_port_mixer),
  19798. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19799. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19800. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19801. msm_routing_get_port_mixer,
  19802. msm_routing_put_port_mixer),
  19803. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19804. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19805. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19806. msm_routing_get_port_mixer,
  19807. msm_routing_put_port_mixer),
  19808. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19809. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19810. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19811. msm_routing_get_port_mixer,
  19812. msm_routing_put_port_mixer),
  19813. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19814. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19815. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19816. msm_routing_get_port_mixer,
  19817. msm_routing_put_port_mixer),
  19818. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19819. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19820. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19821. msm_routing_get_port_mixer,
  19822. msm_routing_put_port_mixer),
  19823. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19824. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19825. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19826. msm_routing_get_port_mixer,
  19827. msm_routing_put_port_mixer),
  19828. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19829. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19830. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19831. msm_routing_get_port_mixer,
  19832. msm_routing_put_port_mixer),
  19833. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19834. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19835. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19836. msm_routing_get_port_mixer,
  19837. msm_routing_put_port_mixer),
  19838. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19839. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19840. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19841. msm_routing_get_port_mixer,
  19842. msm_routing_put_port_mixer),
  19843. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19844. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19845. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19846. msm_routing_get_port_mixer,
  19847. msm_routing_put_port_mixer),
  19848. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19849. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19850. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19851. msm_routing_get_port_mixer,
  19852. msm_routing_put_port_mixer),
  19853. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19854. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19855. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19856. msm_routing_get_port_mixer,
  19857. msm_routing_put_port_mixer),
  19858. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19859. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19860. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19861. msm_routing_get_port_mixer,
  19862. msm_routing_put_port_mixer),
  19863. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19864. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19865. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19866. msm_routing_get_port_mixer,
  19867. msm_routing_put_port_mixer),
  19868. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19869. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19870. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19871. msm_routing_get_port_mixer,
  19872. msm_routing_put_port_mixer),
  19873. };
  19874. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19875. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19876. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19877. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19878. msm_routing_get_port_mixer,
  19879. msm_routing_put_port_mixer),
  19880. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19881. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19882. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19883. msm_routing_get_port_mixer,
  19884. msm_routing_put_port_mixer),
  19885. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19886. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19887. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19888. msm_routing_get_port_mixer,
  19889. msm_routing_put_port_mixer),
  19890. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19891. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19892. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19893. msm_routing_get_port_mixer,
  19894. msm_routing_put_port_mixer),
  19895. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19896. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19897. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19898. msm_routing_get_port_mixer,
  19899. msm_routing_put_port_mixer),
  19900. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19901. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19902. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19903. msm_routing_get_port_mixer,
  19904. msm_routing_put_port_mixer),
  19905. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19906. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19907. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19908. msm_routing_get_port_mixer,
  19909. msm_routing_put_port_mixer),
  19910. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19911. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19912. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19913. msm_routing_get_port_mixer,
  19914. msm_routing_put_port_mixer),
  19915. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19916. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19917. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19918. msm_routing_get_port_mixer,
  19919. msm_routing_put_port_mixer),
  19920. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19921. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19922. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19923. msm_routing_get_port_mixer,
  19924. msm_routing_put_port_mixer),
  19925. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19926. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19927. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19928. msm_routing_get_port_mixer,
  19929. msm_routing_put_port_mixer),
  19930. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19931. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19932. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19933. msm_routing_get_port_mixer,
  19934. msm_routing_put_port_mixer),
  19935. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19936. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19937. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19938. msm_routing_get_port_mixer,
  19939. msm_routing_put_port_mixer),
  19940. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19941. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19942. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19943. msm_routing_get_port_mixer,
  19944. msm_routing_put_port_mixer),
  19945. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19946. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19947. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19948. msm_routing_get_port_mixer,
  19949. msm_routing_put_port_mixer),
  19950. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19951. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19952. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19953. msm_routing_get_port_mixer,
  19954. msm_routing_put_port_mixer),
  19955. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19956. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19957. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19958. msm_routing_get_port_mixer,
  19959. msm_routing_put_port_mixer),
  19960. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19961. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19962. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19963. msm_routing_get_port_mixer,
  19964. msm_routing_put_port_mixer),
  19965. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19966. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19967. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19968. msm_routing_get_port_mixer,
  19969. msm_routing_put_port_mixer),
  19970. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19971. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19972. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19973. msm_routing_get_port_mixer,
  19974. msm_routing_put_port_mixer),
  19975. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19976. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19977. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19978. msm_routing_get_port_mixer,
  19979. msm_routing_put_port_mixer),
  19980. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19981. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19982. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19983. msm_routing_get_port_mixer,
  19984. msm_routing_put_port_mixer),
  19985. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19986. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19987. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19988. msm_routing_get_port_mixer,
  19989. msm_routing_put_port_mixer),
  19990. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19991. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19992. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19993. msm_routing_get_port_mixer,
  19994. msm_routing_put_port_mixer),
  19995. };
  19996. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19997. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19998. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19999. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20000. msm_routing_get_port_mixer,
  20001. msm_routing_put_port_mixer),
  20002. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20003. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20004. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20005. msm_routing_get_port_mixer,
  20006. msm_routing_put_port_mixer),
  20007. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20008. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20009. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20010. msm_routing_get_port_mixer,
  20011. msm_routing_put_port_mixer),
  20012. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20013. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20014. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20015. msm_routing_get_port_mixer,
  20016. msm_routing_put_port_mixer),
  20017. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20018. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20019. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20020. msm_routing_get_port_mixer,
  20021. msm_routing_put_port_mixer),
  20022. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20023. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20024. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20025. msm_routing_get_port_mixer,
  20026. msm_routing_put_port_mixer),
  20027. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20028. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20029. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20030. msm_routing_get_port_mixer,
  20031. msm_routing_put_port_mixer),
  20032. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20033. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20034. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20035. msm_routing_get_port_mixer,
  20036. msm_routing_put_port_mixer),
  20037. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20038. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20039. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20040. msm_routing_get_port_mixer,
  20041. msm_routing_put_port_mixer),
  20042. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20043. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20044. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20045. msm_routing_get_port_mixer,
  20046. msm_routing_put_port_mixer),
  20047. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20048. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20049. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20050. msm_routing_get_port_mixer,
  20051. msm_routing_put_port_mixer),
  20052. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20053. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20054. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20055. msm_routing_get_port_mixer,
  20056. msm_routing_put_port_mixer),
  20057. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20058. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20059. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20060. msm_routing_get_port_mixer,
  20061. msm_routing_put_port_mixer),
  20062. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20063. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20064. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20065. msm_routing_get_port_mixer,
  20066. msm_routing_put_port_mixer),
  20067. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20069. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20070. msm_routing_get_port_mixer,
  20071. msm_routing_put_port_mixer),
  20072. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20073. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20074. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20075. msm_routing_get_port_mixer,
  20076. msm_routing_put_port_mixer),
  20077. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20078. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20079. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20080. msm_routing_get_port_mixer,
  20081. msm_routing_put_port_mixer),
  20082. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20083. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20084. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20085. msm_routing_get_port_mixer,
  20086. msm_routing_put_port_mixer),
  20087. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20089. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20090. msm_routing_get_port_mixer,
  20091. msm_routing_put_port_mixer),
  20092. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20093. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20094. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20095. msm_routing_get_port_mixer,
  20096. msm_routing_put_port_mixer),
  20097. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20098. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20099. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20100. msm_routing_get_port_mixer,
  20101. msm_routing_put_port_mixer),
  20102. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20103. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20104. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20105. msm_routing_get_port_mixer,
  20106. msm_routing_put_port_mixer),
  20107. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20108. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20109. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20110. msm_routing_get_port_mixer,
  20111. msm_routing_put_port_mixer),
  20112. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20113. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20114. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20115. msm_routing_get_port_mixer,
  20116. msm_routing_put_port_mixer),
  20117. };
  20118. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  20119. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20120. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20121. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20122. msm_routing_get_port_mixer,
  20123. msm_routing_put_port_mixer),
  20124. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20125. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20126. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20127. msm_routing_get_port_mixer,
  20128. msm_routing_put_port_mixer),
  20129. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20130. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20131. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20132. msm_routing_get_port_mixer,
  20133. msm_routing_put_port_mixer),
  20134. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20135. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20136. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20137. msm_routing_get_port_mixer,
  20138. msm_routing_put_port_mixer),
  20139. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20140. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20141. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20142. msm_routing_get_port_mixer,
  20143. msm_routing_put_port_mixer),
  20144. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20145. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20146. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20147. msm_routing_get_port_mixer,
  20148. msm_routing_put_port_mixer),
  20149. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20151. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20152. msm_routing_get_port_mixer,
  20153. msm_routing_put_port_mixer),
  20154. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20155. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20156. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20157. msm_routing_get_port_mixer,
  20158. msm_routing_put_port_mixer),
  20159. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20160. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20161. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20162. msm_routing_get_port_mixer,
  20163. msm_routing_put_port_mixer),
  20164. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20165. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20166. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20167. msm_routing_get_port_mixer,
  20168. msm_routing_put_port_mixer),
  20169. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20171. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20172. msm_routing_get_port_mixer,
  20173. msm_routing_put_port_mixer),
  20174. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20175. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20176. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20177. msm_routing_get_port_mixer,
  20178. msm_routing_put_port_mixer),
  20179. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20180. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20181. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20182. msm_routing_get_port_mixer,
  20183. msm_routing_put_port_mixer),
  20184. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20185. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20186. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20187. msm_routing_get_port_mixer,
  20188. msm_routing_put_port_mixer),
  20189. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20190. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20191. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20192. msm_routing_get_port_mixer,
  20193. msm_routing_put_port_mixer),
  20194. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20195. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20196. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20197. msm_routing_get_port_mixer,
  20198. msm_routing_put_port_mixer),
  20199. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20200. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20201. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20202. msm_routing_get_port_mixer,
  20203. msm_routing_put_port_mixer),
  20204. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20205. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20206. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20207. msm_routing_get_port_mixer,
  20208. msm_routing_put_port_mixer),
  20209. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20210. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20211. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20212. msm_routing_get_port_mixer,
  20213. msm_routing_put_port_mixer),
  20214. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20215. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20216. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20217. msm_routing_get_port_mixer,
  20218. msm_routing_put_port_mixer),
  20219. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20220. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20221. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20222. msm_routing_get_port_mixer,
  20223. msm_routing_put_port_mixer),
  20224. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20225. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20226. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20227. msm_routing_get_port_mixer,
  20228. msm_routing_put_port_mixer),
  20229. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20230. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20231. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20232. msm_routing_get_port_mixer,
  20233. msm_routing_put_port_mixer),
  20234. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20235. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20236. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20237. msm_routing_get_port_mixer,
  20238. msm_routing_put_port_mixer),
  20239. };
  20240. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  20241. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20242. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20243. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20244. msm_routing_get_port_mixer,
  20245. msm_routing_put_port_mixer),
  20246. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20247. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20248. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20249. msm_routing_get_port_mixer,
  20250. msm_routing_put_port_mixer),
  20251. };
  20252. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  20253. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20254. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20255. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20256. msm_routing_get_port_mixer,
  20257. msm_routing_put_port_mixer),
  20258. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20259. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20260. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20261. msm_routing_get_port_mixer,
  20262. msm_routing_put_port_mixer),
  20263. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20264. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20265. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20266. msm_routing_get_port_mixer,
  20267. msm_routing_put_port_mixer),
  20268. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20269. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20270. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20271. msm_routing_get_port_mixer,
  20272. msm_routing_put_port_mixer),
  20273. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20274. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20275. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20276. msm_routing_get_port_mixer,
  20277. msm_routing_put_port_mixer),
  20278. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20279. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20280. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20281. msm_routing_get_port_mixer,
  20282. msm_routing_put_port_mixer),
  20283. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20284. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20285. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20286. msm_routing_get_port_mixer,
  20287. msm_routing_put_port_mixer),
  20288. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20289. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20290. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20291. msm_routing_get_port_mixer,
  20292. msm_routing_put_port_mixer),
  20293. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20294. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20295. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20296. msm_routing_get_port_mixer,
  20297. msm_routing_put_port_mixer),
  20298. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20299. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20300. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20301. msm_routing_get_port_mixer,
  20302. msm_routing_put_port_mixer),
  20303. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20304. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20305. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20306. msm_routing_get_port_mixer,
  20307. msm_routing_put_port_mixer),
  20308. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20309. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20310. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20311. msm_routing_get_port_mixer,
  20312. msm_routing_put_port_mixer),
  20313. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20314. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20315. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20316. msm_routing_get_port_mixer,
  20317. msm_routing_put_port_mixer),
  20318. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20319. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20320. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20321. msm_routing_get_port_mixer,
  20322. msm_routing_put_port_mixer),
  20323. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20324. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20325. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20326. msm_routing_get_port_mixer,
  20327. msm_routing_put_port_mixer),
  20328. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20330. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20331. msm_routing_get_port_mixer,
  20332. msm_routing_put_port_mixer),
  20333. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20334. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20335. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20336. msm_routing_get_port_mixer,
  20337. msm_routing_put_port_mixer),
  20338. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20339. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20340. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20341. msm_routing_get_port_mixer,
  20342. msm_routing_put_port_mixer),
  20343. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20344. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20345. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20346. msm_routing_get_port_mixer,
  20347. msm_routing_put_port_mixer),
  20348. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20350. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20351. msm_routing_get_port_mixer,
  20352. msm_routing_put_port_mixer),
  20353. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20354. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20355. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20356. msm_routing_get_port_mixer,
  20357. msm_routing_put_port_mixer),
  20358. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20359. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20360. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20361. msm_routing_get_port_mixer,
  20362. msm_routing_put_port_mixer),
  20363. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20364. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20365. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20366. msm_routing_get_port_mixer,
  20367. msm_routing_put_port_mixer),
  20368. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20369. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20370. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20371. msm_routing_get_port_mixer,
  20372. msm_routing_put_port_mixer),
  20373. };
  20374. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  20375. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20376. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20377. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20378. msm_routing_get_port_mixer,
  20379. msm_routing_put_port_mixer),
  20380. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20381. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20382. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20383. msm_routing_get_port_mixer,
  20384. msm_routing_put_port_mixer),
  20385. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20386. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20387. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20388. msm_routing_get_port_mixer,
  20389. msm_routing_put_port_mixer),
  20390. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20391. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20392. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20393. msm_routing_get_port_mixer,
  20394. msm_routing_put_port_mixer),
  20395. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20396. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20397. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20398. msm_routing_get_port_mixer,
  20399. msm_routing_put_port_mixer),
  20400. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20401. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20402. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20403. msm_routing_get_port_mixer,
  20404. msm_routing_put_port_mixer),
  20405. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20406. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20407. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20408. msm_routing_get_port_mixer,
  20409. msm_routing_put_port_mixer),
  20410. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20411. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20412. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20413. msm_routing_get_port_mixer,
  20414. msm_routing_put_port_mixer),
  20415. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20416. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20417. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20418. msm_routing_get_port_mixer,
  20419. msm_routing_put_port_mixer),
  20420. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20421. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20422. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20423. msm_routing_get_port_mixer,
  20424. msm_routing_put_port_mixer),
  20425. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20426. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20427. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20428. msm_routing_get_port_mixer,
  20429. msm_routing_put_port_mixer),
  20430. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20431. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20432. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20433. msm_routing_get_port_mixer,
  20434. msm_routing_put_port_mixer),
  20435. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20436. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20437. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20438. msm_routing_get_port_mixer,
  20439. msm_routing_put_port_mixer),
  20440. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20441. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20442. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20443. msm_routing_get_port_mixer,
  20444. msm_routing_put_port_mixer),
  20445. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20446. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20447. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20448. msm_routing_get_port_mixer,
  20449. msm_routing_put_port_mixer),
  20450. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20451. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20452. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20453. msm_routing_get_port_mixer,
  20454. msm_routing_put_port_mixer),
  20455. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20456. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20457. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20458. msm_routing_get_port_mixer,
  20459. msm_routing_put_port_mixer),
  20460. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20462. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20463. msm_routing_get_port_mixer,
  20464. msm_routing_put_port_mixer),
  20465. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20466. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20467. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20468. msm_routing_get_port_mixer,
  20469. msm_routing_put_port_mixer),
  20470. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20471. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20472. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20473. msm_routing_get_port_mixer,
  20474. msm_routing_put_port_mixer),
  20475. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20476. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20477. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20478. msm_routing_get_port_mixer,
  20479. msm_routing_put_port_mixer),
  20480. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20481. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20482. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20483. msm_routing_get_port_mixer,
  20484. msm_routing_put_port_mixer),
  20485. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20486. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20487. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20488. msm_routing_get_port_mixer,
  20489. msm_routing_put_port_mixer),
  20490. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20491. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20492. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20493. msm_routing_get_port_mixer,
  20494. msm_routing_put_port_mixer),
  20495. };
  20496. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20497. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20498. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20499. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20500. msm_routing_get_port_mixer,
  20501. msm_routing_put_port_mixer),
  20502. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20503. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20504. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20505. msm_routing_get_port_mixer,
  20506. msm_routing_put_port_mixer),
  20507. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20508. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20509. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20510. msm_routing_get_port_mixer,
  20511. msm_routing_put_port_mixer),
  20512. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20513. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20514. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20515. msm_routing_get_port_mixer,
  20516. msm_routing_put_port_mixer),
  20517. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20518. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20519. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20520. msm_routing_get_port_mixer,
  20521. msm_routing_put_port_mixer),
  20522. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20523. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20524. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20525. msm_routing_get_port_mixer,
  20526. msm_routing_put_port_mixer),
  20527. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20528. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20529. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20530. msm_routing_get_port_mixer,
  20531. msm_routing_put_port_mixer),
  20532. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20533. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20534. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20535. msm_routing_get_port_mixer,
  20536. msm_routing_put_port_mixer),
  20537. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20538. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20539. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20540. msm_routing_get_port_mixer,
  20541. msm_routing_put_port_mixer),
  20542. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20543. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20544. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20545. msm_routing_get_port_mixer,
  20546. msm_routing_put_port_mixer),
  20547. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20548. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20549. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20550. msm_routing_get_port_mixer,
  20551. msm_routing_put_port_mixer),
  20552. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20553. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20554. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20555. msm_routing_get_port_mixer,
  20556. msm_routing_put_port_mixer),
  20557. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20558. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20559. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20560. msm_routing_get_port_mixer,
  20561. msm_routing_put_port_mixer),
  20562. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20563. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20564. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20565. msm_routing_get_port_mixer,
  20566. msm_routing_put_port_mixer),
  20567. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20568. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20569. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20570. msm_routing_get_port_mixer,
  20571. msm_routing_put_port_mixer),
  20572. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20573. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20574. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20575. msm_routing_get_port_mixer,
  20576. msm_routing_put_port_mixer),
  20577. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20578. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20579. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20580. msm_routing_get_port_mixer,
  20581. msm_routing_put_port_mixer),
  20582. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20583. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20584. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20585. msm_routing_get_port_mixer,
  20586. msm_routing_put_port_mixer),
  20587. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20588. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20589. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20590. msm_routing_get_port_mixer,
  20591. msm_routing_put_port_mixer),
  20592. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20593. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20594. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20595. msm_routing_get_port_mixer,
  20596. msm_routing_put_port_mixer),
  20597. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20598. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20599. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20600. msm_routing_get_port_mixer,
  20601. msm_routing_put_port_mixer),
  20602. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20603. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20604. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20605. msm_routing_get_port_mixer,
  20606. msm_routing_put_port_mixer),
  20607. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20608. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20609. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20610. msm_routing_get_port_mixer,
  20611. msm_routing_put_port_mixer),
  20612. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20613. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20614. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20615. msm_routing_get_port_mixer,
  20616. msm_routing_put_port_mixer),
  20617. };
  20618. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20619. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20620. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20621. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20622. msm_routing_get_port_mixer,
  20623. msm_routing_put_port_mixer),
  20624. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20625. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20626. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20627. msm_routing_get_port_mixer,
  20628. msm_routing_put_port_mixer),
  20629. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20630. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20631. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20632. msm_routing_get_port_mixer,
  20633. msm_routing_put_port_mixer),
  20634. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20635. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20636. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20637. msm_routing_get_port_mixer,
  20638. msm_routing_put_port_mixer),
  20639. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20640. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20641. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20642. msm_routing_get_port_mixer,
  20643. msm_routing_put_port_mixer),
  20644. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20645. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20646. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20647. msm_routing_get_port_mixer,
  20648. msm_routing_put_port_mixer),
  20649. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20650. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20651. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20652. msm_routing_get_port_mixer,
  20653. msm_routing_put_port_mixer),
  20654. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20655. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20656. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20657. msm_routing_get_port_mixer,
  20658. msm_routing_put_port_mixer),
  20659. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20660. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20661. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20662. msm_routing_get_port_mixer,
  20663. msm_routing_put_port_mixer),
  20664. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20665. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20666. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20667. msm_routing_get_port_mixer,
  20668. msm_routing_put_port_mixer),
  20669. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20670. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20671. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20672. msm_routing_get_port_mixer,
  20673. msm_routing_put_port_mixer),
  20674. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20675. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20676. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20677. msm_routing_get_port_mixer,
  20678. msm_routing_put_port_mixer),
  20679. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20680. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20681. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20682. msm_routing_get_port_mixer,
  20683. msm_routing_put_port_mixer),
  20684. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20685. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20686. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20687. msm_routing_get_port_mixer,
  20688. msm_routing_put_port_mixer),
  20689. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20690. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20691. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20692. msm_routing_get_port_mixer,
  20693. msm_routing_put_port_mixer),
  20694. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20695. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20696. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20697. msm_routing_get_port_mixer,
  20698. msm_routing_put_port_mixer),
  20699. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20700. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20701. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20702. msm_routing_get_port_mixer,
  20703. msm_routing_put_port_mixer),
  20704. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20705. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20706. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20707. msm_routing_get_port_mixer,
  20708. msm_routing_put_port_mixer),
  20709. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20710. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20711. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20712. msm_routing_get_port_mixer,
  20713. msm_routing_put_port_mixer),
  20714. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20715. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20716. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20717. msm_routing_get_port_mixer,
  20718. msm_routing_put_port_mixer),
  20719. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20720. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20721. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20722. msm_routing_get_port_mixer,
  20723. msm_routing_put_port_mixer),
  20724. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20725. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20726. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20727. msm_routing_get_port_mixer,
  20728. msm_routing_put_port_mixer),
  20729. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20730. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20731. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20732. msm_routing_get_port_mixer,
  20733. msm_routing_put_port_mixer),
  20734. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20735. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20736. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20737. msm_routing_get_port_mixer,
  20738. msm_routing_put_port_mixer),
  20739. };
  20740. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20742. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20743. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20744. msm_routing_get_port_mixer,
  20745. msm_routing_put_port_mixer),
  20746. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20747. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20748. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20749. msm_routing_get_port_mixer,
  20750. msm_routing_put_port_mixer),
  20751. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20752. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20753. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20754. msm_routing_get_port_mixer,
  20755. msm_routing_put_port_mixer),
  20756. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20757. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20758. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20759. msm_routing_get_port_mixer,
  20760. msm_routing_put_port_mixer),
  20761. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20762. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20763. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20764. msm_routing_get_port_mixer,
  20765. msm_routing_put_port_mixer),
  20766. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20767. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20768. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20769. msm_routing_get_port_mixer,
  20770. msm_routing_put_port_mixer),
  20771. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20772. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20773. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20774. msm_routing_get_port_mixer,
  20775. msm_routing_put_port_mixer),
  20776. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20777. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20778. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20779. msm_routing_get_port_mixer,
  20780. msm_routing_put_port_mixer),
  20781. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20782. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20783. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20784. msm_routing_get_port_mixer,
  20785. msm_routing_put_port_mixer),
  20786. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20787. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20788. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20789. msm_routing_get_port_mixer,
  20790. msm_routing_put_port_mixer),
  20791. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20792. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20793. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20794. msm_routing_get_port_mixer,
  20795. msm_routing_put_port_mixer),
  20796. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20797. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20798. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20799. msm_routing_get_port_mixer,
  20800. msm_routing_put_port_mixer),
  20801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20802. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20803. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20804. msm_routing_get_port_mixer,
  20805. msm_routing_put_port_mixer),
  20806. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20807. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20808. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20809. msm_routing_get_port_mixer,
  20810. msm_routing_put_port_mixer),
  20811. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20812. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20813. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20814. msm_routing_get_port_mixer,
  20815. msm_routing_put_port_mixer),
  20816. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20817. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20818. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20819. msm_routing_get_port_mixer,
  20820. msm_routing_put_port_mixer),
  20821. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20822. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20823. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20824. msm_routing_get_port_mixer,
  20825. msm_routing_put_port_mixer),
  20826. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20827. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20828. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20829. msm_routing_get_port_mixer,
  20830. msm_routing_put_port_mixer),
  20831. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20832. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20833. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20834. msm_routing_get_port_mixer,
  20835. msm_routing_put_port_mixer),
  20836. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20837. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20838. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20839. msm_routing_get_port_mixer,
  20840. msm_routing_put_port_mixer),
  20841. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20842. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20843. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20844. msm_routing_get_port_mixer,
  20845. msm_routing_put_port_mixer),
  20846. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20847. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20848. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20849. msm_routing_get_port_mixer,
  20850. msm_routing_put_port_mixer),
  20851. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20852. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20853. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20854. msm_routing_get_port_mixer,
  20855. msm_routing_put_port_mixer),
  20856. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20857. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20858. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20859. msm_routing_get_port_mixer,
  20860. msm_routing_put_port_mixer),
  20861. };
  20862. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20863. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20864. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20865. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20866. msm_routing_get_port_mixer,
  20867. msm_routing_put_port_mixer),
  20868. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20869. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20870. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20871. msm_routing_get_port_mixer,
  20872. msm_routing_put_port_mixer),
  20873. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20874. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20875. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20876. msm_routing_get_port_mixer,
  20877. msm_routing_put_port_mixer),
  20878. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20879. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20880. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20881. msm_routing_get_port_mixer,
  20882. msm_routing_put_port_mixer),
  20883. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20884. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20885. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20886. msm_routing_get_port_mixer,
  20887. msm_routing_put_port_mixer),
  20888. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20889. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20890. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20891. msm_routing_get_port_mixer,
  20892. msm_routing_put_port_mixer),
  20893. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20894. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20895. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20896. msm_routing_get_port_mixer,
  20897. msm_routing_put_port_mixer),
  20898. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20899. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20900. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20901. msm_routing_get_port_mixer,
  20902. msm_routing_put_port_mixer),
  20903. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20904. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20905. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20906. msm_routing_get_port_mixer,
  20907. msm_routing_put_port_mixer),
  20908. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20909. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20910. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20911. msm_routing_get_port_mixer,
  20912. msm_routing_put_port_mixer),
  20913. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20914. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20915. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20916. msm_routing_get_port_mixer,
  20917. msm_routing_put_port_mixer),
  20918. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20919. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20920. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20921. msm_routing_get_port_mixer,
  20922. msm_routing_put_port_mixer),
  20923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20924. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20925. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20926. msm_routing_get_port_mixer,
  20927. msm_routing_put_port_mixer),
  20928. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20929. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20930. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20931. msm_routing_get_port_mixer,
  20932. msm_routing_put_port_mixer),
  20933. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20934. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20935. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20936. msm_routing_get_port_mixer,
  20937. msm_routing_put_port_mixer),
  20938. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20939. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20940. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20941. msm_routing_get_port_mixer,
  20942. msm_routing_put_port_mixer),
  20943. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20944. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20945. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20946. msm_routing_get_port_mixer,
  20947. msm_routing_put_port_mixer),
  20948. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20949. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20950. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20951. msm_routing_get_port_mixer,
  20952. msm_routing_put_port_mixer),
  20953. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20954. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20955. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20956. msm_routing_get_port_mixer,
  20957. msm_routing_put_port_mixer),
  20958. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20959. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20960. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20961. msm_routing_get_port_mixer,
  20962. msm_routing_put_port_mixer),
  20963. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20964. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20965. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20966. msm_routing_get_port_mixer,
  20967. msm_routing_put_port_mixer),
  20968. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20969. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20970. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20971. msm_routing_get_port_mixer,
  20972. msm_routing_put_port_mixer),
  20973. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20974. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20975. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20976. msm_routing_get_port_mixer,
  20977. msm_routing_put_port_mixer),
  20978. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20979. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20980. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20981. msm_routing_get_port_mixer,
  20982. msm_routing_put_port_mixer),
  20983. };
  20984. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20986. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20987. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20988. msm_routing_get_port_mixer,
  20989. msm_routing_put_port_mixer),
  20990. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20991. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20992. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20993. msm_routing_get_port_mixer,
  20994. msm_routing_put_port_mixer),
  20995. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20996. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20997. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20998. msm_routing_get_port_mixer,
  20999. msm_routing_put_port_mixer),
  21000. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21001. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21002. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  21003. msm_routing_get_port_mixer,
  21004. msm_routing_put_port_mixer),
  21005. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  21006. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21007. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  21008. msm_routing_get_port_mixer,
  21009. msm_routing_put_port_mixer),
  21010. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  21011. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21012. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  21013. msm_routing_get_port_mixer,
  21014. msm_routing_put_port_mixer),
  21015. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21016. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21017. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  21018. msm_routing_get_port_mixer,
  21019. msm_routing_put_port_mixer),
  21020. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21021. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21022. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  21023. msm_routing_get_port_mixer,
  21024. msm_routing_put_port_mixer),
  21025. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21026. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21027. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  21028. msm_routing_get_port_mixer,
  21029. msm_routing_put_port_mixer),
  21030. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  21031. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21032. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  21033. msm_routing_get_port_mixer,
  21034. msm_routing_put_port_mixer),
  21035. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  21036. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21037. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  21038. msm_routing_get_port_mixer,
  21039. msm_routing_put_port_mixer),
  21040. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  21041. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21042. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  21043. msm_routing_get_port_mixer,
  21044. msm_routing_put_port_mixer),
  21045. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  21046. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21047. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  21048. msm_routing_get_port_mixer,
  21049. msm_routing_put_port_mixer),
  21050. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  21051. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21052. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  21053. msm_routing_get_port_mixer,
  21054. msm_routing_put_port_mixer),
  21055. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  21056. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21057. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  21058. msm_routing_get_port_mixer,
  21059. msm_routing_put_port_mixer),
  21060. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  21061. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21062. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  21063. msm_routing_get_port_mixer,
  21064. msm_routing_put_port_mixer),
  21065. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21066. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21067. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  21068. msm_routing_get_port_mixer,
  21069. msm_routing_put_port_mixer),
  21070. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  21071. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21072. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  21073. msm_routing_get_port_mixer,
  21074. msm_routing_put_port_mixer),
  21075. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  21076. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21077. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  21078. msm_routing_get_port_mixer,
  21079. msm_routing_put_port_mixer),
  21080. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  21081. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21082. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  21083. msm_routing_get_port_mixer,
  21084. msm_routing_put_port_mixer),
  21085. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  21086. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21087. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  21088. msm_routing_get_port_mixer,
  21089. msm_routing_put_port_mixer),
  21090. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  21091. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21092. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  21093. msm_routing_get_port_mixer,
  21094. msm_routing_put_port_mixer),
  21095. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  21096. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21097. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  21098. msm_routing_get_port_mixer,
  21099. msm_routing_put_port_mixer),
  21100. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  21101. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21102. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  21103. msm_routing_get_port_mixer,
  21104. msm_routing_put_port_mixer),
  21105. };
  21106. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  21107. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21108. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21109. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  21110. msm_routing_get_port_mixer,
  21111. msm_routing_put_port_mixer),
  21112. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21113. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21114. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  21115. msm_routing_get_port_mixer,
  21116. msm_routing_put_port_mixer),
  21117. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21118. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21119. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  21120. msm_routing_get_port_mixer,
  21121. msm_routing_put_port_mixer),
  21122. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21123. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21124. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  21125. msm_routing_get_port_mixer,
  21126. msm_routing_put_port_mixer),
  21127. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  21128. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21129. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  21130. msm_routing_get_port_mixer,
  21131. msm_routing_put_port_mixer),
  21132. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  21133. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21134. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  21135. msm_routing_get_port_mixer,
  21136. msm_routing_put_port_mixer),
  21137. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21138. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21139. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  21140. msm_routing_get_port_mixer,
  21141. msm_routing_put_port_mixer),
  21142. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21143. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21144. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  21145. msm_routing_get_port_mixer,
  21146. msm_routing_put_port_mixer),
  21147. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21148. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21149. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  21150. msm_routing_get_port_mixer,
  21151. msm_routing_put_port_mixer),
  21152. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  21153. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21154. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  21155. msm_routing_get_port_mixer,
  21156. msm_routing_put_port_mixer),
  21157. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  21158. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21159. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  21160. msm_routing_get_port_mixer,
  21161. msm_routing_put_port_mixer),
  21162. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  21163. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21164. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  21165. msm_routing_get_port_mixer,
  21166. msm_routing_put_port_mixer),
  21167. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  21168. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21169. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  21170. msm_routing_get_port_mixer,
  21171. msm_routing_put_port_mixer),
  21172. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  21173. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21174. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  21175. msm_routing_get_port_mixer,
  21176. msm_routing_put_port_mixer),
  21177. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  21178. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21179. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  21180. msm_routing_get_port_mixer,
  21181. msm_routing_put_port_mixer),
  21182. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  21183. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21184. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  21185. msm_routing_get_port_mixer,
  21186. msm_routing_put_port_mixer),
  21187. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21188. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21189. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  21190. msm_routing_get_port_mixer,
  21191. msm_routing_put_port_mixer),
  21192. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  21193. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21194. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  21195. msm_routing_get_port_mixer,
  21196. msm_routing_put_port_mixer),
  21197. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  21198. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21199. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  21200. msm_routing_get_port_mixer,
  21201. msm_routing_put_port_mixer),
  21202. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  21203. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21204. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  21205. msm_routing_get_port_mixer,
  21206. msm_routing_put_port_mixer),
  21207. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  21208. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21209. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  21210. msm_routing_get_port_mixer,
  21211. msm_routing_put_port_mixer),
  21212. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  21213. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21214. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  21215. msm_routing_get_port_mixer,
  21216. msm_routing_put_port_mixer),
  21217. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  21218. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21219. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  21220. msm_routing_get_port_mixer,
  21221. msm_routing_put_port_mixer),
  21222. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  21223. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21224. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  21225. msm_routing_get_port_mixer,
  21226. msm_routing_put_port_mixer),
  21227. };
  21228. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  21229. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  21230. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21231. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  21232. msm_routing_get_port_mixer,
  21233. msm_routing_put_port_mixer),
  21234. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  21235. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21236. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  21237. msm_routing_get_port_mixer,
  21238. msm_routing_put_port_mixer),
  21239. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  21240. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21241. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  21242. msm_routing_get_port_mixer,
  21243. msm_routing_put_port_mixer),
  21244. };
  21245. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  21246. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21247. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21248. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21249. msm_routing_put_port_mixer),
  21250. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21251. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21252. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21253. msm_routing_put_port_mixer),
  21254. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21255. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21256. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21257. msm_routing_put_port_mixer),
  21258. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21259. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21260. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21261. msm_routing_put_port_mixer),
  21262. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21263. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21264. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21265. msm_routing_put_port_mixer),
  21266. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21267. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21268. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21269. msm_routing_put_port_mixer),
  21270. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21271. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21272. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21273. msm_routing_put_port_mixer),
  21274. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21275. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21276. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21277. msm_routing_put_port_mixer),
  21278. };
  21279. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  21280. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21281. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21282. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21283. msm_routing_put_port_mixer),
  21284. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21285. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21286. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21287. msm_routing_put_port_mixer),
  21288. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21289. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21290. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21291. msm_routing_put_port_mixer),
  21292. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21293. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21294. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21295. msm_routing_put_port_mixer),
  21296. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21297. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21298. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21299. msm_routing_put_port_mixer),
  21300. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21301. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21302. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21303. msm_routing_put_port_mixer),
  21304. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21305. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21306. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21307. msm_routing_put_port_mixer),
  21308. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21309. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21310. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21311. msm_routing_put_port_mixer),
  21312. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21313. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21314. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21315. msm_routing_put_port_mixer),
  21316. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21317. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21318. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21319. msm_routing_put_port_mixer),
  21320. };
  21321. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21322. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21323. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21324. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21325. msm_routing_put_listen_mixer),
  21326. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21327. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21328. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21329. msm_routing_put_listen_mixer),
  21330. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21331. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21332. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21333. msm_routing_put_listen_mixer),
  21334. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21335. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21336. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21337. msm_routing_put_listen_mixer),
  21338. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21339. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21340. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21341. msm_routing_put_listen_mixer),
  21342. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21343. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21344. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21345. msm_routing_put_listen_mixer),
  21346. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21347. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21348. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21349. msm_routing_put_listen_mixer),
  21350. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21351. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21352. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21353. msm_routing_put_listen_mixer),
  21354. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21355. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21356. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21357. msm_routing_put_listen_mixer),
  21358. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21359. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21360. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21361. msm_routing_put_listen_mixer),
  21362. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21363. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21364. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21365. msm_routing_put_listen_mixer),
  21366. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21367. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21368. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21369. msm_routing_put_listen_mixer),
  21370. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21371. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21372. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21373. msm_routing_put_listen_mixer),
  21374. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21375. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21376. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21377. msm_routing_put_listen_mixer),
  21378. };
  21379. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21380. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21381. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21382. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21383. msm_routing_put_listen_mixer),
  21384. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21385. SND_SOC_NOPM,
  21386. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21387. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21388. msm_routing_put_listen_mixer),
  21389. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21390. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21391. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21392. msm_routing_put_listen_mixer),
  21393. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21394. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21395. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21396. msm_routing_put_listen_mixer),
  21397. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21398. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21399. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21400. msm_routing_put_listen_mixer),
  21401. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21402. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21403. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21404. msm_routing_put_listen_mixer),
  21405. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21406. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21407. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21408. msm_routing_put_listen_mixer),
  21409. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21410. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21411. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21412. msm_routing_put_listen_mixer),
  21413. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21414. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21415. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21416. msm_routing_put_listen_mixer),
  21417. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21418. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21419. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21420. msm_routing_put_listen_mixer),
  21421. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21422. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21423. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21424. msm_routing_put_listen_mixer),
  21425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21427. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21428. msm_routing_put_listen_mixer),
  21429. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21430. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21431. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21432. msm_routing_put_listen_mixer),
  21433. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21434. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21435. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21436. msm_routing_put_listen_mixer),
  21437. };
  21438. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21439. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21440. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21441. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21442. msm_routing_put_listen_mixer),
  21443. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21444. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21445. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21446. msm_routing_put_listen_mixer),
  21447. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21448. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21449. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21450. msm_routing_put_listen_mixer),
  21451. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21452. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21453. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21454. msm_routing_put_listen_mixer),
  21455. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21456. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21457. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21458. msm_routing_put_listen_mixer),
  21459. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21460. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21461. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21462. msm_routing_put_listen_mixer),
  21463. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21464. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21465. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21466. msm_routing_put_listen_mixer),
  21467. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21468. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21469. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21470. msm_routing_put_listen_mixer),
  21471. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21472. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21473. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21474. msm_routing_put_listen_mixer),
  21475. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21476. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21477. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21478. msm_routing_put_listen_mixer),
  21479. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21480. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21481. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21482. msm_routing_put_listen_mixer),
  21483. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21484. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21485. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21486. msm_routing_put_listen_mixer),
  21487. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21488. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21489. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21490. msm_routing_put_listen_mixer),
  21491. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21492. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21493. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21494. msm_routing_put_listen_mixer),
  21495. };
  21496. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21497. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21498. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21499. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21500. msm_routing_put_listen_mixer),
  21501. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21502. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21503. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21504. msm_routing_put_listen_mixer),
  21505. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21506. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21507. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21508. msm_routing_put_listen_mixer),
  21509. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21510. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21511. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21512. msm_routing_put_listen_mixer),
  21513. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21514. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21515. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21516. msm_routing_put_listen_mixer),
  21517. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21518. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21519. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21520. msm_routing_put_listen_mixer),
  21521. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21522. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21523. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21524. msm_routing_put_listen_mixer),
  21525. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21526. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21527. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21528. msm_routing_put_listen_mixer),
  21529. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21530. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21531. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21532. msm_routing_put_listen_mixer),
  21533. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21534. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21535. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21536. msm_routing_put_listen_mixer),
  21537. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21538. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21539. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21540. msm_routing_put_listen_mixer),
  21541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21543. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21544. msm_routing_put_listen_mixer),
  21545. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21546. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21547. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21548. msm_routing_put_listen_mixer),
  21549. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21550. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21551. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21552. msm_routing_put_listen_mixer),
  21553. };
  21554. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21555. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21556. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21557. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21558. msm_routing_put_listen_mixer),
  21559. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21560. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21561. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21562. msm_routing_put_listen_mixer),
  21563. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21564. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21565. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21566. msm_routing_put_listen_mixer),
  21567. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21568. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21569. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21570. msm_routing_put_listen_mixer),
  21571. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21572. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21573. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21574. msm_routing_put_listen_mixer),
  21575. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21576. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21577. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21578. msm_routing_put_listen_mixer),
  21579. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21580. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21581. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21582. msm_routing_put_listen_mixer),
  21583. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21584. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21585. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21586. msm_routing_put_listen_mixer),
  21587. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21588. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21589. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21590. msm_routing_put_listen_mixer),
  21591. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21592. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21593. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21594. msm_routing_put_listen_mixer),
  21595. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21596. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21597. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21598. msm_routing_put_listen_mixer),
  21599. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21600. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21601. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21602. msm_routing_put_listen_mixer),
  21603. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21604. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21605. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21606. msm_routing_put_listen_mixer),
  21607. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21608. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21609. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21610. msm_routing_put_listen_mixer),
  21611. };
  21612. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21613. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21614. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21615. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21616. msm_routing_put_listen_mixer),
  21617. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21618. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21619. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21620. msm_routing_put_listen_mixer),
  21621. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21622. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21623. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21624. msm_routing_put_listen_mixer),
  21625. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21626. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21627. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21628. msm_routing_put_listen_mixer),
  21629. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21630. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21631. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21632. msm_routing_put_listen_mixer),
  21633. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21634. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21635. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21636. msm_routing_put_listen_mixer),
  21637. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21638. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21639. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21640. msm_routing_put_listen_mixer),
  21641. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21642. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21643. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21644. msm_routing_put_listen_mixer),
  21645. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21646. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21647. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21648. msm_routing_put_listen_mixer),
  21649. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21650. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21651. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21652. msm_routing_put_listen_mixer),
  21653. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21654. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21655. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21656. msm_routing_put_listen_mixer),
  21657. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21658. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21659. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21660. msm_routing_put_listen_mixer),
  21661. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21662. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21663. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21664. msm_routing_put_listen_mixer),
  21665. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21666. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21667. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21668. msm_routing_put_listen_mixer),
  21669. };
  21670. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21671. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21672. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21673. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21674. msm_routing_put_listen_mixer),
  21675. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21676. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21677. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21678. msm_routing_put_listen_mixer),
  21679. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21680. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21681. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21682. msm_routing_put_listen_mixer),
  21683. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21684. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21685. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21686. msm_routing_put_listen_mixer),
  21687. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21688. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21689. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21690. msm_routing_put_listen_mixer),
  21691. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21692. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21693. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21694. msm_routing_put_listen_mixer),
  21695. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21696. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21697. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21698. msm_routing_put_listen_mixer),
  21699. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21700. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21701. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21702. msm_routing_put_listen_mixer),
  21703. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21704. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21705. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21706. msm_routing_put_listen_mixer),
  21707. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21708. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21709. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21710. msm_routing_put_listen_mixer),
  21711. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21712. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21713. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21714. msm_routing_put_listen_mixer),
  21715. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21716. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21717. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21718. msm_routing_put_listen_mixer),
  21719. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21720. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21721. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21722. msm_routing_put_listen_mixer),
  21723. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21724. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21725. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21726. msm_routing_put_listen_mixer),
  21727. };
  21728. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21729. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21730. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21731. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21732. msm_routing_put_listen_mixer),
  21733. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21734. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21735. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21736. msm_routing_put_listen_mixer),
  21737. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21738. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21739. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21740. msm_routing_put_listen_mixer),
  21741. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21742. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21743. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21744. msm_routing_put_listen_mixer),
  21745. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21746. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21747. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21748. msm_routing_put_listen_mixer),
  21749. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21750. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21751. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21752. msm_routing_put_listen_mixer),
  21753. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21754. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21755. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21756. msm_routing_put_listen_mixer),
  21757. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21758. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21759. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21760. msm_routing_put_listen_mixer),
  21761. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21762. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21763. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21764. msm_routing_put_listen_mixer),
  21765. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21766. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21767. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21768. msm_routing_put_listen_mixer),
  21769. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21770. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21771. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21772. msm_routing_put_listen_mixer),
  21773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21775. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21776. msm_routing_put_listen_mixer),
  21777. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21778. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21779. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21780. msm_routing_put_listen_mixer),
  21781. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21782. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21783. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21784. msm_routing_put_listen_mixer),
  21785. };
  21786. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21787. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21788. 0, 1, 0, msm_routing_get_switch_mixer,
  21789. msm_routing_put_switch_mixer);
  21790. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21791. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21792. 0, 1, 0, msm_routing_get_switch_mixer,
  21793. msm_routing_put_switch_mixer);
  21794. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21795. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21796. 0, 1, 0, msm_routing_get_switch_mixer,
  21797. msm_routing_put_switch_mixer);
  21798. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21799. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21800. 0, 1, 0, msm_routing_get_switch_mixer,
  21801. msm_routing_put_switch_mixer);
  21802. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21803. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21804. 0, 1, 0, msm_routing_get_switch_mixer,
  21805. msm_routing_put_switch_mixer);
  21806. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21807. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21808. 0, 1, 0, msm_routing_get_switch_mixer,
  21809. msm_routing_put_switch_mixer);
  21810. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21811. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21812. 0, 1, 0, msm_routing_get_switch_mixer,
  21813. msm_routing_put_switch_mixer);
  21814. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21815. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21816. 0, 1, 0, msm_routing_get_switch_mixer,
  21817. msm_routing_put_switch_mixer);
  21818. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21819. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21820. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21821. msm_routing_put_fm_pcmrx_switch_mixer);
  21822. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21823. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21824. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21825. msm_routing_put_int0_mi2s_switch_mixer);
  21826. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21827. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21828. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21829. msm_routing_put_int4_mi2s_switch_mixer);
  21830. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21831. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21832. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21833. msm_routing_put_pri_mi2s_switch_mixer);
  21834. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21835. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21836. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21837. msm_routing_put_sec_mi2s_switch_mixer);
  21838. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21839. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21840. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21841. msm_routing_put_tert_mi2s_switch_mixer);
  21842. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21843. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21844. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21845. msm_routing_put_quat_mi2s_switch_mixer);
  21846. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21847. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21848. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21849. msm_routing_put_quin_mi2s_switch_mixer);
  21850. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21851. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21852. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21853. msm_routing_put_sen_mi2s_switch_mixer);
  21854. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21855. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21856. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21857. msm_routing_put_hfp_switch_mixer);
  21858. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21859. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21860. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21861. msm_routing_put_hfp_switch_mixer);
  21862. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21863. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21864. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21865. msm_routing_put_hfp_switch_mixer);
  21866. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21867. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21868. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21869. msm_routing_put_hfp_switch_mixer);
  21870. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21871. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21872. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21873. msm_routing_put_usb_switch_mixer);
  21874. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21875. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21876. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21877. msm_routing_a2dp_switch_mixer_put);
  21878. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21879. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21880. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21881. msm_routing_sco_switch_mixer_put);
  21882. static const struct soc_enum lsm_port_enum =
  21883. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21884. static const char * const lsm_func_text[] = {
  21885. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21886. };
  21887. static const struct soc_enum lsm_func_enum =
  21888. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21889. static const struct snd_kcontrol_new lsm_controls[] = {
  21890. /* kcontrol of lsm_function */
  21891. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21892. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21893. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21894. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21895. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21896. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21897. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21898. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21899. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21900. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21901. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21902. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21903. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21904. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21905. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21906. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21907. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21908. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21909. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21910. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21911. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21912. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21913. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21914. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21915. /* kcontrol of lsm_port */
  21916. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21917. msm_routing_lsm_port_get,
  21918. msm_routing_lsm_port_put),
  21919. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21920. msm_routing_lsm_port_get,
  21921. msm_routing_lsm_port_put),
  21922. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21923. msm_routing_lsm_port_get,
  21924. msm_routing_lsm_port_put),
  21925. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21926. msm_routing_lsm_port_get,
  21927. msm_routing_lsm_port_put),
  21928. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21929. msm_routing_lsm_port_get,
  21930. msm_routing_lsm_port_put),
  21931. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21932. msm_routing_lsm_port_get,
  21933. msm_routing_lsm_port_put),
  21934. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21935. msm_routing_lsm_port_get,
  21936. msm_routing_lsm_port_put),
  21937. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21938. msm_routing_lsm_port_get,
  21939. msm_routing_lsm_port_put),
  21940. };
  21941. static const char * const aanc_slim_0_rx_text[] = {
  21942. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21943. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21944. };
  21945. static const struct soc_enum aanc_slim_0_rx_enum =
  21946. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21947. aanc_slim_0_rx_text);
  21948. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21949. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21950. msm_routing_slim_0_rx_aanc_mux_get,
  21951. msm_routing_slim_0_rx_aanc_mux_put)
  21952. };
  21953. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21954. struct snd_ctl_elem_value *ucontrol)
  21955. {
  21956. ucontrol->value.integer.value[0] = aanc_level;
  21957. return 0;
  21958. }
  21959. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21960. struct snd_ctl_elem_value *ucontrol)
  21961. {
  21962. int ret = 0;
  21963. mutex_lock(&routing_lock);
  21964. aanc_level = ucontrol->value.integer.value[0];
  21965. pr_debug("%s: value: %ld\n",
  21966. __func__, ucontrol->value.integer.value[0]);
  21967. ret = afe_set_aanc_noise_level(aanc_level);
  21968. mutex_unlock(&routing_lock);
  21969. return ret;
  21970. }
  21971. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21972. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21973. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21974. };
  21975. static int msm_routing_get_stereo_to_custom_stereo_control(
  21976. struct snd_kcontrol *kcontrol,
  21977. struct snd_ctl_elem_value *ucontrol)
  21978. {
  21979. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21980. return 0;
  21981. }
  21982. static int msm_routing_put_stereo_to_custom_stereo_control(
  21983. struct snd_kcontrol *kcontrol,
  21984. struct snd_ctl_elem_value *ucontrol)
  21985. {
  21986. int flag = 0, i = 0, rc = 0, idx = 0;
  21987. int be_index = 0, port_id, topo_id;
  21988. unsigned int session_id = 0;
  21989. uint16_t op_FL_ip_FL_weight = 0;
  21990. uint16_t op_FL_ip_FR_weight = 0;
  21991. uint16_t op_FR_ip_FL_weight = 0;
  21992. uint16_t op_FR_ip_FR_weight = 0;
  21993. flag = ucontrol->value.integer.value[0];
  21994. pr_debug("%s E flag %d\n", __func__, flag);
  21995. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21996. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21997. __func__, is_custom_stereo_on, flag);
  21998. return 0;
  21999. }
  22000. is_custom_stereo_on = flag ? true : false;
  22001. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  22002. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  22003. port_id = msm_bedais[be_index].port_id;
  22004. if (!msm_bedais[be_index].active)
  22005. continue;
  22006. if ((port_id != SLIMBUS_0_RX) &&
  22007. (port_id != RT_PROXY_PORT_001_RX) &&
  22008. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  22009. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  22010. continue;
  22011. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  22012. MSM_FRONTEND_DAI_MM_SIZE) {
  22013. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  22014. LEGACY_PCM_MODE)
  22015. goto skip_send_custom_stereo;
  22016. session_id =
  22017. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  22018. if (is_custom_stereo_on) {
  22019. op_FL_ip_FL_weight =
  22020. Q14_GAIN_ZERO_POINT_FIVE;
  22021. op_FL_ip_FR_weight =
  22022. Q14_GAIN_ZERO_POINT_FIVE;
  22023. op_FR_ip_FL_weight =
  22024. Q14_GAIN_ZERO_POINT_FIVE;
  22025. op_FR_ip_FR_weight =
  22026. Q14_GAIN_ZERO_POINT_FIVE;
  22027. } else {
  22028. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  22029. op_FL_ip_FR_weight = 0;
  22030. op_FR_ip_FL_weight = 0;
  22031. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  22032. }
  22033. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22034. unsigned long copp =
  22035. session_copp_map[i]
  22036. [SESSION_TYPE_RX][be_index];
  22037. if (!test_bit(idx, &copp))
  22038. goto skip_send_custom_stereo;
  22039. topo_id = adm_get_topology_for_port_copp_idx(
  22040. msm_bedais[be_index].port_id, idx);
  22041. if (topo_id < 0)
  22042. pr_debug("%s:Err:custom stereo topo %d",
  22043. __func__, topo_id);
  22044. pr_debug("idx %d\n", idx);
  22045. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  22046. rc = msm_ds2_dap_set_custom_stereo_onoff
  22047. (msm_bedais[be_index].port_id,
  22048. idx, is_custom_stereo_on);
  22049. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  22050. rc = dolby_dap_set_custom_stereo_onoff(
  22051. msm_bedais[be_index].port_id,
  22052. idx, is_custom_stereo_on);
  22053. else
  22054. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  22055. (msm_bedais[be_index].port_id,
  22056. idx, session_id,
  22057. op_FL_ip_FL_weight,
  22058. op_FL_ip_FR_weight,
  22059. op_FR_ip_FL_weight,
  22060. op_FR_ip_FR_weight);
  22061. if (rc < 0)
  22062. skip_send_custom_stereo:
  22063. pr_err("%s: err setting custom stereo\n",
  22064. __func__);
  22065. }
  22066. }
  22067. }
  22068. return 0;
  22069. }
  22070. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  22071. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  22072. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  22073. msm_routing_put_stereo_to_custom_stereo_control),
  22074. };
  22075. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22076. struct snd_ctl_elem_value *ucontrol)
  22077. {
  22078. return 0;
  22079. }
  22080. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22081. struct snd_ctl_elem_value *ucontrol)
  22082. {
  22083. int i = 0, j;
  22084. int num_app_types = ucontrol->value.integer.value[i++];
  22085. pr_debug("%s\n", __func__);
  22086. memset(app_type_cfg, 0, MAX_APP_TYPES*
  22087. sizeof(struct msm_pcm_routing_app_type_data));
  22088. if (num_app_types > MAX_APP_TYPES) {
  22089. pr_err("%s: number of app types exceed the max supported\n",
  22090. __func__);
  22091. return -EINVAL;
  22092. }
  22093. for (j = 0; j < num_app_types; j++) {
  22094. app_type_cfg[j].app_type =
  22095. ucontrol->value.integer.value[i++];
  22096. app_type_cfg[j].sample_rate =
  22097. ucontrol->value.integer.value[i++];
  22098. app_type_cfg[j].bit_width =
  22099. ucontrol->value.integer.value[i++];
  22100. }
  22101. return 0;
  22102. }
  22103. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  22104. struct snd_ctl_elem_value *ucontrol)
  22105. {
  22106. int j, fe_id, be_id, port_type;
  22107. int ret = 0;
  22108. unsigned long copp;
  22109. struct msm_pcm_routing_bdai_data *bedai;
  22110. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22111. SESSION_TYPE_RX;
  22112. int app_type = ucontrol->value.integer.value[1];
  22113. int gain = (ucontrol->value.integer.value[2] +
  22114. ucontrol->value.integer.value[3])/2;
  22115. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22116. MSM_AFE_PORT_TYPE_TX;
  22117. mutex_lock(&routing_lock);
  22118. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22119. if (is_be_dai_extproc(be_id))
  22120. continue;
  22121. bedai = &msm_bedais[be_id];
  22122. if (afe_get_port_type(bedai->port_id) != port_type)
  22123. continue;
  22124. if (!bedai->active)
  22125. continue;
  22126. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22127. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22128. continue;
  22129. if (app_type !=
  22130. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22131. continue;
  22132. copp = session_copp_map[fe_id][dir][be_id];
  22133. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  22134. if (!test_bit(j, &copp))
  22135. continue;
  22136. ret |= adm_set_volume(bedai->port_id, j, gain);
  22137. }
  22138. }
  22139. }
  22140. mutex_unlock(&routing_lock);
  22141. return ret ? -EINVAL : 0;
  22142. }
  22143. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  22144. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  22145. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  22146. msm_routing_put_app_type_cfg_control),
  22147. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  22148. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  22149. };
  22150. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  22151. struct snd_ctl_elem_value *ucontrol)
  22152. {
  22153. int copp_idx, fe_id, be_id, port_type;
  22154. int ret = 0;
  22155. unsigned long copp;
  22156. struct msm_pcm_routing_bdai_data *bedai;
  22157. u8 *packed_params = NULL;
  22158. struct param_hdr_v3 param_hdr;
  22159. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  22160. sizeof(uint32_t));
  22161. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22162. SESSION_TYPE_RX;
  22163. int app_type = ucontrol->value.integer.value[1];
  22164. int module_id = ucontrol->value.integer.value[2];
  22165. int instance_id = ucontrol->value.integer.value[3];
  22166. int param_id = ucontrol->value.integer.value[4];
  22167. int param_value = ucontrol->value.integer.value[5];
  22168. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22169. MSM_AFE_PORT_TYPE_TX;
  22170. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  22171. __func__, app_type, module_id,
  22172. instance_id, param_id, param_value);
  22173. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  22174. if (!packed_params)
  22175. return -ENOMEM;
  22176. memset(&param_hdr, 0, sizeof(param_hdr));
  22177. param_hdr.module_id = module_id;
  22178. param_hdr.instance_id = instance_id;
  22179. param_hdr.param_id = param_id;
  22180. param_hdr.param_size = sizeof(uint32_t);
  22181. packed_param_size = 0;
  22182. mutex_lock(&routing_lock);
  22183. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22184. if (is_be_dai_extproc(be_id))
  22185. continue;
  22186. bedai = &msm_bedais[be_id];
  22187. if (afe_get_port_type(bedai->port_id) != port_type)
  22188. continue;
  22189. if (!bedai->active)
  22190. continue;
  22191. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22192. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22193. continue;
  22194. if (app_type !=
  22195. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22196. continue;
  22197. copp = session_copp_map[fe_id][dir][be_id];
  22198. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  22199. copp_idx++) {
  22200. if (!test_bit(copp_idx, &copp))
  22201. continue;
  22202. ret = q6common_pack_pp_params(packed_params,
  22203. &param_hdr,
  22204. (u8 *) &param_value,
  22205. &packed_param_size);
  22206. if (ret) {
  22207. pr_err("%s: Failed to pack params, error %d\n",
  22208. __func__, ret);
  22209. goto done;
  22210. }
  22211. ret = adm_set_pp_params(bedai->port_id,
  22212. copp_idx, NULL,
  22213. packed_params,
  22214. packed_param_size);
  22215. if (ret) {
  22216. pr_err("%s: Setting param failed with err=%d\n",
  22217. __func__, ret);
  22218. ret = -EINVAL;
  22219. goto done;
  22220. }
  22221. }
  22222. }
  22223. }
  22224. done:
  22225. mutex_unlock(&routing_lock);
  22226. kfree(packed_params);
  22227. return ret;
  22228. }
  22229. static const struct snd_kcontrol_new module_cfg_controls[] = {
  22230. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  22231. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  22232. };
  22233. static int msm_routing_get_lsm_app_type_cfg_control(
  22234. struct snd_kcontrol *kcontrol,
  22235. struct snd_ctl_elem_value *ucontrol)
  22236. {
  22237. int shift = ((struct soc_multi_mixer_control *)
  22238. kcontrol->private_value)->shift;
  22239. int i = 0, j = 0;
  22240. mutex_lock(&routing_lock);
  22241. ucontrol->value.integer.value[i] = num_app_cfg_types;
  22242. for (j = 0; j < num_app_cfg_types; ++j) {
  22243. ucontrol->value.integer.value[++i] =
  22244. lsm_app_type_cfg[j].app_type;
  22245. ucontrol->value.integer.value[++i] =
  22246. lsm_app_type_cfg[j].sample_rate;
  22247. ucontrol->value.integer.value[++i] =
  22248. lsm_app_type_cfg[j].bit_width;
  22249. if (shift == 1)
  22250. ucontrol->value.integer.value[++i] =
  22251. lsm_app_type_cfg[j].num_out_channels;
  22252. }
  22253. mutex_unlock(&routing_lock);
  22254. return 0;
  22255. }
  22256. static int msm_routing_put_lsm_app_type_cfg_control(
  22257. struct snd_kcontrol *kcontrol,
  22258. struct snd_ctl_elem_value *ucontrol)
  22259. {
  22260. int shift = ((struct soc_multi_mixer_control *)
  22261. kcontrol->private_value)->shift;
  22262. int i = 0, j;
  22263. mutex_lock(&routing_lock);
  22264. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  22265. pr_err("%s: number of app types exceed the max supported\n",
  22266. __func__);
  22267. mutex_unlock(&routing_lock);
  22268. return -EINVAL;
  22269. }
  22270. num_app_cfg_types = ucontrol->value.integer.value[i++];
  22271. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  22272. sizeof(struct msm_pcm_routing_app_type_data));
  22273. for (j = 0; j < num_app_cfg_types; j++) {
  22274. lsm_app_type_cfg[j].app_type =
  22275. ucontrol->value.integer.value[i++];
  22276. lsm_app_type_cfg[j].sample_rate =
  22277. ucontrol->value.integer.value[i++];
  22278. lsm_app_type_cfg[j].bit_width =
  22279. ucontrol->value.integer.value[i++];
  22280. /* Shift of 1 indicates this is V2 mixer control */
  22281. if (shift == 1)
  22282. lsm_app_type_cfg[j].num_out_channels =
  22283. ucontrol->value.integer.value[i++];
  22284. }
  22285. mutex_unlock(&routing_lock);
  22286. return 0;
  22287. }
  22288. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  22289. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  22290. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22291. msm_routing_put_lsm_app_type_cfg_control),
  22292. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  22293. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22294. msm_routing_put_lsm_app_type_cfg_control),
  22295. };
  22296. static int msm_routing_get_use_ds1_or_ds2_control(
  22297. struct snd_kcontrol *kcontrol,
  22298. struct snd_ctl_elem_value *ucontrol)
  22299. {
  22300. ucontrol->value.integer.value[0] = is_ds2_on;
  22301. return 0;
  22302. }
  22303. static int msm_routing_put_use_ds1_or_ds2_control(
  22304. struct snd_kcontrol *kcontrol,
  22305. struct snd_ctl_elem_value *ucontrol)
  22306. {
  22307. is_ds2_on = ucontrol->value.integer.value[0];
  22308. return 0;
  22309. }
  22310. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  22311. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  22312. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  22313. msm_routing_put_use_ds1_or_ds2_control),
  22314. };
  22315. static int msm_routing_get_hifi_filter_control(
  22316. struct snd_kcontrol *kcontrol,
  22317. struct snd_ctl_elem_value *ucontrol)
  22318. {
  22319. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22320. return 0;
  22321. }
  22322. static int msm_routing_put_hifi_filter_control(
  22323. struct snd_kcontrol *kcontrol,
  22324. struct snd_ctl_elem_value *ucontrol)
  22325. {
  22326. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22327. return 0;
  22328. }
  22329. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22330. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22331. 1, 0, msm_routing_get_hifi_filter_control,
  22332. msm_routing_put_hifi_filter_control),
  22333. };
  22334. static int msm_routing_get_ffecns_freeze_event_control(
  22335. struct snd_kcontrol *kcontrol,
  22336. struct snd_ctl_elem_value *ucontrol)
  22337. {
  22338. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22339. return 0;
  22340. }
  22341. static int msm_routing_put_ffecns_freeze_event_control(
  22342. struct snd_kcontrol *kcontrol,
  22343. struct snd_ctl_elem_value *ucontrol)
  22344. {
  22345. int ret = -EINVAL;
  22346. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22347. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22348. if (ret)
  22349. pr_err("%s: failed to set ffecns imc event to%d\n",
  22350. __func__, ffecns_freeze_event);
  22351. return ret;
  22352. }
  22353. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22354. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22355. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22356. msm_routing_put_ffecns_freeze_event_control),
  22357. };
  22358. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22359. struct snd_ctl_elem_value *ucontrol) {
  22360. int rc = 0;
  22361. int be_idx = 0;
  22362. char *param_value;
  22363. int *update_param_value;
  22364. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22365. struct param_hdr_v3 param_hdr;
  22366. param_value = kzalloc(param_size, GFP_KERNEL);
  22367. if (!param_value)
  22368. return -ENOMEM;
  22369. memset(&param_hdr, 0, sizeof(param_hdr));
  22370. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22371. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22372. break;
  22373. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22374. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22375. param_hdr.instance_id = INSTANCE_ID_0;
  22376. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22377. param_hdr.param_size = param_size;
  22378. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22379. NULL, &param_hdr, (u8 *) param_value);
  22380. if (rc) {
  22381. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22382. kfree(param_value);
  22383. return -EINVAL;
  22384. }
  22385. update_param_value = (int *)param_value;
  22386. ucontrol->value.integer.value[0] = update_param_value[0];
  22387. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22388. __func__, update_param_value[0]);
  22389. }
  22390. kfree(param_value);
  22391. return 0;
  22392. }
  22393. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22394. struct snd_ctl_elem_value *ucontrol)
  22395. {
  22396. voc_session_id = ucontrol->value.integer.value[0];
  22397. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22398. return 0;
  22399. }
  22400. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22401. struct snd_ctl_elem_value *ucontrol)
  22402. {
  22403. ucontrol->value.integer.value[0] = voc_session_id;
  22404. return 0;
  22405. }
  22406. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22407. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22408. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22409. msm_voc_session_id_put),
  22410. };
  22411. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22412. struct snd_ctl_elem_info *uinfo)
  22413. {
  22414. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22415. uinfo->count = sizeof(struct sound_focus_param);
  22416. return 0;
  22417. }
  22418. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22419. struct snd_ctl_elem_value *ucontrol)
  22420. {
  22421. int ret = 0;
  22422. struct sound_focus_param soundFocusData;
  22423. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22424. sizeof(struct sound_focus_param));
  22425. ret = voc_set_sound_focus(soundFocusData);
  22426. if (ret) {
  22427. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22428. __func__, ret);
  22429. ret = -EINVAL;
  22430. }
  22431. return ret;
  22432. }
  22433. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22434. struct snd_ctl_elem_value *ucontrol)
  22435. {
  22436. int ret = 0;
  22437. struct sound_focus_param soundFocusData;
  22438. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22439. ret = voc_get_sound_focus(&soundFocusData);
  22440. if (ret) {
  22441. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22442. __func__, ret);
  22443. ret = -EINVAL;
  22444. goto done;
  22445. }
  22446. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22447. sizeof(struct sound_focus_param));
  22448. done:
  22449. return ret;
  22450. }
  22451. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22452. struct snd_ctl_elem_info *uinfo)
  22453. {
  22454. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22455. uinfo->count = sizeof(struct source_tracking_param);
  22456. return 0;
  22457. }
  22458. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22459. struct snd_ctl_elem_value *ucontrol)
  22460. {
  22461. int ret = 0;
  22462. struct source_tracking_param sourceTrackingData;
  22463. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22464. ret = voc_get_source_tracking(&sourceTrackingData);
  22465. if (ret) {
  22466. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22467. __func__, ret);
  22468. ret = -EINVAL;
  22469. goto done;
  22470. }
  22471. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22472. sizeof(struct source_tracking_param));
  22473. done:
  22474. return ret;
  22475. }
  22476. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22477. int *copp_idx)
  22478. {
  22479. int i, idx, be_idx;
  22480. int ret = 0;
  22481. unsigned long copp;
  22482. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22483. ret = q6audio_validate_port(port_id);
  22484. if (ret < 0) {
  22485. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22486. __func__, port_id, ret);
  22487. ret = -EINVAL;
  22488. goto done;
  22489. }
  22490. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22491. if (msm_bedais[be_idx].port_id == port_id)
  22492. break;
  22493. }
  22494. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22495. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22496. ret = -EINVAL;
  22497. goto done;
  22498. }
  22499. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22500. MSM_FRONTEND_DAI_MAX) {
  22501. if (!(is_mm_lsm_fe_id(i) &&
  22502. route_check_fe_id_adm_support(i)))
  22503. continue;
  22504. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22505. copp = session_copp_map[i]
  22506. [session_type][be_idx];
  22507. if (test_bit(idx, &copp))
  22508. break;
  22509. }
  22510. if (idx >= MAX_COPPS_PER_PORT)
  22511. continue;
  22512. else
  22513. break;
  22514. }
  22515. if (i >= MSM_FRONTEND_DAI_MAX) {
  22516. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22517. ret = -EINVAL;
  22518. goto done;
  22519. }
  22520. *copp_idx = idx;
  22521. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22522. done:
  22523. return ret;
  22524. }
  22525. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22526. const char *prefix, int *port_id)
  22527. {
  22528. int ret = 0;
  22529. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22530. /*
  22531. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22532. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22533. * and compare the string with the backend name to derive the port id.
  22534. */
  22535. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22536. "SLIMBUS_0")) {
  22537. *port_id = SLIMBUS_0_TX;
  22538. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22539. "TERT_MI2S")) {
  22540. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22541. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22542. "INT3_MI2S")) {
  22543. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22544. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22545. "VA_CDC_DMA_TX_0")) {
  22546. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22547. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22548. "TX_CDC_DMA_TX_3")) {
  22549. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22550. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22551. "QUIN_TDM_TX_0")) {
  22552. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22553. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22554. "PRIMARY_TDM")) {
  22555. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22556. } else {
  22557. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22558. __func__, kcontrol->id.name);
  22559. ret = -EINVAL;
  22560. goto done;
  22561. }
  22562. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22563. __func__, kcontrol->id.name, *port_id);
  22564. done:
  22565. return ret;
  22566. }
  22567. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22568. struct snd_ctl_elem_value *ucontrol)
  22569. {
  22570. int ret = 0;
  22571. struct sound_focus_param soundFocusData;
  22572. int port_id, copp_idx;
  22573. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22574. "Sound Focus Audio Tx ", &port_id);
  22575. if (ret != 0) {
  22576. pr_err("%s: Error in deriving port id, err=%d\n",
  22577. __func__, ret);
  22578. ret = -EINVAL;
  22579. goto done;
  22580. }
  22581. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22582. &copp_idx);
  22583. if (ret) {
  22584. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22585. __func__, port_id);
  22586. ret = -EINVAL;
  22587. goto done;
  22588. }
  22589. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22590. sizeof(struct sound_focus_param));
  22591. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22592. if (ret) {
  22593. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22594. __func__, ret);
  22595. ret = -EINVAL;
  22596. goto done;
  22597. }
  22598. done:
  22599. return ret;
  22600. }
  22601. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22602. struct snd_ctl_elem_value *ucontrol)
  22603. {
  22604. int ret = 0;
  22605. struct sound_focus_param soundFocusData;
  22606. int port_id, copp_idx;
  22607. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22608. "Sound Focus Audio Tx ", &port_id);
  22609. if (ret) {
  22610. pr_err("%s: Error in deriving port id, err=%d\n",
  22611. __func__, ret);
  22612. ret = -EINVAL;
  22613. goto done;
  22614. }
  22615. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22616. &copp_idx);
  22617. if (ret) {
  22618. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22619. __func__, port_id);
  22620. ret = -EINVAL;
  22621. goto done;
  22622. }
  22623. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22624. if (ret) {
  22625. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22626. __func__, ret);
  22627. ret = -EINVAL;
  22628. goto done;
  22629. }
  22630. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22631. sizeof(struct sound_focus_param));
  22632. done:
  22633. return ret;
  22634. }
  22635. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22636. struct snd_ctl_elem_value *ucontrol)
  22637. {
  22638. int ret = 0;
  22639. struct source_tracking_param sourceTrackingData;
  22640. int port_id, copp_idx;
  22641. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22642. "Source Tracking Audio Tx ", &port_id);
  22643. if (ret) {
  22644. pr_err("%s: Error in deriving port id, err=%d\n",
  22645. __func__, ret);
  22646. ret = -EINVAL;
  22647. goto done;
  22648. }
  22649. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22650. &copp_idx);
  22651. if (ret) {
  22652. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22653. __func__, port_id);
  22654. ret = -EINVAL;
  22655. goto done;
  22656. }
  22657. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22658. if (ret) {
  22659. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22660. __func__, ret);
  22661. ret = -EINVAL;
  22662. goto done;
  22663. }
  22664. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22665. sizeof(struct source_tracking_param));
  22666. done:
  22667. return ret;
  22668. }
  22669. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22670. struct snd_ctl_elem_info *uinfo)
  22671. {
  22672. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22673. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22674. return 0;
  22675. }
  22676. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22677. struct snd_ctl_elem_value *ucontrol)
  22678. {
  22679. int ret = 0;
  22680. struct doa_tracking_mon_param doa_tracking_data;
  22681. int port_id, copp_idx;
  22682. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22683. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22684. "Doa Tracking Monitor Listen ", &port_id);
  22685. if (ret) {
  22686. pr_err("%s: Error in deriving port id, err=%d\n",
  22687. __func__, ret);
  22688. ret = -EINVAL;
  22689. goto done;
  22690. }
  22691. /*
  22692. * If copp id exists for given port id, query adm to get doa data.
  22693. * Else query afe for doa tracking params.
  22694. * This is to support in cases where LSM directly connects to
  22695. * AFE for FFNS.
  22696. */
  22697. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22698. &copp_idx);
  22699. if (!ret)
  22700. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22701. &doa_tracking_data);
  22702. else
  22703. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22704. if (ret) {
  22705. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22706. __func__, ret);
  22707. ret = -EINVAL;
  22708. goto done;
  22709. }
  22710. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22711. sizeof(struct doa_tracking_mon_param));
  22712. done:
  22713. return ret;
  22714. }
  22715. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22716. {
  22717. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22718. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22719. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22720. .info = msm_sound_focus_info,
  22721. .get = msm_voice_sound_focus_get,
  22722. .put = msm_voice_sound_focus_put,
  22723. },
  22724. {
  22725. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22726. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22727. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22728. .info = msm_source_tracking_info,
  22729. .get = msm_voice_source_tracking_get,
  22730. },
  22731. {
  22732. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22733. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22734. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22735. .info = msm_sound_focus_info,
  22736. .get = msm_audio_sound_focus_get,
  22737. .put = msm_audio_sound_focus_put,
  22738. },
  22739. {
  22740. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22741. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22742. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22743. .info = msm_source_tracking_info,
  22744. .get = msm_audio_source_tracking_get,
  22745. },
  22746. {
  22747. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22748. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22749. .name = "Sound Focus Voice Tx TERT_MI2S",
  22750. .info = msm_sound_focus_info,
  22751. .get = msm_voice_sound_focus_get,
  22752. .put = msm_voice_sound_focus_put,
  22753. },
  22754. {
  22755. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22756. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22757. .name = "Source Tracking Voice Tx TERT_MI2S",
  22758. .info = msm_source_tracking_info,
  22759. .get = msm_voice_source_tracking_get,
  22760. },
  22761. {
  22762. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22763. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22764. .name = "Sound Focus Audio Tx TERT_MI2S",
  22765. .info = msm_sound_focus_info,
  22766. .get = msm_audio_sound_focus_get,
  22767. .put = msm_audio_sound_focus_put,
  22768. },
  22769. {
  22770. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22771. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22772. .name = "Source Tracking Audio Tx TERT_MI2S",
  22773. .info = msm_source_tracking_info,
  22774. .get = msm_audio_source_tracking_get,
  22775. },
  22776. {
  22777. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22778. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22779. .name = "Sound Focus Voice Tx INT3_MI2S",
  22780. .info = msm_sound_focus_info,
  22781. .get = msm_voice_sound_focus_get,
  22782. .put = msm_voice_sound_focus_put,
  22783. },
  22784. {
  22785. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22786. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22787. .name = "Source Tracking Voice Tx INT3_MI2S",
  22788. .info = msm_source_tracking_info,
  22789. .get = msm_voice_source_tracking_get,
  22790. },
  22791. {
  22792. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22793. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22794. .name = "Sound Focus Audio Tx INT3_MI2S",
  22795. .info = msm_sound_focus_info,
  22796. .get = msm_audio_sound_focus_get,
  22797. .put = msm_audio_sound_focus_put,
  22798. },
  22799. {
  22800. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22801. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22802. .name = "Source Tracking Audio Tx INT3_MI2S",
  22803. .info = msm_source_tracking_info,
  22804. .get = msm_audio_source_tracking_get,
  22805. },
  22806. {
  22807. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22808. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22809. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22810. .info = msm_sound_focus_info,
  22811. .get = msm_voice_sound_focus_get,
  22812. .put = msm_voice_sound_focus_put,
  22813. },
  22814. {
  22815. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22816. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22817. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22818. .info = msm_source_tracking_info,
  22819. .get = msm_voice_source_tracking_get,
  22820. },
  22821. {
  22822. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22823. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22824. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22825. .info = msm_sound_focus_info,
  22826. .get = msm_audio_sound_focus_get,
  22827. .put = msm_audio_sound_focus_put,
  22828. },
  22829. {
  22830. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22831. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22832. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22833. .info = msm_source_tracking_info,
  22834. .get = msm_audio_source_tracking_get,
  22835. },
  22836. {
  22837. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22838. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22839. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22840. .info = msm_sound_focus_info,
  22841. .get = msm_voice_sound_focus_get,
  22842. .put = msm_voice_sound_focus_put,
  22843. },
  22844. {
  22845. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22846. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22847. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22848. .info = msm_source_tracking_info,
  22849. .get = msm_voice_source_tracking_get,
  22850. },
  22851. {
  22852. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22853. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22854. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22855. .info = msm_sound_focus_info,
  22856. .get = msm_audio_sound_focus_get,
  22857. .put = msm_audio_sound_focus_put,
  22858. },
  22859. {
  22860. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22861. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22862. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22863. .info = msm_source_tracking_info,
  22864. .get = msm_audio_source_tracking_get,
  22865. },
  22866. {
  22867. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22868. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22869. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22870. .info = msm_sound_focus_info,
  22871. .get = msm_voice_sound_focus_get,
  22872. .put = msm_voice_sound_focus_put,
  22873. },
  22874. {
  22875. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22876. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22877. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22878. .info = msm_source_tracking_info,
  22879. .get = msm_voice_source_tracking_get,
  22880. },
  22881. {
  22882. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22883. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22884. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22885. .info = msm_sound_focus_info,
  22886. .get = msm_audio_sound_focus_get,
  22887. .put = msm_audio_sound_focus_put,
  22888. },
  22889. {
  22890. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22891. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22892. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22893. .info = msm_source_tracking_info,
  22894. .get = msm_audio_source_tracking_get,
  22895. },
  22896. {
  22897. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22898. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22899. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22900. .info = msm_sound_focus_info,
  22901. .get = msm_audio_sound_focus_get,
  22902. .put = msm_audio_sound_focus_put,
  22903. },
  22904. {
  22905. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22906. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22907. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22908. .info = msm_source_tracking_info,
  22909. .get = msm_audio_source_tracking_get,
  22910. },
  22911. };
  22912. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22913. {
  22914. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22916. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22917. .info = msm_doa_tracking_mon_info,
  22918. .get = msm_doa_tracking_mon_get,
  22919. },
  22920. };
  22921. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22922. struct snd_ctl_elem_value *ucontrol)
  22923. {
  22924. int ret = 0;
  22925. int item;
  22926. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22927. pr_debug("%s item is %d\n", __func__,
  22928. ucontrol->value.enumerated.item[0]);
  22929. mutex_lock(&routing_lock);
  22930. item = ucontrol->value.enumerated.item[0];
  22931. if (item < e->items) {
  22932. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22933. __func__, e->shift_l, e->values[item]);
  22934. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22935. e->values[item] < MSM_BACKEND_DAI_MAX)
  22936. /* Enable feedback TX path */
  22937. ret = afe_spk_prot_feed_back_cfg(
  22938. msm_bedais[e->values[item]].port_id,
  22939. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22940. else {
  22941. pr_debug("%s values are out of range item %d\n",
  22942. __func__, e->values[item]);
  22943. /* Disable feedback TX path */
  22944. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22945. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22946. else
  22947. ret = -EINVAL;
  22948. }
  22949. } else {
  22950. pr_err("%s item value is out of range item\n", __func__);
  22951. ret = -EINVAL;
  22952. }
  22953. mutex_unlock(&routing_lock);
  22954. return ret;
  22955. }
  22956. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22957. struct snd_ctl_elem_value *ucontrol)
  22958. {
  22959. int ret = 0;
  22960. int item;
  22961. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22962. pr_debug("%s item is %d\n", __func__,
  22963. ucontrol->value.enumerated.item[0]);
  22964. mutex_lock(&routing_lock);
  22965. item = ucontrol->value.enumerated.item[0];
  22966. if (item < e->items) {
  22967. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22968. __func__, e->shift_l, e->values[item]);
  22969. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22970. e->values[item] < MSM_BACKEND_DAI_MAX)
  22971. /* Enable feedback TX path */
  22972. ret = afe_spk_prot_feed_back_cfg(
  22973. msm_bedais[e->values[item]].port_id,
  22974. msm_bedais[e->shift_l].port_id,
  22975. 1, 1, 1);
  22976. else {
  22977. pr_debug("%s values are out of range item %d\n",
  22978. __func__, e->values[item]);
  22979. /* Disable feedback TX path */
  22980. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22981. ret = afe_spk_prot_feed_back_cfg(0,
  22982. 0, 0, 0, 0);
  22983. else
  22984. ret = -EINVAL;
  22985. }
  22986. } else {
  22987. pr_err("%s item value is out of range item\n", __func__);
  22988. ret = -EINVAL;
  22989. }
  22990. mutex_unlock(&routing_lock);
  22991. return ret;
  22992. }
  22993. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22994. struct snd_ctl_elem_value *ucontrol)
  22995. {
  22996. pr_debug("%s\n", __func__);
  22997. return 0;
  22998. }
  22999. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  23000. struct snd_ctl_elem_value *ucontrol)
  23001. {
  23002. pr_debug("%s\n", __func__);
  23003. ucontrol->value.enumerated.item[0] = 0;
  23004. return 0;
  23005. }
  23006. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  23007. "ZERO", "SLIM4_TX"
  23008. };
  23009. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  23010. "ZERO", "SLIM4_TX"
  23011. };
  23012. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  23013. "ZERO", "WSA_CDC_DMA_TX_0"
  23014. };
  23015. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  23016. "ZERO", "WSA_CDC_DMA_TX_0"
  23017. };
  23018. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  23019. "ZERO", "SENARY_TX"
  23020. };
  23021. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  23022. "ZERO", "INT5_MI2S_TX"
  23023. };
  23024. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  23025. "ZERO", "INT5_MI2S_TX"
  23026. };
  23027. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  23028. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23029. };
  23030. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  23031. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23032. };
  23033. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  23034. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23035. };
  23036. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  23037. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23038. };
  23039. static const int mi2s_rx_vi_fb_tx_value[] = {
  23040. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  23041. };
  23042. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  23043. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23044. };
  23045. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  23046. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23047. };
  23048. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  23049. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23050. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  23051. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  23052. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  23053. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23054. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  23055. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  23056. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  23057. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23058. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  23059. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  23060. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  23061. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23062. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  23063. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  23064. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  23065. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  23066. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  23067. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  23068. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  23069. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23070. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  23071. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  23072. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  23073. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  23074. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23075. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  23076. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  23077. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  23078. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  23079. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  23080. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23081. spkr_prot_put_vi_lch_port);
  23082. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  23083. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  23084. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23085. spkr_prot_put_vi_rch_port);
  23086. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  23087. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  23088. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23089. spkr_prot_put_vi_lch_port);
  23090. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  23091. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  23092. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23093. spkr_prot_put_vi_rch_port);
  23094. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  23095. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  23096. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  23097. spkr_prot_put_vi_lch_port);
  23098. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  23099. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  23100. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  23101. spkr_prot_put_vi_lch_port);
  23102. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  23103. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  23104. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  23105. spkr_prot_put_vi_rch_port);
  23106. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  23107. /* Frontend AIF */
  23108. /* Widget name equals to Front-End DAI name<Need confirmation>,
  23109. * Stream name must contains substring of front-end dai name
  23110. */
  23111. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  23113. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  23115. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  23116. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  23117. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  23118. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  23119. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  23120. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  23121. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  23122. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  23124. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  23125. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  23126. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  23127. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  23128. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  23130. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  23131. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  23132. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  23133. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  23134. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  23136. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  23137. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  23138. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  23139. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  23140. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  23141. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  23142. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  23143. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  23145. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  23146. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  23147. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  23148. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  23149. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  23150. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  23151. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  23152. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  23153. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  23154. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  23155. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  23156. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  23157. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  23158. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  23159. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  23160. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  23161. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  23162. "VoiceMMode1 Playback", 0, 0, 0, 0),
  23163. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  23164. "VoiceMMode1 Capture", 0, 0, 0, 0),
  23165. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  23166. "VoiceMMode2 Playback", 0, 0, 0, 0),
  23167. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  23168. "VoiceMMode2 Capture", 0, 0, 0, 0),
  23169. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  23170. 0, 0, 0, 0),
  23171. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  23172. 0, 0, 0, 0),
  23173. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  23174. 0, 0, 0, 0),
  23175. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  23176. 0, 0, 0, 0),
  23177. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  23178. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  23179. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  23180. 0, 0, 0, 0),
  23181. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  23182. 0, 0, 0, 0),
  23183. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  23184. 0, 0, 0, 0),
  23185. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  23186. 0, 0, 0, 0),
  23187. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  23188. 0, 0, 0, 0),
  23189. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  23190. 0, 0, 0, 0),
  23191. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  23192. 0, 0, 0, 0),
  23193. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  23194. 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  23196. 0, 0, 0, 0),
  23197. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  23198. 0, 0, 0, 0),
  23199. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  23200. 0, 0, 0, 0),
  23201. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  23202. 0, 0, 0, 0),
  23203. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  23204. 0, 0, 0, 0),
  23205. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  23206. 0, 0, 0, 0),
  23207. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  23208. 0, 0, 0, 0),
  23209. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  23210. 0, 0, 0, 0),
  23211. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  23212. 0, 0, 0, 0),
  23213. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  23214. 0, 0, 0, 0),
  23215. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  23216. 0, 0, 0, 0),
  23217. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  23218. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  23219. 0, 0, 0, 0),
  23220. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  23221. "INT0 MI2S_RX Hostless Playback",
  23222. 0, 0, 0, 0),
  23223. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  23224. "INT4 MI2S_RX Hostless Playback",
  23225. 0, 0, 0, 0),
  23226. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  23227. "Primary MI2S_RX Hostless Playback",
  23228. 0, 0, 0, 0),
  23229. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  23230. "Secondary MI2S_RX Hostless Playback",
  23231. 0, 0, 0, 0),
  23232. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  23233. "Tertiary MI2S_RX Hostless Playback",
  23234. 0, 0, 0, 0),
  23235. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  23236. "Quaternary MI2S_RX Hostless Playback",
  23237. 0, 0, 0, 0),
  23238. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  23239. "Quinary MI2S_RX Hostless Playback",
  23240. 0, 0, 0, 0),
  23241. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  23242. "Senary MI2S_RX Hostless Playback",
  23243. 0, 0, 0, 0),
  23244. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  23245. 0, 0, 0, 0),
  23246. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  23247. 0, 0, 0, 0),
  23248. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  23249. 0, 0, 0, 0),
  23250. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  23251. 0, 0, 0, 0),
  23252. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  23253. 0, 0, 0, 0),
  23254. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  23255. "INT3 MI2S_TX Hostless Capture",
  23256. 0, 0, 0, 0),
  23257. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  23258. "Tertiary MI2S_TX Hostless Capture",
  23259. 0, 0, 0, 0),
  23260. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  23261. "Secondary MI2S_TX Hostless Capture",
  23262. 0, 0, 0, 0),
  23263. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  23264. "Primary MI2S_TX Hostless Capture",
  23265. 0, 0, 0, 0),
  23266. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  23267. 0, 0, 0, 0),
  23268. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  23269. 0, 0, 0, 0),
  23270. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  23271. "Quaternary MI2S_TX Hostless Capture",
  23272. 0, 0, 0, 0),
  23273. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  23274. "Quinary MI2S_TX Hostless Capture",
  23275. 0, 0, 0, 0),
  23276. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  23277. "Senary MI2S_TX Hostless Capture",
  23278. 0, 0, 0, 0),
  23279. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  23280. "Primary TDM0 Hostless Playback",
  23281. 0, 0, 0, 0),
  23282. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  23283. "Primary TDM0 Hostless Capture",
  23284. 0, 0, 0, 0),
  23285. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  23286. "Primary TDM1 Hostless Playback",
  23287. 0, 0, 0, 0),
  23288. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  23289. "Primary TDM1 Hostless Capture",
  23290. 0, 0, 0, 0),
  23291. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  23292. "Primary TDM2 Hostless Playback",
  23293. 0, 0, 0, 0),
  23294. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  23295. "Primary TDM2 Hostless Capture",
  23296. 0, 0, 0, 0),
  23297. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  23298. "Primary TDM3 Hostless Playback",
  23299. 0, 0, 0, 0),
  23300. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  23301. "Primary TDM3 Hostless Capture",
  23302. 0, 0, 0, 0),
  23303. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  23304. "Primary TDM4 Hostless Playback",
  23305. 0, 0, 0, 0),
  23306. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  23307. "Primary TDM4 Hostless Capture",
  23308. 0, 0, 0, 0),
  23309. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  23310. "Primary TDM5 Hostless Playback",
  23311. 0, 0, 0, 0),
  23312. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  23313. "Primary TDM5 Hostless Capture",
  23314. 0, 0, 0, 0),
  23315. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  23316. "Primary TDM6 Hostless Playback",
  23317. 0, 0, 0, 0),
  23318. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  23319. "Primary TDM6 Hostless Capture",
  23320. 0, 0, 0, 0),
  23321. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  23322. "Primary TDM7 Hostless Playback",
  23323. 0, 0, 0, 0),
  23324. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  23325. "Primary TDM7 Hostless Capture",
  23326. 0, 0, 0, 0),
  23327. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  23328. "Secondary TDM0 Hostless Playback",
  23329. 0, 0, 0, 0),
  23330. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  23331. "Secondary TDM0 Hostless Capture",
  23332. 0, 0, 0, 0),
  23333. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  23334. "Secondary TDM1 Hostless Playback",
  23335. 0, 0, 0, 0),
  23336. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  23337. "Secondary TDM1 Hostless Capture",
  23338. 0, 0, 0, 0),
  23339. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  23340. "Secondary TDM2 Hostless Playback",
  23341. 0, 0, 0, 0),
  23342. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  23343. "Secondary TDM2 Hostless Capture",
  23344. 0, 0, 0, 0),
  23345. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  23346. "Secondary TDM3 Hostless Playback",
  23347. 0, 0, 0, 0),
  23348. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  23349. "Secondary TDM3 Hostless Capture",
  23350. 0, 0, 0, 0),
  23351. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  23352. "Secondary TDM4 Hostless Playback",
  23353. 0, 0, 0, 0),
  23354. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  23355. "Secondary TDM4 Hostless Capture",
  23356. 0, 0, 0, 0),
  23357. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  23358. "Secondary TDM5 Hostless Playback",
  23359. 0, 0, 0, 0),
  23360. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  23361. "Secondary TDM5 Hostless Capture",
  23362. 0, 0, 0, 0),
  23363. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  23364. "Secondary TDM6 Hostless Playback",
  23365. 0, 0, 0, 0),
  23366. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  23367. "Secondary TDM6 Hostless Capture",
  23368. 0, 0, 0, 0),
  23369. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  23370. "Secondary TDM7 Hostless Playback",
  23371. 0, 0, 0, 0),
  23372. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  23373. "Secondary TDM7 Hostless Capture",
  23374. 0, 0, 0, 0),
  23375. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  23376. "Tertiary TDM0 Hostless Playback",
  23377. 0, 0, 0, 0),
  23378. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  23379. "Tertiary TDM0 Hostless Capture",
  23380. 0, 0, 0, 0),
  23381. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  23382. "Tertiary TDM1 Hostless Playback",
  23383. 0, 0, 0, 0),
  23384. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  23385. "Tertiary TDM1 Hostless Capture",
  23386. 0, 0, 0, 0),
  23387. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  23388. "Tertiary TDM2 Hostless Playback",
  23389. 0, 0, 0, 0),
  23390. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  23391. "Tertiary TDM2 Hostless Capture",
  23392. 0, 0, 0, 0),
  23393. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  23394. "Tertiary TDM3 Hostless Playback",
  23395. 0, 0, 0, 0),
  23396. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23397. "Tertiary TDM3 Hostless Capture",
  23398. 0, 0, 0, 0),
  23399. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23400. "Tertiary TDM4 Hostless Playback",
  23401. 0, 0, 0, 0),
  23402. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23403. "Tertiary TDM4 Hostless Capture",
  23404. 0, 0, 0, 0),
  23405. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23406. "Tertiary TDM5 Hostless Playback",
  23407. 0, 0, 0, 0),
  23408. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23409. "Tertiary TDM5 Hostless Capture",
  23410. 0, 0, 0, 0),
  23411. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23412. "Tertiary TDM6 Hostless Playback",
  23413. 0, 0, 0, 0),
  23414. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23415. "Tertiary TDM6 Hostless Capture",
  23416. 0, 0, 0, 0),
  23417. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23418. "Tertiary TDM7 Hostless Playback",
  23419. 0, 0, 0, 0),
  23420. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23421. "Tertiary TDM7 Hostless Capture",
  23422. 0, 0, 0, 0),
  23423. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23424. "Quaternary TDM0 Hostless Playback",
  23425. 0, 0, 0, 0),
  23426. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23427. "Quaternary TDM0 Hostless Capture",
  23428. 0, 0, 0, 0),
  23429. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23430. "Quaternary TDM1 Hostless Playback",
  23431. 0, 0, 0, 0),
  23432. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23433. "Quaternary TDM1 Hostless Capture",
  23434. 0, 0, 0, 0),
  23435. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23436. "Quaternary TDM2 Hostless Playback",
  23437. 0, 0, 0, 0),
  23438. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23439. "Quaternary TDM2 Hostless Capture",
  23440. 0, 0, 0, 0),
  23441. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23442. "Quaternary TDM3 Hostless Playback",
  23443. 0, 0, 0, 0),
  23444. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23445. "Quaternary TDM3 Hostless Capture",
  23446. 0, 0, 0, 0),
  23447. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23448. "Quaternary TDM4 Hostless Playback",
  23449. 0, 0, 0, 0),
  23450. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23451. "Quaternary TDM4 Hostless Capture",
  23452. 0, 0, 0, 0),
  23453. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23454. "Quaternary TDM5 Hostless Playback",
  23455. 0, 0, 0, 0),
  23456. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23457. "Quaternary TDM5 Hostless Capture",
  23458. 0, 0, 0, 0),
  23459. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23460. "Quaternary TDM6 Hostless Playback",
  23461. 0, 0, 0, 0),
  23462. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23463. "Quaternary TDM6 Hostless Capture",
  23464. 0, 0, 0, 0),
  23465. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23466. "Quaternary TDM7 Hostless Playback",
  23467. 0, 0, 0, 0),
  23468. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23469. "Quaternary TDM7 Hostless Capture",
  23470. 0, 0, 0, 0),
  23471. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23472. "Quinary TDM0 Hostless Playback",
  23473. 0, 0, 0, 0),
  23474. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23475. "Quinary TDM0 Hostless Capture",
  23476. 0, 0, 0, 0),
  23477. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23478. "Quinary TDM1 Hostless Playback",
  23479. 0, 0, 0, 0),
  23480. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23481. "Quinary TDM1 Hostless Capture",
  23482. 0, 0, 0, 0),
  23483. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23484. "Quinary TDM2 Hostless Playback",
  23485. 0, 0, 0, 0),
  23486. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23487. "Quinary TDM2 Hostless Capture",
  23488. 0, 0, 0, 0),
  23489. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23490. "Quinary TDM3 Hostless Playback",
  23491. 0, 0, 0, 0),
  23492. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23493. "Quinary TDM3 Hostless Capture",
  23494. 0, 0, 0, 0),
  23495. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23496. "Quinary TDM4 Hostless Playback",
  23497. 0, 0, 0, 0),
  23498. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23499. "Quinary TDM4 Hostless Capture",
  23500. 0, 0, 0, 0),
  23501. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23502. "Quinary TDM5 Hostless Playback",
  23503. 0, 0, 0, 0),
  23504. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23505. "Quinary TDM5 Hostless Capture",
  23506. 0, 0, 0, 0),
  23507. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23508. "Quinary TDM6 Hostless Playback",
  23509. 0, 0, 0, 0),
  23510. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23511. "Quinary TDM6 Hostless Capture",
  23512. 0, 0, 0, 0),
  23513. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23514. "Quinary TDM7 Hostless Playback",
  23515. 0, 0, 0, 0),
  23516. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23517. "Quinary TDM7 Hostless Capture",
  23518. 0, 0, 0, 0),
  23519. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23520. "Senary TDM0 Hostless Playback",
  23521. 0, 0, 0, 0),
  23522. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23523. "Senary TDM0 Hostless Capture",
  23524. 0, 0, 0, 0),
  23525. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23526. "Senary TDM1 Hostless Playback",
  23527. 0, 0, 0, 0),
  23528. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23529. "Senary TDM1 Hostless Capture",
  23530. 0, 0, 0, 0),
  23531. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23532. "Senary TDM2 Hostless Playback",
  23533. 0, 0, 0, 0),
  23534. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23535. "Senary TDM2 Hostless Capture",
  23536. 0, 0, 0, 0),
  23537. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23538. "Senary TDM3 Hostless Playback",
  23539. 0, 0, 0, 0),
  23540. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23541. "Senary TDM3 Hostless Capture",
  23542. 0, 0, 0, 0),
  23543. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23544. "Senary TDM4 Hostless Playback",
  23545. 0, 0, 0, 0),
  23546. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23547. "Senary TDM4 Hostless Capture",
  23548. 0, 0, 0, 0),
  23549. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23550. "Senary TDM5 Hostless Playback",
  23551. 0, 0, 0, 0),
  23552. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23553. "Senary TDM5 Hostless Capture",
  23554. 0, 0, 0, 0),
  23555. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23556. "Senary TDM6 Hostless Playback",
  23557. 0, 0, 0, 0),
  23558. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23559. "Senary TDM6 Hostless Capture",
  23560. 0, 0, 0, 0),
  23561. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23562. "Senary TDM7 Hostless Playback",
  23563. 0, 0, 0, 0),
  23564. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23565. "Senary TDM7 Hostless Capture",
  23566. 0, 0, 0, 0),
  23567. /* LSM */
  23568. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23569. 0, 0, 0, 0),
  23570. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23571. 0, 0, 0, 0),
  23572. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23573. 0, 0, 0, 0),
  23574. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23575. 0, 0, 0, 0),
  23576. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23577. 0, 0, 0, 0),
  23578. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23579. 0, 0, 0, 0),
  23580. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23581. 0, 0, 0, 0),
  23582. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23583. 0, 0, 0, 0),
  23584. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23585. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23586. /* Backend AIF */
  23587. /* Stream name equals to backend dai link stream name */
  23588. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23589. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23590. 0, 0, 0, 0),
  23591. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23592. 0, 0, 0, 0),
  23593. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23594. 0, 0, 0, 0),
  23595. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23596. 0, 0, 0, 0),
  23597. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23598. 0, 0, 0, 0),
  23599. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23600. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23601. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23602. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23603. SND_SOC_DAPM_AIF_OUT("HDMI_MS", "HDMI MS Playback", 0, 0, 0, 0),
  23604. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23605. 0, 0, 0, 0),
  23606. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23607. 0, 0, 0, 0),
  23608. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23609. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23610. 0, 0, 0, 0),
  23611. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23612. 0, 0, 0, 0),
  23613. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23614. 0, 0, 0, 0),
  23615. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23616. "Secondary MI2S Playback SD1",
  23617. 0, 0, 0, 0),
  23618. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23619. 0, 0, 0, 0),
  23620. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23621. 0, 0, 0, 0),
  23622. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23623. 0, 0, 0, 0),
  23624. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23625. 0, 0, 0, 0),
  23626. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23627. 0, 0, 0, 0),
  23628. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23629. 0, 0, 0, 0),
  23630. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23631. 0, 0, 0, 0),
  23632. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23633. 0, 0, 0, 0),
  23634. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23635. 0, 0, 0, 0),
  23636. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23637. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23638. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23639. 0, 0, 0, 0),
  23640. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23641. 0, 0, 0, 0),
  23642. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23643. 0, 0, 0, 0),
  23644. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23645. 0, 0, 0, 0),
  23646. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23647. 0, 0, 0, 0),
  23648. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23649. 0, 0, 0, 0),
  23650. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23651. 0, 0, 0, 0),
  23652. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23653. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23654. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23655. 0, 0, 0, 0),
  23656. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23657. 0, 0, 0, 0),
  23658. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23659. 0, 0, 0, 0),
  23660. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23661. 0, 0, 0, 0),
  23662. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23663. 0, 0, 0, 0),
  23664. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23665. 0, 0, 0, 0),
  23666. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23667. 0, 0, 0, 0),
  23668. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23669. 0, 0, 0, 0),
  23670. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23671. 0, 0, 0, 0),
  23672. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23673. 0, 0, 0, 0),
  23674. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23675. 0, 0, 0, 0),
  23676. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23677. 0, 0, 0, 0),
  23678. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23679. 0, 0, 0, 0),
  23680. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23681. 0, 0, 0, 0),
  23682. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23683. 0, 0, 0, 0),
  23684. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23685. 0, 0, 0, 0),
  23686. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23687. 0, 0, 0, 0),
  23688. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23689. 0, 0, 0, 0),
  23690. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23691. 0, 0, 0, 0),
  23692. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23693. 0, 0, 0, 0),
  23694. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23695. 0, 0, 0, 0),
  23696. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23697. 0, 0, 0, 0),
  23698. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23699. 0, 0, 0, 0),
  23700. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23701. 0, 0, 0, 0),
  23702. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23703. 0, 0, 0, 0),
  23704. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23705. 0, 0, 0, 0),
  23706. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23707. 0, 0, 0, 0),
  23708. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23709. 0, 0, 0, 0),
  23710. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23711. 0, 0, 0, 0),
  23712. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23713. 0, 0, 0, 0),
  23714. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23715. 0, 0, 0, 0),
  23716. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23717. 0, 0, 0, 0),
  23718. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23719. 0, 0, 0, 0),
  23720. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23721. 0, 0, 0, 0),
  23722. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23723. 0, 0, 0, 0),
  23724. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23725. 0, 0, 0, 0),
  23726. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23727. 0, 0, 0, 0),
  23728. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23729. 0, 0, 0, 0),
  23730. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23731. 0, 0, 0, 0),
  23732. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23733. 0, 0, 0, 0),
  23734. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23735. 0, 0, 0, 0),
  23736. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23737. 0, 0, 0, 0),
  23738. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23739. 0, 0, 0, 0),
  23740. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23741. 0, 0, 0, 0),
  23742. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23743. 0, 0, 0, 0),
  23744. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23745. 0, 0, 0, 0),
  23746. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23747. 0, 0, 0, 0),
  23748. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23749. 0, 0, 0, 0),
  23750. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23751. 0, 0, 0, 0),
  23752. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23753. 0, 0, 0, 0),
  23754. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23755. 0, 0, 0, 0),
  23756. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23757. 0, 0, 0, 0),
  23758. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23759. 0, 0, 0, 0),
  23760. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23761. 0, 0, 0, 0),
  23762. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23763. 0, 0, 0, 0),
  23764. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23765. 0, 0, 0, 0),
  23766. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23767. 0, 0, 0, 0),
  23768. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23769. 0, 0, 0, 0),
  23770. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23771. 0, 0, 0, 0),
  23772. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23773. 0, 0, 0, 0),
  23774. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23775. 0, 0, 0, 0),
  23776. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23777. 0, 0, 0, 0),
  23778. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23779. 0, 0, 0, 0),
  23780. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23781. 0, 0, 0, 0),
  23782. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23783. 0, 0, 0, 0),
  23784. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23785. 0, 0, 0, 0),
  23786. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23787. 0, 0, 0, 0),
  23788. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23789. 0, 0, 0, 0),
  23790. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23791. 0, 0, 0, 0),
  23792. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23793. 0, 0, 0, 0),
  23794. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23795. 0, 0, 0, 0),
  23796. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23797. 0, 0, 0, 0),
  23798. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23799. 0, 0, 0, 0),
  23800. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23801. 0, 0, 0, 0),
  23802. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23803. 0, 0, 0, 0),
  23804. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23805. 0, 0, 0, 0),
  23806. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23807. 0, 0, 0, 0),
  23808. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23809. 0, 0, 0, 0),
  23810. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23811. 0, 0, 0, 0),
  23812. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23813. 0, 0, 0, 0),
  23814. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23815. 0, 0, 0, 0),
  23816. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23817. 0, 0, 0, 0),
  23818. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23819. 0, 0, 0, 0),
  23820. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23821. 0, 0, 0, 0),
  23822. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23823. 0, 0, 0, 0),
  23824. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23825. 0, 0, 0, 0),
  23826. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23827. 0, 0, 0, 0),
  23828. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23829. 0, 0, 0, 0),
  23830. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23831. 0, 0, 0, 0),
  23832. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23833. 0, 0, 0, 0),
  23834. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23835. 0, 0, 0, 0),
  23836. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23837. 0, 0, 0, 0),
  23838. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23839. 0, 0, 0, 0),
  23840. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23841. 0, 0, 0, 0),
  23842. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23843. 0, 0, 0, 0),
  23844. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23845. 0, 0, 0, 0),
  23846. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23847. 0, 0, 0, 0),
  23848. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23849. 0, 0, 0, 0),
  23850. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23851. 0, 0, 0, 0),
  23852. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23853. 0, 0, 0, 0),
  23854. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23855. 0, 0, 0, 0),
  23856. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23857. 0, 0, 0, 0),
  23858. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23859. 0, 0, 0, 0),
  23860. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23861. 0, 0, 0, 0),
  23862. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23863. 0, 0, 0, 0),
  23864. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23865. 0, 0, 0, 0),
  23866. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23867. 0, 0, 0, 0),
  23868. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23869. 0, 0, 0, 0),
  23870. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23871. 0, 0, 0, 0),
  23872. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23873. 0, 0, 0, 0),
  23874. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23875. 0, 0, 0, 0),
  23876. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23877. 0, 0, 0, 0),
  23878. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23879. 0, 0, 0, 0),
  23880. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23881. 0, 0, 0, 0),
  23882. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23883. 0, 0, 0, 0),
  23884. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23885. 0, 0, 0, 0),
  23886. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23887. 0, 0, 0, 0),
  23888. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23889. 0, 0, 0, 0),
  23890. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23891. 0, 0, 0, 0),
  23892. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23893. 0, 0, 0, 0),
  23894. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23895. 0, 0, 0, 0),
  23896. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23897. 0, 0, 0, 0),
  23898. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23899. 0, 0, 0, 0),
  23900. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23901. 0, 0, 0, 0),
  23902. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23903. 0, 0, 0, 0),
  23904. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23905. 0, 0, 0, 0),
  23906. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23907. 0, 0, 0, 0),
  23908. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23909. 0, 0, 0, 0),
  23910. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23911. 0, 0, 0, 0),
  23912. /* incall */
  23913. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23914. 0, 0, 0, 0),
  23915. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23916. 0, 0, 0, 0),
  23917. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23918. 0, 0, 0, 0),
  23919. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23920. 0, 0, 0, 0),
  23921. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23922. 0, 0, 0, 0),
  23923. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23924. 0, 0, 0, 0),
  23925. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23926. 0, 0, 0, 0),
  23927. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23928. 0, 0, 0, 0),
  23929. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23930. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23931. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23932. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23933. 0, 0, 0, 0),
  23934. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23935. 0, 0, 0, 0),
  23936. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23937. 0, 0, 0, 0),
  23938. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23939. 0, 0, 0, 0),
  23940. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23941. 0, 0, 0, 0),
  23942. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23943. 0, 0, 0, 0),
  23944. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23945. 0, 0, 0, 0),
  23946. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23947. 0, 0, 0, 0),
  23948. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23949. 0, 0, 0, 0),
  23950. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23951. 0, 0, 0, 0),
  23952. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23953. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23954. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23955. 0, 0, 0, 0),
  23956. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23957. 0, 0, 0, 0),
  23958. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23959. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23960. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23961. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23962. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23963. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23964. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23965. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23966. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23967. /* In- call recording */
  23968. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23969. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23970. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23971. 0, 0, 0, 0),
  23972. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23973. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23974. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23975. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23976. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23977. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23978. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23979. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23980. SND_SOC_DAPM_AIF_OUT("PROXY_RX", "Proxy Playback", 0, 0, 0, 0),
  23981. SND_SOC_DAPM_AIF_IN("PROXY_TX", "Proxy Capture", 0, 0, 0, 0),
  23982. /* Switch Definitions */
  23983. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23984. &slim_fm_switch_mixer_controls),
  23985. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23986. &slim1_fm_switch_mixer_controls),
  23987. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23988. &slim3_fm_switch_mixer_controls),
  23989. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23990. &slim4_fm_switch_mixer_controls),
  23991. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23992. &slim6_fm_switch_mixer_controls),
  23993. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23994. &pcm_rx_switch_mixer_controls),
  23995. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23996. &int0_mi2s_rx_switch_mixer_controls),
  23997. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23998. &int4_mi2s_rx_switch_mixer_controls),
  23999. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24000. &pri_mi2s_rx_switch_mixer_controls),
  24001. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24002. &sec_mi2s_rx_switch_mixer_controls),
  24003. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24004. &tert_mi2s_rx_switch_mixer_controls),
  24005. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24006. &quat_mi2s_rx_switch_mixer_controls),
  24007. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24008. &quin_mi2s_rx_switch_mixer_controls),
  24009. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  24010. &sco_slim7_switch_mixer_controls),
  24011. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  24012. &sen_mi2s_rx_switch_mixer_controls),
  24013. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  24014. &hfp_pri_aux_switch_mixer_controls),
  24015. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  24016. &hfp_aux_switch_mixer_controls),
  24017. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  24018. &hfp_int_switch_mixer_controls),
  24019. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  24020. &hfp_slim7_switch_mixer_controls),
  24021. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  24022. &usb_switch_mixer_controls),
  24023. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  24024. &a2dp_slim7_switch_mixer_controls),
  24025. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  24026. &cdc_dma_wsa_switch_mixer_controls),
  24027. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  24028. &cdc_dma_rx_switch_mixer_controls),
  24029. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  24030. &cdc_dma_rx_1_switch_mixer_controls),
  24031. /* Mixer definitions */
  24032. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24033. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  24034. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24035. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  24036. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24037. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  24038. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24039. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  24040. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24041. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  24042. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24043. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  24044. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24045. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  24046. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  24047. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  24048. SND_SOC_DAPM_MIXER("HDMI_MS Mixer", SND_SOC_NOPM, 0, 0,
  24049. hdmi_ms_mixer_controls, ARRAY_SIZE(hdmi_ms_mixer_controls)),
  24050. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  24051. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  24052. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  24053. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  24054. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24055. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  24056. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24057. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  24058. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24059. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  24060. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24061. quaternary_mi2s_rx_mixer_controls,
  24062. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  24063. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24064. tertiary_mi2s_rx_mixer_controls,
  24065. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  24066. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24067. secondary_mi2s_rx_mixer_controls,
  24068. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  24069. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24070. secondary_mi2s_rx2_mixer_controls,
  24071. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  24072. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24073. primary_mi2s_rx_mixer_controls,
  24074. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  24075. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24076. int0_mi2s_rx_mixer_controls,
  24077. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  24078. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24079. int4_mi2s_rx_mixer_controls,
  24080. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  24081. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24082. quinary_mi2s_rx_mixer_controls,
  24083. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  24084. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24085. senary_mi2s_rx_mixer_controls,
  24086. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  24087. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24088. pri_tdm_rx_0_mixer_controls,
  24089. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  24090. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24091. pri_tdm_rx_1_mixer_controls,
  24092. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  24093. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24094. pri_tdm_rx_2_mixer_controls,
  24095. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  24096. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24097. pri_tdm_rx_3_mixer_controls,
  24098. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  24099. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24100. pri_tdm_tx_0_mixer_controls,
  24101. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  24102. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24103. sec_tdm_rx_0_mixer_controls,
  24104. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  24105. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24106. sec_tdm_rx_1_mixer_controls,
  24107. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  24108. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24109. sec_tdm_rx_2_mixer_controls,
  24110. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  24111. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24112. sec_tdm_rx_3_mixer_controls,
  24113. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  24114. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24115. sec_tdm_tx_0_mixer_controls,
  24116. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  24117. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24118. tert_tdm_rx_0_mixer_controls,
  24119. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  24120. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24121. tert_tdm_tx_0_mixer_controls,
  24122. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  24123. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24124. tert_tdm_rx_1_mixer_controls,
  24125. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  24126. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24127. tert_tdm_rx_2_mixer_controls,
  24128. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  24129. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24130. tert_tdm_rx_3_mixer_controls,
  24131. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  24132. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24133. tert_tdm_rx_4_mixer_controls,
  24134. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  24135. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24136. quat_tdm_rx_0_mixer_controls,
  24137. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  24138. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24139. quat_tdm_tx_0_mixer_controls,
  24140. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  24141. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24142. quat_tdm_rx_1_mixer_controls,
  24143. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  24144. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24145. quat_tdm_rx_2_mixer_controls,
  24146. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  24147. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24148. quat_tdm_rx_3_mixer_controls,
  24149. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  24150. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24151. quin_tdm_rx_0_mixer_controls,
  24152. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  24153. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24154. quin_tdm_tx_0_mixer_controls,
  24155. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  24156. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24157. quin_tdm_rx_1_mixer_controls,
  24158. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  24159. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24160. quin_tdm_tx_1_mixer_controls,
  24161. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  24162. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24163. quin_tdm_rx_2_mixer_controls,
  24164. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  24165. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24166. quin_tdm_tx_2_mixer_controls,
  24167. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  24168. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24169. quin_tdm_rx_3_mixer_controls,
  24170. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  24171. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24172. quin_tdm_tx_3_mixer_controls,
  24173. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  24174. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24175. sen_tdm_tx_0_mixer_controls,
  24176. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  24177. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24178. sen_tdm_rx_0_mixer_controls,
  24179. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  24180. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24181. sen_tdm_rx_1_mixer_controls,
  24182. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  24183. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24184. sen_tdm_rx_2_mixer_controls,
  24185. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  24186. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24187. sen_tdm_rx_3_mixer_controls,
  24188. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  24189. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24190. pri_meta_mi2s_rx_mixer_controls,
  24191. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  24192. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24193. sec_meta_mi2s_rx_mixer_controls,
  24194. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  24195. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24196. wsa_cdc_dma_rx_0_mixer_controls,
  24197. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  24198. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24199. wsa_cdc_dma_rx_1_mixer_controls,
  24200. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  24201. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24202. rx_cdc_dma_rx_0_mixer_controls,
  24203. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  24204. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24205. rx_cdc_dma_rx_1_mixer_controls,
  24206. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  24207. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24208. rx_cdc_dma_rx_2_mixer_controls,
  24209. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  24210. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24211. rx_cdc_dma_rx_3_mixer_controls,
  24212. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  24213. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24214. rx_cdc_dma_rx_4_mixer_controls,
  24215. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  24216. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24217. rx_cdc_dma_rx_5_mixer_controls,
  24218. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  24219. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24220. rx_cdc_dma_rx_6_mixer_controls,
  24221. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  24222. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24223. rx_cdc_dma_rx_7_mixer_controls,
  24224. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  24225. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  24226. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  24227. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  24228. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  24229. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  24230. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  24231. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  24232. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  24233. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  24234. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  24235. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  24236. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  24237. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  24238. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  24239. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  24240. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  24241. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  24242. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  24243. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  24244. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  24245. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  24246. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  24247. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  24248. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  24249. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  24250. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  24251. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  24252. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  24253. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  24254. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  24255. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  24256. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  24257. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  24258. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  24259. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  24260. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  24261. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  24262. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  24263. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  24264. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  24265. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  24266. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  24267. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  24268. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  24269. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  24270. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  24271. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24272. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  24273. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24274. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  24275. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24276. tert_auxpcm_rx_mixer_controls,
  24277. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  24278. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24279. quat_auxpcm_rx_mixer_controls,
  24280. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  24281. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24282. quin_auxpcm_rx_mixer_controls,
  24283. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  24284. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24285. sen_auxpcm_rx_mixer_controls,
  24286. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  24287. /* incall */
  24288. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  24289. incall_music_delivery_mixer_controls,
  24290. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  24291. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24292. incall_music2_delivery_mixer_controls,
  24293. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  24294. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24295. slimbus_4_rx_mixer_controls,
  24296. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  24297. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24298. slimbus_6_rx_mixer_controls,
  24299. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  24300. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24301. usb_audio_rx_mixer_controls,
  24302. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  24303. /* Voice Mixer */
  24304. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  24305. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  24306. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  24307. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  24308. SND_SOC_NOPM, 0, 0,
  24309. sec_i2s_rx_voice_mixer_controls,
  24310. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  24311. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  24312. SND_SOC_NOPM, 0, 0,
  24313. sec_mi2s_rx_voice_mixer_controls,
  24314. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  24315. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  24316. SND_SOC_NOPM, 0, 0,
  24317. slimbus_rx_voice_mixer_controls,
  24318. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  24319. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  24320. SND_SOC_NOPM, 0, 0,
  24321. bt_sco_rx_voice_mixer_controls,
  24322. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  24323. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  24324. SND_SOC_NOPM, 0, 0,
  24325. afe_pcm_rx_voice_mixer_controls,
  24326. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  24327. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  24328. SND_SOC_NOPM, 0, 0,
  24329. aux_pcm_rx_voice_mixer_controls,
  24330. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  24331. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24332. SND_SOC_NOPM, 0, 0,
  24333. sec_aux_pcm_rx_voice_mixer_controls,
  24334. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24335. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24336. SND_SOC_NOPM, 0, 0,
  24337. tert_aux_pcm_rx_voice_mixer_controls,
  24338. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24339. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24340. SND_SOC_NOPM, 0, 0,
  24341. quat_aux_pcm_rx_voice_mixer_controls,
  24342. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24343. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24344. SND_SOC_NOPM, 0, 0,
  24345. quin_aux_pcm_rx_voice_mixer_controls,
  24346. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24347. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24348. SND_SOC_NOPM, 0, 0,
  24349. sen_aux_pcm_rx_voice_mixer_controls,
  24350. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24351. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  24352. SND_SOC_NOPM, 0, 0,
  24353. hdmi_rx_voice_mixer_controls,
  24354. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  24355. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24356. SND_SOC_NOPM, 0, 0,
  24357. mi2s_rx_voice_mixer_controls,
  24358. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24359. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24360. SND_SOC_NOPM, 0, 0,
  24361. pri_mi2s_rx_voice_mixer_controls,
  24362. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24363. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24364. SND_SOC_NOPM, 0, 0,
  24365. int0_mi2s_rx_voice_mixer_controls,
  24366. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24367. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24368. SND_SOC_NOPM, 0, 0,
  24369. int4_mi2s_rx_voice_mixer_controls,
  24370. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24371. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24372. SND_SOC_NOPM, 0, 0,
  24373. tert_mi2s_rx_voice_mixer_controls,
  24374. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24375. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24376. SND_SOC_NOPM, 0, 0,
  24377. quat_mi2s_rx_voice_mixer_controls,
  24378. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24379. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24380. SND_SOC_NOPM, 0, 0,
  24381. quin_mi2s_rx_voice_mixer_controls,
  24382. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24383. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24384. SND_SOC_NOPM, 0, 0,
  24385. pri_tdm_rx_0_voice_mixer_controls,
  24386. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24387. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24388. SND_SOC_NOPM, 0, 0,
  24389. pri_tdm_rx_1_voice_mixer_controls,
  24390. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24391. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24392. SND_SOC_NOPM, 0, 0,
  24393. pri_tdm_rx_2_voice_mixer_controls,
  24394. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24395. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24396. SND_SOC_NOPM, 0, 0,
  24397. pri_tdm_rx_3_voice_mixer_controls,
  24398. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24399. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24400. SND_SOC_NOPM, 0, 0,
  24401. sen_mi2s_rx_voice_mixer_controls,
  24402. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24403. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24404. SND_SOC_NOPM, 0, 0,
  24405. quat_tdm_rx_2_voice_mixer_controls,
  24406. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24407. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24408. SND_SOC_NOPM, 0, 0,
  24409. quin_tdm_rx_2_voice_mixer_controls,
  24410. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24411. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24412. SND_SOC_NOPM, 0, 0,
  24413. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24414. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24415. SND_SOC_DAPM_MIXER("PROXY_RX_Voice Mixer",
  24416. SND_SOC_NOPM, 0, 0,
  24417. proxy_rx_voice_mixer_controls,
  24418. ARRAY_SIZE(proxy_rx_voice_mixer_controls)),
  24419. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24420. SND_SOC_NOPM, 0, 0,
  24421. rx_cdc_dma_rx_0_voice_mixer_controls,
  24422. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24423. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24424. SND_SOC_NOPM, 0, 0,
  24425. rx_cdc_dma_rx_1_voice_mixer_controls,
  24426. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24427. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24428. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24429. ARRAY_SIZE(tx_voip_mixer_controls)),
  24430. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24431. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24432. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24433. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24434. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24435. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24436. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24437. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24438. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24439. int_bt_a2dp_rx_mixer_controls,
  24440. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24441. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24442. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24443. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24444. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24445. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24446. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24447. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24448. tx_voice2_stub_mixer_controls,
  24449. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24450. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24451. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24452. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24453. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24454. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24455. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24456. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24457. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24458. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24459. SND_SOC_NOPM, 0, 0,
  24460. slimbus_6_rx_voice_mixer_controls,
  24461. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24462. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24463. slimbus_7_rx_voice_mixer_controls,
  24464. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24465. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24466. slimbus_8_rx_voice_mixer_controls,
  24467. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24468. /* port mixer */
  24469. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24470. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24471. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24472. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24473. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24474. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24475. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24476. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24477. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24478. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24479. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24480. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24481. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24482. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24483. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24484. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24485. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24486. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24487. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24488. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24489. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24490. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24491. sbus_1_rx_port_mixer_controls,
  24492. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24493. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24494. bt_sco_rx_port_mixer_controls,
  24495. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24496. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24497. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24498. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24499. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24500. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24501. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24502. SND_SOC_DAPM_MIXER("HDMI_RX_MS Port Mixer",
  24503. SND_SOC_NOPM, 0, 0, hdmi_rx_ms_port_mixer_controls,
  24504. ARRAY_SIZE(hdmi_rx_ms_port_mixer_controls)),
  24505. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24506. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24507. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24508. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24509. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24510. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24511. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24512. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24513. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24514. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24515. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24516. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24517. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24518. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24519. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24520. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24521. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24522. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24523. primary_mi2s_rx_port_mixer_controls,
  24524. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24525. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24526. sec_mi2s_rx_port_mixer_controls,
  24527. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24528. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24529. tert_mi2s_rx_port_mixer_controls,
  24530. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24531. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24532. quat_mi2s_rx_port_mixer_controls,
  24533. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24534. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24535. quin_mi2s_rx_port_mixer_controls,
  24536. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24537. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24538. sen_mi2s_rx_port_mixer_controls,
  24539. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24540. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24541. pri_tdm_rx_0_port_mixer_controls,
  24542. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24543. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24544. pri_tdm_rx_1_port_mixer_controls,
  24545. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24546. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24547. pri_tdm_rx_2_port_mixer_controls,
  24548. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24549. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24550. pri_tdm_rx_3_port_mixer_controls,
  24551. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24552. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24553. sec_tdm_rx_0_port_mixer_controls,
  24554. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24555. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24556. sec_tdm_rx_1_port_mixer_controls,
  24557. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24558. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24559. sec_tdm_rx_2_port_mixer_controls,
  24560. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24561. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24562. sec_tdm_rx_3_port_mixer_controls,
  24563. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24564. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24565. sec_tdm_rx_7_port_mixer_controls,
  24566. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24567. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24568. tert_tdm_rx_0_port_mixer_controls,
  24569. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24570. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24571. tert_tdm_rx_1_port_mixer_controls,
  24572. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24573. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24574. tert_tdm_rx_2_port_mixer_controls,
  24575. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24576. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24577. tert_tdm_rx_3_port_mixer_controls,
  24578. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24579. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24580. quat_tdm_rx_0_port_mixer_controls,
  24581. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24582. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24583. quat_tdm_rx_1_port_mixer_controls,
  24584. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24585. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24586. quat_tdm_rx_2_port_mixer_controls,
  24587. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24588. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24589. quat_tdm_rx_3_port_mixer_controls,
  24590. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24591. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24592. quat_tdm_rx_7_port_mixer_controls,
  24593. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24594. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24595. quin_tdm_rx_0_port_mixer_controls,
  24596. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24597. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24598. quin_tdm_rx_1_port_mixer_controls,
  24599. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24600. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24601. quin_tdm_rx_2_port_mixer_controls,
  24602. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24603. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24604. quin_tdm_rx_3_port_mixer_controls,
  24605. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24606. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24607. quin_tdm_rx_7_port_mixer_controls,
  24608. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24609. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24610. sen_tdm_rx_0_port_mixer_controls,
  24611. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24612. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24613. sen_tdm_rx_1_port_mixer_controls,
  24614. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24615. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24616. sen_tdm_rx_2_port_mixer_controls,
  24617. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24618. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24619. sen_tdm_rx_3_port_mixer_controls,
  24620. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24621. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24622. int0_mi2s_rx_port_mixer_controls,
  24623. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24624. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24625. int4_mi2s_rx_port_mixer_controls,
  24626. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24627. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24628. wsa_cdc_dma_rx_0_port_mixer_controls,
  24629. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24630. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24631. rx_cdc_dma_rx_0_port_mixer_controls,
  24632. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24633. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24634. rx_cdc_dma_rx_1_port_mixer_controls,
  24635. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24636. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24637. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24638. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24639. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24640. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24641. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24642. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24643. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24644. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24645. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24646. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24647. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24648. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24649. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24650. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24651. /* lsm mixer definitions */
  24652. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24653. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24654. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24655. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24656. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24657. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24658. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24659. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24660. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24661. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24662. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24663. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24664. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24665. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24666. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24667. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24668. /* Virtual Pins to force backends ON atm */
  24669. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24670. SND_SOC_DAPM_INPUT("BE_IN"),
  24671. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24672. &slim0_rx_vi_fb_lch_mux),
  24673. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24674. &slim0_rx_vi_fb_rch_mux),
  24675. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24676. &wsa_rx_0_vi_fb_lch_mux),
  24677. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24678. &wsa_rx_0_vi_fb_rch_mux),
  24679. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24680. &mi2s_rx_vi_fb_mux),
  24681. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24682. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24683. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24684. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24685. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24686. &voc_ext_ec_mux),
  24687. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24688. &ext_ec_ref_mux_ul1),
  24689. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24690. &ext_ec_ref_mux_ul2),
  24691. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24692. &ext_ec_ref_mux_ul3),
  24693. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24694. &ext_ec_ref_mux_ul4),
  24695. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24696. &ext_ec_ref_mux_ul5),
  24697. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24698. &ext_ec_ref_mux_ul6),
  24699. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24700. &ext_ec_ref_mux_ul8),
  24701. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24702. &ext_ec_ref_mux_ul9),
  24703. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24704. &ext_ec_ref_mux_ul10),
  24705. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24706. &ext_ec_ref_mux_ul16),
  24707. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24708. &ext_ec_ref_mux_ul17),
  24709. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24710. &ext_ec_ref_mux_ul18),
  24711. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24712. &ext_ec_ref_mux_ul19),
  24713. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24714. &ext_ec_ref_mux_ul28),
  24715. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24716. &ext_ec_ref_mux_ul29),
  24717. };
  24718. static const struct snd_soc_dapm_route intercon[] = {
  24719. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24720. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24721. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24722. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24723. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24724. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24725. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24726. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24727. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24728. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24729. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24730. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24731. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24732. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24733. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24734. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24735. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24736. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24737. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24738. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24739. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24740. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24741. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24742. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24743. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24744. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24745. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24746. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24747. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24748. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24749. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24750. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24751. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24752. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24753. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24754. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24755. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24756. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24757. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24758. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24759. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24760. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24761. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24762. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24763. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24764. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24765. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24766. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24767. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24768. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24769. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24770. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24771. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24772. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24773. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24774. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24775. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24776. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24777. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24778. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24779. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24780. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24781. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24782. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24783. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24784. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24785. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24786. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24787. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24788. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24789. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24790. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24791. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24792. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24793. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24794. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24795. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24796. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24797. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24798. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24799. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24800. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24801. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24802. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24803. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24804. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24805. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24806. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24807. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24808. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24809. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24810. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24811. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24812. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24813. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24814. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24815. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24816. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24817. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24818. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24819. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24820. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24821. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24822. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24823. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24824. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24825. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24826. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24827. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24828. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24829. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24830. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24831. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24832. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24833. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24834. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24835. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24836. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24837. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24838. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24839. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24840. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24841. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24842. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24843. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24844. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24845. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24846. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24847. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24848. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24849. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24850. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24851. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24852. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24853. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24854. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24855. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24856. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24857. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24858. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24859. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24860. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24861. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24862. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24863. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24864. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24865. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24866. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24867. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24868. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24869. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24870. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24871. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24872. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24873. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24874. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24875. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24876. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24877. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24878. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24879. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24880. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24881. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24882. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24883. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24884. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24885. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24886. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24887. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24888. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24889. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24890. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24891. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24892. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24893. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24894. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24895. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24896. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24897. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24898. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24899. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24900. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24901. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24902. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24903. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24904. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24905. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24906. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24907. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24908. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24909. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24910. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24911. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24912. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24913. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24914. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24915. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24916. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24917. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24918. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24919. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24920. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24921. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24922. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24923. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24924. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24925. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24926. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24927. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24928. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24929. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24930. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24931. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24932. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24933. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24934. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24935. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24936. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24937. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24938. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24939. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24940. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24941. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24942. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24943. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24944. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24945. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24946. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24947. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24948. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24949. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24950. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24951. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24952. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24953. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24954. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24955. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24956. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24957. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24958. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24959. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24960. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24961. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24962. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24963. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24964. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24965. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24966. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24967. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24968. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24969. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24970. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24971. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24972. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24973. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24974. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24975. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24976. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24977. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24978. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24979. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24980. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24981. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24982. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24983. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24984. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24985. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24986. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24987. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24988. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24989. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24990. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24991. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24992. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24993. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24994. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24995. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24996. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24997. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24998. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24999. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25000. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25001. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25002. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25003. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25004. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25005. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  25006. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  25007. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  25008. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  25009. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  25010. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  25011. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  25012. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  25013. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  25014. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  25015. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  25016. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  25017. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  25018. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  25019. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  25020. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  25021. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  25022. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  25023. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  25024. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  25025. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  25026. {"HDMI", NULL, "HDMI Mixer"},
  25027. {"HDMI_MS Mixer", "MultiMedia1", "MM_DL1"},
  25028. {"HDMI_MS Mixer", "MultiMedia2", "MM_DL2"},
  25029. {"HDMI_MS Mixer", "MultiMedia3", "MM_DL3"},
  25030. {"HDMI_MS Mixer", "MultiMedia4", "MM_DL4"},
  25031. {"HDMI_MS Mixer", "MultiMedia5", "MM_DL5"},
  25032. {"HDMI_MS Mixer", "MultiMedia6", "MM_DL6"},
  25033. {"HDMI_MS Mixer", "MultiMedia7", "MM_DL7"},
  25034. {"HDMI_MS Mixer", "MultiMedia8", "MM_DL8"},
  25035. {"HDMI_MS Mixer", "MultiMedia9", "MM_DL9"},
  25036. {"HDMI_MS Mixer", "MultiMedia10", "MM_DL10"},
  25037. {"HDMI_MS Mixer", "MultiMedia11", "MM_DL11"},
  25038. {"HDMI_MS Mixer", "MultiMedia12", "MM_DL12"},
  25039. {"HDMI_MS Mixer", "MultiMedia13", "MM_DL13"},
  25040. {"HDMI_MS Mixer", "MultiMedia14", "MM_DL14"},
  25041. {"HDMI_MS Mixer", "MultiMedia15", "MM_DL15"},
  25042. {"HDMI_MS Mixer", "MultiMedia16", "MM_DL16"},
  25043. {"HDMI_MS Mixer", "MultiMedia26", "MM_DL26"},
  25044. {"HDMI_MS", NULL, "HDMI_MS Mixer"},
  25045. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  25046. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  25047. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  25048. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  25049. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  25050. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  25051. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  25052. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  25053. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  25054. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  25055. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  25056. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  25057. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  25058. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  25059. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  25060. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  25061. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  25062. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  25063. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  25064. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  25065. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  25066. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  25067. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  25068. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  25069. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  25070. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  25071. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  25072. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  25073. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  25074. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  25075. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  25076. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  25077. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  25078. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  25079. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  25080. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  25081. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25082. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25083. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25084. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25085. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25086. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25087. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25088. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25089. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25090. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25091. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25092. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25093. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25094. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25095. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25096. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25097. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25098. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  25099. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25100. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25101. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25102. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25103. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25104. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25105. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25106. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25107. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25108. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25109. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25110. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25111. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25112. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25113. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25114. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25115. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25116. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  25117. /* incall */
  25118. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  25119. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  25120. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  25121. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  25122. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  25123. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  25124. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25125. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25126. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25127. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25128. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  25129. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25130. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25131. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25132. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25133. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  25134. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25135. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25136. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25137. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25138. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25139. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25140. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25141. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25142. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25143. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25144. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25145. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25146. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25147. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25148. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25149. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25150. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25151. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  25152. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25153. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25154. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25155. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25156. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25157. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25158. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25159. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25160. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25161. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25162. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25163. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25164. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25165. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25166. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25167. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25168. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25169. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia31", "MM_DL31"},
  25170. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  25171. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25172. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25173. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25174. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25175. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25176. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25177. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25178. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25179. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25180. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25181. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25182. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25183. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25184. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25185. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25186. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25187. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25188. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  25189. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25190. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25191. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25192. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25193. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25194. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25195. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25196. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25197. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25198. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25199. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25200. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25201. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25202. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25203. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25204. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25205. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25206. {"USB_AUDIO_RX Audio Mixer", "MultiMedia31", "MM_DL31"},
  25207. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  25208. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25209. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25210. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25211. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25212. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25213. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25214. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25215. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25216. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  25217. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25218. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25219. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25220. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25221. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25222. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25223. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25224. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25225. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25226. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25227. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25228. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25229. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25230. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25231. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25232. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25233. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25234. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25235. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25236. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25237. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25238. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25239. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25240. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25241. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25242. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25243. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25244. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25245. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25246. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25247. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25248. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25249. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25250. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25251. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25252. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25253. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25254. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25255. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25256. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25257. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25258. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25259. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25260. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25261. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25262. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25263. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25264. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25265. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25266. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25267. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25268. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25269. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25270. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25271. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25272. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25273. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25274. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25275. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25276. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25277. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25278. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25279. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25280. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25281. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25282. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25283. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25284. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25285. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25286. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25287. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25288. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25289. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25290. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25291. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25292. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25293. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25294. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25295. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25296. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25297. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25298. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25299. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25300. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25301. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25302. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25303. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25304. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25305. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25306. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25307. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25308. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25309. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  25310. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25311. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25312. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25313. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25314. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25315. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25316. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25317. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25318. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25319. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25320. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25321. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25322. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25323. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25324. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25325. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25326. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25327. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  25328. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25329. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25330. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25331. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25332. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25333. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25334. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25335. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25336. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25337. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25338. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25339. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25340. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25341. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25342. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25343. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  25344. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25345. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25346. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25347. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25348. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25349. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25350. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25351. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25352. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25353. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25354. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25355. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25356. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25357. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25358. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25359. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  25360. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25361. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  25362. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25363. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25364. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25365. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25366. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25367. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25368. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25369. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25370. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25371. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25372. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25373. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25374. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25375. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25376. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25377. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25378. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25379. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25380. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25381. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  25382. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  25383. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25384. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25385. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25386. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25387. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25388. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25389. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25390. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25391. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25392. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25393. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25394. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25395. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25396. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25397. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25398. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  25399. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25400. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25401. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25402. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25403. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25404. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25405. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25406. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25407. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25408. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25409. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25410. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25411. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25412. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25413. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25414. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  25415. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25416. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25417. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25418. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25419. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25420. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25421. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25422. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25423. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25424. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25425. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25426. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25427. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25428. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25429. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25430. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25431. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25432. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  25433. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25434. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25435. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25436. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25437. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25438. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25439. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25440. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25441. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25442. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25443. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25444. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25445. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25446. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25447. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25448. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25449. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25450. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25451. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25452. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25453. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25454. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25455. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25456. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25457. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25458. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25459. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25460. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25461. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25462. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25463. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25464. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25465. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25466. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25467. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25468. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25469. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25470. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25471. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25472. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25473. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25474. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25475. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25476. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25477. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25478. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25479. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25480. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25481. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25482. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25483. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25484. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25485. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25486. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25487. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25488. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25489. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25490. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25491. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25492. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25493. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25494. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25495. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25496. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25497. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25498. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25499. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25500. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25501. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25502. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25503. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25504. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25505. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25506. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25507. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25508. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25509. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25510. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25511. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25512. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25513. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25514. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25515. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25516. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25517. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25518. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25519. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25520. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25521. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25522. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25523. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25524. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25525. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25526. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25527. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25528. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25529. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25530. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25531. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25532. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25533. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25534. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25535. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25536. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25537. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25538. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25539. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25540. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25541. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25542. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25543. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25544. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25545. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25546. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25547. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25548. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25549. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25550. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25551. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25552. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25553. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25554. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25555. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25556. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25557. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25558. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25559. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25560. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25561. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25562. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25563. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25564. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25565. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25566. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25567. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25568. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25569. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25570. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25571. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25572. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25573. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25574. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25575. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25576. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25577. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25578. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25579. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25580. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25581. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25582. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25583. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25584. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25585. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25586. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25587. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25588. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25589. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25590. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25591. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25592. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25593. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25594. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25595. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25596. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25597. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25598. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25599. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25600. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25601. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25602. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25603. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25604. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25605. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25606. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25607. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25608. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25609. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25610. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25611. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25612. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25613. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25614. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25615. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25616. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25617. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25618. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25619. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25620. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25621. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25622. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25623. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25624. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25625. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25626. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25627. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25628. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25629. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25630. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25631. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25632. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25633. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25634. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25635. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25636. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25637. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25638. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25639. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25640. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25641. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25642. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25643. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25644. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25645. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25646. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25647. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25648. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25649. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25650. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25651. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25652. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25653. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25654. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25655. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25656. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25657. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25658. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25659. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25660. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25661. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25662. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25663. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25664. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25665. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25666. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25667. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25668. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25669. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25670. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25671. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25672. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25673. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25674. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25675. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25676. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25677. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25678. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25679. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25680. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25681. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25682. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25683. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25684. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25685. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25686. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25687. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25688. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25689. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25690. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25691. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25692. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25693. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25694. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25695. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25696. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25697. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25698. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25699. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25700. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25701. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25702. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25703. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25704. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25705. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25706. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25707. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25708. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25709. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25710. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25711. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25712. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25713. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25714. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25715. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25716. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25717. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25718. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25719. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25720. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25721. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25722. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25723. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25724. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25725. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25726. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25727. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25728. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25729. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25730. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25731. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25732. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25733. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25734. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25735. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25736. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25737. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25738. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25739. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25740. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25741. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25742. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25743. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25744. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25745. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25746. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25747. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25748. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25749. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25750. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25751. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25752. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25753. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25754. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25755. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25756. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25757. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25758. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25759. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25760. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25761. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25762. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25763. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25764. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25765. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25766. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25767. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25768. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25769. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25770. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25771. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25772. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25773. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25774. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25775. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25776. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25777. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25778. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25779. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25780. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25781. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25782. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25783. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25784. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25785. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25786. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25787. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25788. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25789. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25790. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25791. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25792. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25793. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25794. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25795. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25796. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25797. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25798. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25799. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25800. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25801. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25802. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25803. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25804. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25805. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25806. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25807. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25808. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25809. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25810. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25811. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25812. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25813. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25814. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25815. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25816. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25817. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25818. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25819. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25820. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25821. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25822. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25823. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25824. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25825. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25826. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25827. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25828. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25829. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25830. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25831. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25832. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25833. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25834. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25835. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25836. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25837. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25838. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25839. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25840. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25841. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25842. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25843. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25844. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25845. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25846. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25847. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25848. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25849. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25850. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25851. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25852. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25853. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25854. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25855. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25856. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25857. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25858. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25859. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25860. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25861. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25862. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25863. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25864. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25865. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25866. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25867. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25868. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25869. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25870. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25871. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25872. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25873. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25874. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25875. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25876. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25877. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25878. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25879. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25880. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25881. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25882. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25883. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25884. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25885. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25886. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25887. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25888. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25889. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25890. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25891. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25892. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25893. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25894. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25895. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25896. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25897. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25898. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25899. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25900. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25901. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25902. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25903. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25904. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25905. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25906. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25907. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25908. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25909. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25910. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25911. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25912. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25913. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25914. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25915. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25916. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25917. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25918. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25919. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25920. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25921. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25922. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25923. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25924. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25925. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25926. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25927. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25928. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25929. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25930. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25931. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25932. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25933. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25934. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25935. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25936. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25937. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25938. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25939. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25940. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25941. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25942. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25943. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25944. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25945. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25946. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25947. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25948. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25949. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25950. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25951. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25952. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25953. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25954. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25955. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25956. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25957. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25958. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25959. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25960. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25961. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25962. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25963. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25964. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25965. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25966. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25967. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25968. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25969. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25970. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25971. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25972. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25973. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25974. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25975. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25976. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25977. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25978. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25979. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25980. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25981. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25982. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25983. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25984. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25985. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25986. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25987. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25988. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25989. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25990. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25991. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25992. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25993. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25994. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25995. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25996. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25997. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25998. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25999. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26000. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26001. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26002. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26003. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26004. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26005. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26006. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26007. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26008. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  26009. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26010. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26011. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26012. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26013. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26014. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26015. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26016. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26017. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26018. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26019. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26020. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26021. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26022. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26023. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26024. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26025. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26026. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26027. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26028. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26029. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26030. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26031. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  26032. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26033. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26034. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26035. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26036. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26037. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26038. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26039. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26040. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26041. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26042. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26043. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26044. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26045. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26046. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26047. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26048. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26049. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26050. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26051. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26052. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26053. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26054. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  26055. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26056. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26057. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26058. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26059. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26060. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26061. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26062. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26063. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26064. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26065. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26066. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26067. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26068. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26069. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26070. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26071. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26072. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26073. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  26074. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26075. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26076. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26077. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26078. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26079. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26080. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26081. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26082. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26083. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26084. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26085. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26086. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26087. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26088. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26089. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26090. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  26091. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26092. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26093. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26094. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26095. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26096. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26097. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26098. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26099. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26100. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26101. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26102. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26103. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26104. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26105. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26106. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26107. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26108. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26109. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  26110. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26111. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26112. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26113. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26114. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26115. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26116. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26117. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26118. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26119. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26120. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26121. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26122. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26123. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26124. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26125. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26126. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26127. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26128. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  26129. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26130. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26131. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26132. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26133. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26134. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26135. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26136. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26137. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26138. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26139. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26140. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26141. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26142. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26143. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26144. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26145. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26146. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26147. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  26148. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  26149. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  26150. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  26151. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  26152. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  26153. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  26154. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  26155. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26156. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26157. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26158. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26159. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26160. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26161. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26162. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26163. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26164. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26165. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26166. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26167. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26168. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26169. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26170. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26171. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26172. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26173. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26174. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26175. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26176. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26177. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26178. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26179. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26180. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26181. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26182. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26183. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26184. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26185. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26186. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26187. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26188. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26189. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26190. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26191. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26192. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26193. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26194. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26195. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26196. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26197. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26198. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26199. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26200. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26201. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26202. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26203. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26204. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26205. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26206. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26207. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26208. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26209. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26210. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26211. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26212. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26213. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26214. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26215. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26216. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26217. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26218. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26219. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26220. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26221. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26222. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26223. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26224. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26225. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26226. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26227. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26228. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26229. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26230. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26231. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26232. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26233. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26234. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26235. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26236. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26237. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26238. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26239. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26240. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26241. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26242. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26243. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26244. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26245. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26246. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26247. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26248. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26249. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26250. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26251. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26252. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26253. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26254. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26255. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26256. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26257. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26258. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26259. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26260. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26261. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26262. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26263. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26264. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26265. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26266. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26267. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26268. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26269. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26270. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26271. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26272. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26273. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26274. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26275. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26276. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26277. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26278. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26279. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26280. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26281. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26282. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26283. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26284. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26285. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26286. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26287. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26288. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26289. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26290. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26291. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26292. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26293. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26294. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26295. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26296. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26297. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26298. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26299. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26300. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26301. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26302. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26303. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26304. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26305. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26306. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26307. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26308. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26309. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26310. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26311. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26312. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26313. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26314. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26315. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26316. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26317. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26318. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26319. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26320. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26321. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26322. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26323. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26324. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26325. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26326. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26327. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26328. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26329. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26330. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26331. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26332. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26333. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26334. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26335. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26336. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26337. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26338. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26339. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26340. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26341. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26342. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26343. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26344. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26345. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26346. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26347. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26348. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26349. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26350. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26351. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26352. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26353. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26354. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26355. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26356. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26357. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26358. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26359. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26360. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26361. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26362. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26363. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26364. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26365. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26366. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26367. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26368. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26369. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26370. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26371. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26372. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26373. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26374. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26375. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26376. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26377. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26378. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26379. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26380. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26381. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26382. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26383. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26384. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26385. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26386. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26387. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26388. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26389. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26390. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26391. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26392. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26393. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26394. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26395. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26396. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26397. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26398. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26399. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26400. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26401. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26402. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26403. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26404. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26405. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26406. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26407. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26408. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26409. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26410. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26411. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26412. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26413. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26414. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26415. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26416. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26417. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26418. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26419. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26420. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26421. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26422. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26423. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26424. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26425. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26426. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26427. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26428. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26429. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26430. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26431. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26432. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26433. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26434. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26435. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26436. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26437. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26438. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26439. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26440. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26441. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26442. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26443. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26444. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26445. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26446. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26447. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26448. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26449. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26450. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26451. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26452. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26453. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26454. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26455. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26456. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26457. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26458. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26459. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26460. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26461. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26462. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26463. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26464. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26465. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26466. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26467. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26468. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26469. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26470. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26471. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26472. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26473. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26474. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26475. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26476. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26477. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26478. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26479. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26480. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26481. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26482. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26483. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26484. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26485. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26486. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26487. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26488. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26489. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26490. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26491. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26492. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26493. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26494. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26495. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26496. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26497. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26498. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26499. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26500. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26501. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26502. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26503. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26504. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26505. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26506. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26507. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26508. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26509. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26510. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26511. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26512. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26513. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26514. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26515. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26516. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26517. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26518. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26519. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26520. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26521. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26522. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26523. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26524. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26525. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26526. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26527. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26528. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26529. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26530. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26531. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26532. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26533. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26534. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26535. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26536. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26537. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26538. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26539. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26540. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26541. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26542. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26543. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26544. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26545. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26546. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26547. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26548. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26549. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26550. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26551. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26552. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26553. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26554. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26555. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26556. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26557. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26558. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26559. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26560. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26561. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26562. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26563. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26564. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26565. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26566. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26567. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26568. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26569. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26570. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26571. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26572. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26573. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26574. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26575. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26576. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26577. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26578. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26579. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26580. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26581. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26582. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26583. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26584. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26585. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26586. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26587. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26588. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26589. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26590. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26591. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26592. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26593. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26594. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26595. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26596. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26597. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26598. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26599. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26600. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26601. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26602. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26603. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26604. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26605. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26606. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26607. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26608. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26609. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26610. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26611. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26612. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26613. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26614. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26615. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26616. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26617. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26618. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26619. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26620. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26621. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26622. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26623. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26624. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26625. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26626. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26627. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26628. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26629. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26630. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26631. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26632. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26633. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26634. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26635. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26636. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26637. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26638. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26639. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26640. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26641. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26642. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26643. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26644. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26645. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26646. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26647. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26648. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26649. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26650. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26651. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26652. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26653. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26654. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26655. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26656. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26657. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26658. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26659. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26660. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26661. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26662. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26663. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26664. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26665. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26666. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26667. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26668. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26669. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26670. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26671. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26672. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26673. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26674. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26675. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26676. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26677. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26678. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26679. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26680. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26681. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26682. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26683. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26684. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26685. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26686. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26687. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26688. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26689. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26690. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26691. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26692. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26693. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26694. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26695. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26696. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26697. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26698. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26699. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26700. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26701. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26702. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26703. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26704. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26705. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26706. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26707. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26708. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26709. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26710. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26711. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26712. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26713. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26714. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26715. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26716. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26717. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26718. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26719. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26720. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26721. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26722. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26723. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26724. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26725. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26726. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26727. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26728. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26729. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26730. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26731. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26732. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26733. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26734. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26735. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26736. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26737. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26738. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26739. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26740. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26741. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26742. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26743. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26744. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26745. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26746. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26747. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26748. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26749. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26750. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26751. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26752. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26753. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26754. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26755. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26756. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26757. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26758. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26759. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26760. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26761. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26762. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26763. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26764. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26765. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26766. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26767. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26768. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26769. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26770. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26771. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26772. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26773. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26774. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26775. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26776. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26777. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26778. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26779. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26780. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26781. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26782. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26783. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26784. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26785. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26786. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26787. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26788. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26789. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26790. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26791. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26792. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26793. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26794. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26795. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26796. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26797. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26798. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26799. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26800. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26801. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26802. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26803. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26804. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26805. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26806. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26807. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26808. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26809. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26810. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26811. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26812. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26813. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26814. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26815. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26816. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26817. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26818. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26819. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26820. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26821. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26822. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26823. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26824. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26825. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26826. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26827. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26828. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26829. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26830. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26831. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26832. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26833. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26834. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26835. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26836. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26837. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26838. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26839. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26840. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26841. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26842. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26843. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26844. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26845. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26846. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26847. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26848. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26849. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26850. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26851. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26852. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26853. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26854. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26855. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26856. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26857. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26858. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26859. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26860. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26861. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26862. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26863. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26864. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26865. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26866. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26867. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26868. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26869. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26870. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26871. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26872. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26873. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26874. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26875. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26876. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26877. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26878. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26879. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26880. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26881. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26882. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26883. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26884. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26885. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26886. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26887. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26888. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26889. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26890. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26891. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26892. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26893. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26894. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26895. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26896. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26897. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26898. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26899. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26900. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26901. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26902. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26903. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26904. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26905. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26906. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26907. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26908. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26909. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26910. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26911. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26912. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26913. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26914. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26915. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26916. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26917. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26918. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26919. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26920. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26921. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26922. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26923. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26924. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26925. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26926. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26927. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26928. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26929. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26930. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26931. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26932. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26933. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26934. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26935. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26936. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26937. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26938. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26939. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26940. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26941. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26942. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26943. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26944. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26945. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26946. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26947. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26948. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26949. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26950. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26951. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26952. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26953. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26954. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26955. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26956. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26957. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26958. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26959. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26960. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26961. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26962. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26963. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26964. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26965. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26966. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26967. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26968. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26969. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26970. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26971. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26972. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26973. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26974. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26975. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26976. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26977. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26978. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26979. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26980. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26981. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26982. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26983. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26984. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26985. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26986. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26987. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26988. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26989. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26990. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26991. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26992. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26993. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26994. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26995. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26996. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26997. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26998. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26999. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27000. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27001. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27002. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27003. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27004. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27005. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  27006. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  27007. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  27008. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  27009. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  27010. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  27011. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  27012. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  27013. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27014. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27015. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27016. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27017. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27018. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27019. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27020. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27021. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27022. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  27023. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  27024. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  27025. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  27026. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  27027. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  27028. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  27029. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  27030. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27031. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27032. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27033. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27034. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27035. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27036. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27037. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27038. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27039. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  27040. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  27041. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  27042. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  27043. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  27044. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  27045. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  27046. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  27047. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27048. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27049. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27050. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27051. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27052. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27053. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27054. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27055. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27056. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  27057. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27058. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27059. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27060. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27061. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27062. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  27063. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27064. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27065. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27066. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  27067. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27068. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27069. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27070. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27071. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27072. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27073. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27074. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  27075. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27076. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27077. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27078. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27079. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27080. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  27081. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27082. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27083. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27084. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27085. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27086. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  27087. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27088. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27089. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27090. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27091. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27092. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  27093. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27094. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27095. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27096. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27097. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27098. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  27099. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  27100. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27101. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27102. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27103. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27104. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  27105. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27106. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27107. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27108. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27109. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27110. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  27111. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27112. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27113. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27114. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27115. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27116. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  27117. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27118. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27119. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27120. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27121. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27122. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  27123. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27124. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27125. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27126. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27127. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27128. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  27129. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27130. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27131. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27132. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27133. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27134. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  27135. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27136. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27137. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27138. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27139. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27140. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  27141. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27142. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27143. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27144. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27145. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27146. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  27147. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27148. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27149. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27150. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27151. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27152. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  27153. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27154. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27155. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27156. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27157. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27158. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  27159. {"HDMI", NULL, "HDMI_DL_HL"},
  27160. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27161. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27162. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27163. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27164. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27165. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27166. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27167. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  27168. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27169. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27170. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27171. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27172. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27173. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27174. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27175. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  27176. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27177. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27178. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27179. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27180. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27181. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  27182. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27183. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27184. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27185. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27186. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27187. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  27188. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27189. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27190. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27191. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27192. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27193. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27194. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27195. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  27196. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27197. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27198. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27199. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27200. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27201. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27202. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  27203. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27204. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27205. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27206. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27207. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27208. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27209. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  27210. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27211. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27212. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27213. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27214. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27215. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27216. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27217. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27218. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  27219. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27220. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27221. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27222. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27223. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27224. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27225. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27226. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27227. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  27228. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  27229. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27230. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27231. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27232. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27233. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27234. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27235. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27236. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  27237. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  27238. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27239. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27240. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27241. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27242. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27243. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27244. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27245. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  27246. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27247. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27248. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27249. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27250. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  27251. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27252. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  27253. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27254. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  27255. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27256. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27257. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27258. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  27259. {"PROXY_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27260. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27261. {"PROXY_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27262. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27263. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27264. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27265. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27266. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  27267. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27268. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27269. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27270. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  27271. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27272. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27273. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27274. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27275. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27276. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27277. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  27278. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  27279. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  27280. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  27281. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  27282. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27283. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27284. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27285. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27286. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27287. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27288. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27289. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27290. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27291. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27292. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27293. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27294. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27295. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27296. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27297. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27298. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27299. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27300. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27301. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27302. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27303. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27304. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27305. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27306. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27307. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27308. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27309. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27310. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27311. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27312. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27313. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27314. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27315. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27316. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27317. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27318. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27319. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27320. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27321. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27322. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27323. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27324. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27325. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27326. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27327. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27328. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27329. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27330. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27331. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27332. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27333. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27334. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27335. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27336. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27337. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27338. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27339. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27340. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27341. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27342. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27343. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27344. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27345. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27346. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27347. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27348. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27349. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27350. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27351. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27352. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27353. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27354. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27355. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27356. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27357. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27358. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27359. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27360. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27361. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27362. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27363. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27364. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27365. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27366. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27367. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27368. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  27369. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  27370. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  27371. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  27372. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  27373. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  27374. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  27375. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  27376. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  27377. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  27378. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  27379. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  27380. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  27381. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  27382. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  27383. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  27384. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  27385. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  27386. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  27387. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  27388. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  27389. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  27390. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  27391. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  27392. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  27393. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  27394. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  27395. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  27396. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  27397. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  27398. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  27399. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  27400. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  27401. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27402. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  27403. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  27404. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  27405. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  27406. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  27407. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  27408. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  27409. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  27410. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27411. {"VoiceMMode1_Tx Mixer", "PROXY_TX_MMode1", "PROXY_TX"},
  27412. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  27413. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  27414. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  27415. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  27416. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  27417. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  27418. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  27419. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  27420. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  27421. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  27422. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  27423. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  27424. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  27425. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  27426. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  27427. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  27428. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  27429. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  27430. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  27431. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  27432. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  27433. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  27434. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  27435. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  27436. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  27437. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  27438. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  27439. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27440. {"VoiceMMode2_Tx Mixer", "PROXY_TX_MMode2", "PROXY_TX"},
  27441. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  27442. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  27443. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  27444. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  27445. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  27446. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  27447. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  27448. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  27449. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  27450. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  27451. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  27452. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27453. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27454. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27455. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27456. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27457. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27458. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27459. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27460. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27461. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27462. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27463. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27464. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27465. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27466. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27467. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27468. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27469. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27470. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27471. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27472. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27473. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27474. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27475. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27476. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27477. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27478. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27479. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27480. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27481. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27482. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27483. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27484. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27485. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27486. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27487. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27488. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27489. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27490. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27491. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27492. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27493. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27494. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27495. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27496. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27497. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27498. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27499. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27500. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27501. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27502. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27503. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27504. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27505. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27506. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27507. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27508. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27509. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27510. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27511. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27512. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27513. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27514. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27515. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27516. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27517. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27518. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27519. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27520. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27521. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27522. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27523. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27524. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27525. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27526. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27527. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27528. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27529. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27530. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27531. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27532. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27533. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27534. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27535. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27536. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27537. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27538. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27539. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27540. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27541. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27542. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27543. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27544. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27545. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27546. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27547. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27548. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27549. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27550. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27551. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27552. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27553. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27554. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27555. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27556. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27557. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27558. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27559. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27560. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27561. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27562. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27563. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27564. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27565. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27566. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27567. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27568. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27569. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27570. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27571. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27572. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27573. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27574. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27575. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27576. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27577. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27578. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27579. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27580. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27581. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27582. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27583. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27584. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27585. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27586. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27587. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27588. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27589. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27590. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27591. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27592. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27593. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27594. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27595. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27596. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27597. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27598. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27599. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27600. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27601. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27602. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27603. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27604. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27605. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27606. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27607. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27608. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27609. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27610. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27611. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27612. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27613. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27614. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27615. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27616. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27617. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27618. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27619. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27620. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27621. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27622. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27623. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27624. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27625. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27626. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27627. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27628. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27629. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27630. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27631. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27632. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27633. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27634. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27635. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27636. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27637. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27638. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27639. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27640. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27641. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27642. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27643. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27644. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27645. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27646. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27647. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27648. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27649. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27650. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27651. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27652. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27653. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27654. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27655. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27656. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27657. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27658. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27659. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27660. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27661. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27662. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27663. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27664. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27665. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27666. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27667. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27668. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27669. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27670. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27671. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27672. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27673. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27674. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27675. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27676. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27677. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27678. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27679. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27680. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27681. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27682. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27683. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27684. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27685. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27686. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27687. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27688. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27689. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27690. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27691. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27692. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27693. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27694. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27695. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27696. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27697. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27698. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27699. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27700. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27701. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27702. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27703. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27704. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27705. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27706. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27707. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27708. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27709. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27710. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27711. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27712. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27713. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27714. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27715. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27716. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27717. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27718. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27719. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27720. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27721. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27722. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27723. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27724. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27725. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27726. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27727. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27728. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27729. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27730. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27731. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27732. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27733. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27734. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27735. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27736. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27737. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27738. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27739. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27740. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27741. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27742. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27743. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27744. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27745. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27746. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27747. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27748. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27749. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27750. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27751. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27752. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27753. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27754. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27755. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27756. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27757. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27758. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27759. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27760. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27761. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27762. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27763. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27764. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27765. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27766. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27767. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27768. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27769. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27770. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27771. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27772. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27773. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27774. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27775. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27776. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27777. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27778. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27779. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27780. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27781. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27782. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27783. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27784. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27785. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27786. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27787. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27788. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27789. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27790. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27791. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27792. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27793. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27794. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27795. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27796. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27797. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27798. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27799. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27800. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27801. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27802. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27803. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27804. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27805. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27806. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27807. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27808. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27809. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27810. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27811. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27812. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27813. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27814. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27815. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27816. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27817. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27818. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27819. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27820. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27821. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27822. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27823. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27824. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27825. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27826. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27827. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27828. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27829. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27830. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27831. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27832. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27833. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27834. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27835. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27836. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27837. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27838. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27839. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27840. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27841. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27842. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27843. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27844. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27845. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27846. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27847. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27848. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27849. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27850. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27851. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27852. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27853. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27854. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27855. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27856. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27857. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27858. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27859. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27860. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27861. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27862. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27863. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27864. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27865. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27866. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27867. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27868. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27869. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27870. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27871. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27872. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27873. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27874. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27875. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27876. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27877. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27878. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27879. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27880. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27881. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27882. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27883. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27884. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27885. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27886. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27887. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27888. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27889. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27890. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27891. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27892. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27893. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27894. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27895. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27896. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27897. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27898. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27899. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27900. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27901. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27902. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27903. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27904. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27905. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27906. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27907. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27908. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27909. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27910. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27911. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27912. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27913. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27914. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27915. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27916. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27917. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27918. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27919. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27920. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27921. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27922. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27923. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27924. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27925. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27926. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27927. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27928. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27929. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27930. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27931. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27932. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27933. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27934. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27935. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27936. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27937. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27938. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27939. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27940. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27941. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27942. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27943. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27944. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27945. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27946. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27947. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27948. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27949. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27950. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27951. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27952. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27953. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27954. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27955. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27956. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27957. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27958. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27959. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27960. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27961. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27962. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27963. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27964. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27965. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27966. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27967. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27968. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27969. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27970. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27971. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27972. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27973. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27974. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27975. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27976. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27977. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27978. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27979. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27980. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27981. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27982. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27983. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27984. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27985. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27986. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27987. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27988. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27989. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27990. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27991. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27992. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27993. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27994. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27995. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27996. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27997. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27998. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27999. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28000. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28001. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28002. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28003. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28004. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  28005. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28006. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28007. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28008. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28009. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28010. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28011. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28012. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28013. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28014. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28015. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28016. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28017. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28018. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28019. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28020. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28021. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28022. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28023. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28024. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28025. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28026. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28027. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28028. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28029. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  28030. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28031. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28032. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28033. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28034. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28035. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28036. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28037. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28038. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28039. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28040. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28041. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28042. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28043. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28044. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28045. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28046. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28047. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28048. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28049. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28050. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28051. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28052. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28053. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28054. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  28055. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28056. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28057. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28058. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28059. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28060. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28061. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28062. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28063. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28064. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28065. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28066. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28067. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28068. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28069. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28070. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28071. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28072. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28073. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28074. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28075. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28076. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28077. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28078. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28079. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  28080. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28081. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28082. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28083. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28084. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28085. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28086. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28087. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28088. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28089. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28090. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28091. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28092. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28093. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28094. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28095. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28096. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28097. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28098. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28099. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28100. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28101. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28102. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28103. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28104. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  28105. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28106. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28107. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28108. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28109. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28110. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28111. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28112. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28113. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28114. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28115. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28116. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28117. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28118. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28119. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28120. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28121. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28122. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28123. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28124. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28125. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28126. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28127. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28128. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28129. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  28130. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28131. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28132. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  28133. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28134. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28135. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28136. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28137. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28138. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28139. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28140. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28141. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28142. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28143. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28144. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28145. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28146. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28147. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28148. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28149. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28150. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28151. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28152. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28153. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28154. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28155. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28156. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28157. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  28158. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28159. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28160. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28161. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28162. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28163. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28164. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28165. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28166. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28167. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28168. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28169. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28170. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28171. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28172. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28173. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28174. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28175. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28176. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28177. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28178. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28179. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28180. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28181. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28182. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  28183. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28184. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28185. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28186. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28187. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28188. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28189. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28190. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28191. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28192. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28193. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28194. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28195. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28196. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28197. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28198. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28199. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28200. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28201. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28202. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28203. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28204. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28205. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28206. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28207. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  28208. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28209. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28210. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28211. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28212. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28213. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28214. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28215. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28216. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28217. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28218. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28219. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28220. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28221. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28222. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28223. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28224. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28225. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28226. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28227. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28228. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28229. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28230. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28231. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28232. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  28233. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  28234. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28235. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28236. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  28237. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28238. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28239. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28240. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28241. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28242. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28243. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28244. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28245. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28246. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28247. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28248. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28249. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28250. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28251. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28252. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28253. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28254. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28255. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28256. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28257. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  28258. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28259. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28260. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28261. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28262. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28263. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28264. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28265. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28266. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28267. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28268. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28269. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28270. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28271. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28272. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28273. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28274. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28275. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28276. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28277. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28278. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  28279. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28280. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28281. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28282. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28283. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28284. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28285. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28286. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28287. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28288. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28289. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28290. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28291. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28292. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28293. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28294. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28295. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28296. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28297. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28298. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28299. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  28300. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28301. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28302. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28303. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28304. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28305. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28306. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28307. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28308. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28309. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28310. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28311. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28312. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28313. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28314. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28315. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28316. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28317. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28318. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28319. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28320. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  28321. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28322. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28323. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28324. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28325. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28326. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28327. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28328. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28329. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28330. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28331. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28332. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28333. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  28334. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28335. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28336. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28337. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28338. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28339. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28340. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28341. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28342. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28343. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28344. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28345. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28346. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  28347. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28348. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28349. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28350. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28351. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  28352. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28353. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28354. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28355. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  28356. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28357. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28358. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28359. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28360. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  28361. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28362. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28363. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28364. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28365. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28366. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28367. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28368. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28369. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28370. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28371. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28372. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28373. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28374. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28375. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28376. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28377. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28378. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28379. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28380. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28381. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  28382. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28383. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28384. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  28385. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  28386. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  28387. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  28388. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  28389. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  28390. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28391. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28392. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28393. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28394. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28395. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28396. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28397. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  28398. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28399. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28400. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28401. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28402. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  28403. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28404. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28405. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28406. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  28407. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28408. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28409. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28410. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  28411. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28412. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28413. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28414. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  28415. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28416. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28417. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28418. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28419. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28420. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28421. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28422. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28423. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28424. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28425. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  28426. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28427. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28428. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28429. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28430. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28431. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28432. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28433. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28434. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28435. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  28436. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28437. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28438. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28439. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28440. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28441. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28442. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28443. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28444. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28445. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28446. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28447. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  28448. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28449. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28450. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28451. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28452. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28453. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28454. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28455. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28456. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28457. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28458. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28459. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28460. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28461. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28462. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28463. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28464. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28465. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28466. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28467. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28468. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28469. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28470. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28471. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28472. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28473. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28474. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28475. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28476. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28477. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28478. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28479. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28480. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28481. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28482. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28483. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28484. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28485. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28486. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28487. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28488. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28489. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28490. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28491. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28492. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28493. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28494. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28495. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28496. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28497. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28498. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28499. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28500. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28501. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28502. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28503. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28504. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28505. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28506. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28507. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28508. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28509. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28510. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28511. {"HDMI_RX_MS Port Mixer", "MI2S_TX", "MI2S_TX"},
  28512. {"HDMI_MS", NULL, "HDMI_RX_MS Port Mixer"},
  28513. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28514. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28515. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28516. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28517. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28518. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28519. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28520. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28521. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28522. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28523. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28524. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28525. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28526. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28527. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28528. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28529. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28530. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28531. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28532. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28533. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28534. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28535. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28536. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28537. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28538. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28539. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28540. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28541. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28542. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28543. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28544. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28545. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28546. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28547. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28548. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28549. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28550. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28551. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28552. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28553. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28554. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28555. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28556. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28557. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28558. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28559. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28560. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28561. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28562. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28563. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28564. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28565. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28566. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28567. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28568. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28569. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28570. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28571. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28572. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28573. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28574. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28575. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28576. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28577. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28578. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28579. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28580. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28581. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28582. /* Backend Enablement */
  28583. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28584. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28585. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28586. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28587. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28588. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28589. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28590. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28591. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28592. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28593. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28594. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28595. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28596. {"BE_OUT", NULL, "HDMI"},
  28597. {"BE_OUT", NULL, "HDMI_MS"},
  28598. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28599. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28600. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28601. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28602. {"BE_OUT", NULL, "MI2S_RX"},
  28603. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28604. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28605. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28606. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28607. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28608. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28609. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28610. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28611. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28612. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28613. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28614. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28615. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28616. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28617. {"BE_OUT", NULL, "INT_FM_RX"},
  28618. {"BE_OUT", NULL, "PCM_RX"},
  28619. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28620. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28621. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28622. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28623. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28624. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28625. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28626. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28627. {"BE_OUT", NULL, "INT_FM_RX"},
  28628. {"BE_OUT", NULL, "PCM_RX"},
  28629. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28630. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28631. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28632. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28633. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28634. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28635. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28636. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28637. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28638. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28639. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28640. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28641. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28642. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28643. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28644. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28645. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28646. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28647. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28648. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28649. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28650. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28651. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28652. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28653. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28654. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28655. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28656. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28657. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28658. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28659. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28660. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28661. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28662. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28663. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28664. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28665. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28666. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28667. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28668. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28669. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28670. {"BE_OUT", NULL, "PROXY_RX"},
  28671. {"PRI_I2S_TX", NULL, "BE_IN"},
  28672. {"MI2S_TX", NULL, "BE_IN"},
  28673. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28674. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28675. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28676. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28677. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28678. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28679. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28680. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28681. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28682. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28683. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28684. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28685. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28686. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28687. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28688. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28689. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28690. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28691. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28692. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28693. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28694. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28695. {"INT_FM_TX", NULL, "BE_IN"},
  28696. {"PCM_TX", NULL, "BE_IN"},
  28697. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28698. {"BE_OUT", NULL, "STUB_RX"},
  28699. {"STUB_TX", NULL, "BE_IN"},
  28700. {"STUB_1_TX", NULL, "BE_IN"},
  28701. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28702. {"AUX_PCM_TX", NULL, "BE_IN"},
  28703. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28704. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28705. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28706. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28707. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28708. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28709. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28710. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28711. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28712. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28713. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28714. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28715. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28716. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28717. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28718. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28719. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28720. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28721. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28722. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28723. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28724. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28725. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28726. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28727. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28728. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28729. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28730. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28731. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28732. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28733. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28734. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28735. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28736. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28737. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28738. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28739. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28740. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28741. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28742. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28743. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28744. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28745. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28746. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28747. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28748. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28749. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28750. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28751. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28752. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28753. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28754. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28755. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28756. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28757. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28758. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28759. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28760. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28761. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28762. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28763. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28764. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28765. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28766. {"PROXY_TX", NULL, "BE_IN"},
  28767. };
  28768. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28769. struct snd_pcm_hw_params *params)
  28770. {
  28771. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28772. unsigned int be_id = rtd->dai_link->id;
  28773. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28774. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28775. return -EINVAL;
  28776. }
  28777. mutex_lock(&routing_lock);
  28778. msm_bedais[be_id].sample_rate = params_rate(params);
  28779. msm_bedais[be_id].channel = params_channels(params);
  28780. msm_bedais[be_id].format = params_format(params);
  28781. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28782. __func__, msm_bedais[be_id].sample_rate,
  28783. msm_bedais[be_id].format, be_id);
  28784. mutex_unlock(&routing_lock);
  28785. return 0;
  28786. }
  28787. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28788. {
  28789. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28790. unsigned int be_id = rtd->dai_link->id;
  28791. int i, session_type, path_type, topology;
  28792. struct msm_pcm_routing_bdai_data *bedai;
  28793. struct msm_pcm_routing_fdai_data *fdai;
  28794. pr_debug("%s: substream->pcm->id:%s\n",
  28795. __func__, substream->pcm->id);
  28796. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28797. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28798. return -EINVAL;
  28799. }
  28800. bedai = &msm_bedais[be_id];
  28801. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28802. 0 : 1);
  28803. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28804. path_type = ADM_PATH_PLAYBACK;
  28805. else
  28806. path_type = ADM_PATH_LIVE_REC;
  28807. mutex_lock(&routing_lock);
  28808. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28809. if (!is_mm_lsm_fe_id(i))
  28810. continue;
  28811. fdai = &fe_dai_map[i][session_type];
  28812. if (fdai->strm_id != INVALID_SESSION) {
  28813. int idx;
  28814. int port_id;
  28815. unsigned long copp =
  28816. session_copp_map[i][session_type][be_id];
  28817. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28818. if (test_bit(idx, &copp))
  28819. break;
  28820. if (idx >= MAX_COPPS_PER_PORT) {
  28821. pr_debug("%s: copp idx is invalid, exiting\n",
  28822. __func__);
  28823. continue;
  28824. }
  28825. fdai->be_srate = bedai->sample_rate;
  28826. port_id = get_port_id(bedai->port_id);
  28827. topology = adm_get_topology_for_port_copp_idx(port_id,
  28828. idx);
  28829. msm_routing_unload_topology(topology);
  28830. adm_close(port_id, fdai->perf_mode, idx);
  28831. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28832. __func__, copp, i, session_type, be_id,
  28833. topology);
  28834. clear_bit(idx,
  28835. &session_copp_map[i][session_type][be_id]);
  28836. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28837. (fdai->passthr_mode == LEGACY_PCM))
  28838. msm_pcm_routing_deinit_pp(port_id,
  28839. topology);
  28840. }
  28841. }
  28842. bedai->active = 0;
  28843. bedai->sample_rate = 0;
  28844. bedai->channel = 0;
  28845. mutex_unlock(&routing_lock);
  28846. return 0;
  28847. }
  28848. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28849. {
  28850. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28851. unsigned int be_id = rtd->dai_link->id;
  28852. int i, path_type, topology;
  28853. int session_type = INVALID_SESSION;
  28854. struct msm_pcm_routing_bdai_data *bedai;
  28855. u32 channels, sample_rate;
  28856. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28857. struct msm_pcm_routing_fdai_data *fdai;
  28858. u32 session_id;
  28859. struct media_format_info voc_be_media_format;
  28860. bool is_lsm;
  28861. uint32_t copp_token = 0;
  28862. pr_debug("%s: substream->pcm->id:%s\n",
  28863. __func__, substream->pcm->id);
  28864. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28865. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28866. return -EINVAL;
  28867. }
  28868. bedai = &msm_bedais[be_id];
  28869. mutex_lock(&routing_lock);
  28870. if (bedai->active == 1)
  28871. goto done; /* Ignore prepare if back-end already active */
  28872. /* AFE port is not active at this point. However, still
  28873. * go ahead setting active flag under the notion that
  28874. * QDSP6 is able to handle ADM starting before AFE port
  28875. * is started.
  28876. */
  28877. bedai->active = 1;
  28878. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28879. if (!(is_mm_lsm_fe_id(i) &&
  28880. route_check_fe_id_adm_support(i)))
  28881. continue;
  28882. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28883. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28884. fdai = &fe_dai_map[i][session_type];
  28885. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28886. if (fdai->passthr_mode != LEGACY_PCM)
  28887. path_type = ADM_PATH_COMPRESSED_RX;
  28888. else
  28889. path_type = ADM_PATH_PLAYBACK;
  28890. } else {
  28891. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28892. (fdai->passthr_mode != LISTEN))
  28893. path_type = ADM_PATH_COMPRESSED_TX;
  28894. else
  28895. path_type = ADM_PATH_LIVE_REC;
  28896. }
  28897. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28898. (i <= MSM_FRONTEND_DAI_LSM8);
  28899. if (fdai->strm_id != INVALID_SESSION) {
  28900. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28901. int port_id = get_port_id(bedai->port_id);
  28902. if (session_type == SESSION_TYPE_TX &&
  28903. fdai->be_srate &&
  28904. (fdai->be_srate != bedai->sample_rate)) {
  28905. pr_debug("%s: flush strm %d diff BE rates\n",
  28906. __func__,
  28907. fdai->strm_id);
  28908. if (fdai->event_info.event_func)
  28909. fdai->event_info.event_func(
  28910. MSM_PCM_RT_EVT_BUF_RECFG,
  28911. fdai->event_info.priv_data);
  28912. fdai->be_srate = 0; /* might not need it */
  28913. }
  28914. bits_per_sample = msm_routing_get_bit_width(
  28915. bedai->format);
  28916. app_type =
  28917. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28918. if (app_type && is_lsm) {
  28919. app_type_idx =
  28920. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28921. sample_rate =
  28922. fe_dai_app_type_cfg[i][session_type][be_id]
  28923. .sample_rate;
  28924. bits_per_sample =
  28925. lsm_app_type_cfg[app_type_idx].bit_width;
  28926. } else if (app_type) {
  28927. app_type_idx =
  28928. msm_pcm_routing_get_app_type_idx(app_type);
  28929. sample_rate =
  28930. fe_dai_app_type_cfg[i][session_type]
  28931. [be_id].sample_rate;
  28932. bits_per_sample =
  28933. app_type_cfg[app_type_idx].bit_width;
  28934. copp_token =
  28935. fe_dai_app_type_cfg[i][session_type]
  28936. [be_id].copp_token;
  28937. } else
  28938. sample_rate = bedai->sample_rate;
  28939. /*
  28940. * check if ADM needs to be configured with different
  28941. * channel mapping than backend
  28942. */
  28943. if (!bedai->adm_override_ch)
  28944. channels = bedai->channel;
  28945. else
  28946. channels = bedai->adm_override_ch;
  28947. acdb_dev_id =
  28948. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28949. topology = msm_routing_get_adm_topology(i, session_type,
  28950. be_id);
  28951. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28952. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28953. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28954. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28955. be_bit_width = msm_routing_get_bit_width(
  28956. bedai->format);
  28957. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28958. || bedai->sample_rate == 352800) &&
  28959. be_bit_width == 32)
  28960. bits_per_sample = msm_routing_get_bit_width(
  28961. SNDRV_PCM_FORMAT_S32_LE);
  28962. copp_idx = adm_open(port_id, path_type,
  28963. sample_rate, channels, topology,
  28964. fdai->perf_mode, bits_per_sample,
  28965. app_type, acdb_dev_id,
  28966. session_type, fdai->passthr_mode, copp_token);
  28967. if ((copp_idx < 0) ||
  28968. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28969. pr_err("%s: adm open failed\n", __func__);
  28970. mutex_unlock(&routing_lock);
  28971. return -EINVAL;
  28972. }
  28973. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28974. __func__, i, session_type, be_id);
  28975. set_bit(copp_idx,
  28976. &session_copp_map[i][session_type][be_id]);
  28977. if (msm_is_resample_needed(
  28978. sample_rate,
  28979. bedai->sample_rate))
  28980. adm_copp_mfc_cfg(port_id, copp_idx,
  28981. bedai->sample_rate);
  28982. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28983. fdai->perf_mode, fdai->passthr_mode);
  28984. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28985. (fdai->passthr_mode == LEGACY_PCM))
  28986. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28987. topology, channels);
  28988. }
  28989. }
  28990. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28991. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28992. if (session_id) {
  28993. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28994. session_id);
  28995. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28996. voc_path_type = RX_PATH;
  28997. else
  28998. voc_path_type = TX_PATH;
  28999. voc_set_route_flag(session_id, voc_path_type, 1);
  29000. memset(&voc_be_media_format, 0,
  29001. sizeof(struct media_format_info));
  29002. voc_be_media_format.port_id = bedai->port_id;
  29003. voc_be_media_format.num_channels = bedai->channel;
  29004. voc_be_media_format.sample_rate = bedai->sample_rate;
  29005. voc_be_media_format.bits_per_sample = bedai->format;
  29006. /* Defaulting this to 1 for voice call usecases */
  29007. voc_be_media_format.channel_mapping[0] = 1;
  29008. voc_set_device_config(session_id, voc_path_type,
  29009. &voc_be_media_format);
  29010. if (voc_get_route_flag(session_id, RX_PATH) &&
  29011. voc_get_route_flag(session_id, TX_PATH))
  29012. voc_enable_device(session_id);
  29013. }
  29014. }
  29015. /* Check if backend is an external ec ref port and set as needed */
  29016. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  29017. memset(&voc_be_media_format, 0,
  29018. sizeof(struct media_format_info));
  29019. /* Get format info for ec ref port from msm_bedais[] */
  29020. voc_be_media_format.port_id = bedai->port_id;
  29021. voc_be_media_format.num_channels = bedai->channel;
  29022. voc_be_media_format.bits_per_sample = bedai->format;
  29023. voc_be_media_format.sample_rate = bedai->sample_rate;
  29024. /* Defaulting this to 1 for voice call usecases */
  29025. voc_be_media_format.channel_mapping[0] = 1;
  29026. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  29027. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  29028. __func__, voc_be_media_format.port_id,
  29029. voc_be_media_format.num_channels,
  29030. voc_be_media_format.bits_per_sample,
  29031. voc_be_media_format.sample_rate);
  29032. }
  29033. done:
  29034. mutex_unlock(&routing_lock);
  29035. return 0;
  29036. }
  29037. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  29038. int fe_id)
  29039. {
  29040. int index, topo_id, be_idx;
  29041. unsigned long pp_config = 0;
  29042. bool mute_on;
  29043. int latency, session_type;
  29044. bool compr_passthr_mode = true;
  29045. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  29046. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX
  29047. && port_id != HDMI_RX_MS) {
  29048. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  29049. __func__, port_id, copp_idx, fe_id);
  29050. return -EINVAL;
  29051. }
  29052. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29053. if (port_id == msm_bedais[be_idx].port_id)
  29054. break;
  29055. }
  29056. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29057. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29058. return -EINVAL;
  29059. }
  29060. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29061. if (msm_bedais_pp_params[index].port_id == port_id)
  29062. break;
  29063. }
  29064. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29065. pr_err("%s: Invalid backend pp params index %d\n",
  29066. __func__, index);
  29067. return -EINVAL;
  29068. }
  29069. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  29070. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  29071. pr_err("%s: Invalid passthrough topology 0x%x\n",
  29072. __func__, topo_id);
  29073. return -EINVAL;
  29074. }
  29075. session_type =
  29076. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29077. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29078. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  29079. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  29080. compr_passthr_mode = false;
  29081. pp_config = msm_bedais_pp_params[index].pp_params_config;
  29082. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  29083. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29084. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  29085. mute_on = msm_bedais_pp_params[index].mute_on;
  29086. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29087. adm_send_compressed_device_mute(port_id,
  29088. copp_idx,
  29089. mute_on);
  29090. }
  29091. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  29092. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29093. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  29094. &pp_config);
  29095. latency = msm_bedais_pp_params[index].latency;
  29096. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29097. adm_send_compressed_device_latency(port_id,
  29098. copp_idx,
  29099. latency);
  29100. }
  29101. return 0;
  29102. }
  29103. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  29104. {
  29105. uint32_t topology = NULL_COPP_TOPOLOGY;
  29106. void *cal_info = NULL;
  29107. uint32_t size = 0;
  29108. /* Retrieve cal_info size from cal data*/
  29109. if (data_size < sizeof(struct audio_cal_type_basic) +
  29110. sizeof(struct audio_cal_info_adm_top)) {
  29111. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  29112. goto done;
  29113. }
  29114. size = data_size - sizeof(struct audio_cal_type_basic);
  29115. cal_info = kzalloc(size, GFP_KERNEL);
  29116. if (!cal_info)
  29117. goto done;
  29118. memcpy(cal_info,
  29119. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  29120. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  29121. kfree(cal_info);
  29122. cal_info = NULL;
  29123. done:
  29124. pr_debug("%s: Using topology %d\n", __func__, topology);
  29125. return topology;
  29126. }
  29127. static void msm_routing_load_topology(size_t data_size, void *data)
  29128. {
  29129. uint32_t topology_id;
  29130. int ret = -EINVAL;
  29131. topology_id = msm_routing_get_topology(data_size, data);
  29132. if (topology_id != NULL_COPP_TOPOLOGY)
  29133. ret = q6core_load_unload_topo_modules(topology_id,
  29134. CORE_LOAD_TOPOLOGY);
  29135. if (ret < 0)
  29136. pr_debug("%s %d load topology failed\n",
  29137. __func__, topology_id);
  29138. }
  29139. static void msm_routing_unload_topology(uint32_t topology_id)
  29140. {
  29141. int ret = -EINVAL;
  29142. if (topology_id != NULL_COPP_TOPOLOGY)
  29143. ret = q6core_load_unload_topo_modules(topology_id,
  29144. CORE_UNLOAD_TOPOLOGY);
  29145. if (ret < 0)
  29146. pr_debug("%s %d unload topology failed\n",
  29147. __func__, topology_id);
  29148. }
  29149. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29150. struct snd_ctl_elem_value *ucontrol)
  29151. {
  29152. int pp_id = ucontrol->value.integer.value[0];
  29153. int port_id = 0;
  29154. int index, be_idx, i, topo_id, idx;
  29155. bool mute;
  29156. int latency, session_type;
  29157. bool compr_passthr_mode = true;
  29158. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  29159. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29160. port_id = msm_bedais[be_idx].port_id;
  29161. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX
  29162. || port_id == HDMI_RX_MS)
  29163. break;
  29164. }
  29165. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29166. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29167. return -EINVAL;
  29168. }
  29169. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29170. if (msm_bedais_pp_params[index].port_id == port_id)
  29171. break;
  29172. }
  29173. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29174. pr_err("%s: Invalid pp params backend index %d\n",
  29175. __func__, index);
  29176. return -EINVAL;
  29177. }
  29178. session_type =
  29179. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29180. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29181. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  29182. MSM_FRONTEND_DAI_MM_SIZE) {
  29183. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  29184. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  29185. compr_passthr_mode = false;
  29186. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29187. unsigned long copp =
  29188. session_copp_map[i]
  29189. [SESSION_TYPE_RX][be_idx];
  29190. if (!test_bit(idx, &copp))
  29191. continue;
  29192. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  29193. idx);
  29194. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  29195. continue;
  29196. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  29197. __func__, port_id, copp, msm_bedais[be_idx].active,
  29198. fe_dai_map[i][session_type].passthr_mode);
  29199. switch (pp_id) {
  29200. case ADM_PP_PARAM_MUTE_ID:
  29201. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29202. mute = ucontrol->value.integer.value[1] ? true : false;
  29203. msm_bedais_pp_params[index].mute_on = mute;
  29204. set_bit(ADM_PP_PARAM_MUTE_BIT,
  29205. &msm_bedais_pp_params[index].pp_params_config);
  29206. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29207. adm_send_compressed_device_mute(port_id,
  29208. idx, mute);
  29209. break;
  29210. case ADM_PP_PARAM_LATENCY_ID:
  29211. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29212. msm_bedais_pp_params[index].latency =
  29213. ucontrol->value.integer.value[1];
  29214. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  29215. &msm_bedais_pp_params[index].pp_params_config);
  29216. latency = msm_bedais_pp_params[index].latency =
  29217. ucontrol->value.integer.value[1];
  29218. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29219. adm_send_compressed_device_latency(port_id,
  29220. idx, latency);
  29221. break;
  29222. default:
  29223. pr_info("%s, device pp param %d not supported\n",
  29224. __func__, pp_id);
  29225. break;
  29226. }
  29227. }
  29228. }
  29229. return 0;
  29230. }
  29231. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29232. struct snd_ctl_elem_value *ucontrol)
  29233. {
  29234. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  29235. return 0;
  29236. }
  29237. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  29238. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29239. 0, 3, msm_routing_get_device_pp_params_mixer,
  29240. msm_routing_put_device_pp_params_mixer),
  29241. };
  29242. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  29243. struct snd_ctl_elem_value *ucontrol)
  29244. {
  29245. ucontrol->value.integer.value[0] =
  29246. core_get_license_status(ASM_MEDIA_FMT_APTX);
  29247. pr_debug("%s: status %ld\n", __func__,
  29248. ucontrol->value.integer.value[0]);
  29249. return 0;
  29250. }
  29251. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  29252. struct snd_ctl_elem_value *ucontrol)
  29253. {
  29254. int32_t status = 0;
  29255. status = core_set_license(ucontrol->value.integer.value[0],
  29256. APTX_CLASSIC_DEC_LICENSE_ID);
  29257. pr_debug("%s: status %d\n", __func__, status);
  29258. return status;
  29259. }
  29260. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  29261. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  29262. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  29263. msm_aptx_dec_license_control_put),
  29264. };
  29265. static int msm_routing_get_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29266. struct snd_ctl_elem_value *ucontrol)
  29267. {
  29268. return 0;
  29269. }
  29270. static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29271. struct snd_ctl_elem_value *ucontrol)
  29272. {
  29273. u16 port_id = 0;
  29274. int32_t clk_drift = 0;
  29275. uint32_t clk_reset = 0;
  29276. int be_idx, ret = -EINVAL;
  29277. be_idx = ucontrol->value.integer.value[0];
  29278. clk_drift = ucontrol->value.integer.value[1];
  29279. clk_reset = ucontrol->value.integer.value[2];
  29280. if (be_idx < 0 || be_idx >= MSM_BACKEND_DAI_MAX) {
  29281. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  29282. return -EINVAL;
  29283. }
  29284. if (!msm_bedais[be_idx].active && !clk_reset) {
  29285. pr_err("%s:BE is not active %d, cannot set clock drift\n",
  29286. __func__, be_idx);
  29287. return -EINVAL;
  29288. }
  29289. port_id = msm_bedais[be_idx].port_id;
  29290. pr_debug("%s: clk drift %d be idx %d clk reset %d port id 0x%x\n",
  29291. __func__, clk_drift, be_idx, clk_reset, port_id);
  29292. ret = afe_set_pll_clk_drift(port_id, clk_drift, clk_reset);
  29293. if (ret < 0)
  29294. pr_err("%s: failed to set pll clk drift\n", __func__);
  29295. return ret;
  29296. }
  29297. static const struct snd_kcontrol_new pll_clk_drift_controls[] = {
  29298. SOC_SINGLE_MULTI_EXT("PLL config data", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29299. 0, 128, msm_routing_get_pll_clk_drift, msm_routing_put_pll_clk_drift),
  29300. };
  29301. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  29302. struct snd_ctl_elem_value *ucontrol)
  29303. {
  29304. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  29305. uint32_t be_idx = ucontrol->value.integer.value[0];
  29306. int i;
  29307. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29308. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  29309. return -EINVAL;
  29310. }
  29311. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  29312. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  29313. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  29314. pr_err("%s: Invalid channel map %d\n",
  29315. __func__, channel_map[i]);
  29316. return -EINVAL;
  29317. }
  29318. }
  29319. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  29320. return 0;
  29321. }
  29322. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  29323. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  29324. MSM_BACKEND_DAI_MAX, 0,
  29325. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  29326. msm_routing_put_port_chmap_mixer),
  29327. };
  29328. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  29329. struct snd_ctl_elem_info *uinfo)
  29330. {
  29331. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  29332. uinfo->count = sizeof(be_dai_name_table);
  29333. return 0;
  29334. }
  29335. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  29336. unsigned int __user *bytes,
  29337. unsigned int size)
  29338. {
  29339. int i;
  29340. int ret = 0;
  29341. if (size < sizeof(be_dai_name_table)) {
  29342. pr_err("%s: invalid size %d requested, returning\n",
  29343. __func__, size);
  29344. ret = -EINVAL;
  29345. goto done;
  29346. }
  29347. /*
  29348. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  29349. * needed when adding new backends
  29350. */
  29351. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29352. be_dai_name_table[i].be_id = i;
  29353. strlcpy(be_dai_name_table[i].be_name,
  29354. msm_bedais[i].name,
  29355. LPASS_BE_NAME_MAX_LENGTH);
  29356. }
  29357. ret = copy_to_user(bytes, &be_dai_name_table,
  29358. sizeof(be_dai_name_table));
  29359. if (ret) {
  29360. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  29361. ret = -EFAULT;
  29362. }
  29363. done:
  29364. return ret;
  29365. }
  29366. static const struct snd_kcontrol_new
  29367. msm_routing_be_dai_name_table_mixer_controls[] = {
  29368. {
  29369. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  29370. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  29371. .info = msm_routing_be_dai_name_table_info,
  29372. .name = "Backend DAI Name Table",
  29373. .tlv.c = snd_soc_bytes_tlv_callback,
  29374. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  29375. .max = sizeof(be_dai_name_table),
  29376. .get = msm_routing_be_dai_name_table_tlv_get,
  29377. }
  29378. },
  29379. };
  29380. static int msm_routing_stereo_channel_reverse_control_get(
  29381. struct snd_kcontrol *kcontrol,
  29382. struct snd_ctl_elem_value *ucontrol)
  29383. {
  29384. ucontrol->value.integer.value[0] = swap_ch;
  29385. pr_debug("%s: Swap channel value: %ld\n", __func__,
  29386. ucontrol->value.integer.value[0]);
  29387. return 0;
  29388. }
  29389. static int msm_routing_stereo_channel_reverse_control_put(
  29390. struct snd_kcontrol *kcontrol,
  29391. struct snd_ctl_elem_value *ucontrol)
  29392. {
  29393. int i, idx, be_index, port_id;
  29394. int ret = 0;
  29395. unsigned long copp;
  29396. pr_debug("%s Swap channel value:%ld\n", __func__,
  29397. ucontrol->value.integer.value[0]);
  29398. swap_ch = ucontrol->value.integer.value[0];
  29399. mutex_lock(&routing_lock);
  29400. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29401. port_id = msm_bedais[be_index].port_id;
  29402. if (!msm_bedais[be_index].active)
  29403. continue;
  29404. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29405. MSM_FRONTEND_DAI_MM_SIZE) {
  29406. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29407. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29408. if (!test_bit(idx, &copp))
  29409. continue;
  29410. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29411. __func__, port_id, idx);
  29412. ret = adm_swap_speaker_channels(
  29413. port_id, idx,
  29414. msm_bedais[be_index].sample_rate,
  29415. swap_ch);
  29416. if (ret) {
  29417. pr_err("%s:Swap_channel failed, err=%d\n",
  29418. __func__, ret);
  29419. goto done;
  29420. }
  29421. }
  29422. }
  29423. }
  29424. done:
  29425. mutex_unlock(&routing_lock);
  29426. return ret;
  29427. }
  29428. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29429. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29430. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29431. msm_routing_stereo_channel_reverse_control_put),
  29432. };
  29433. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29434. struct snd_ctl_elem_info *uinfo)
  29435. {
  29436. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29437. uinfo->count = 1;
  29438. return 0;
  29439. }
  29440. static int msm_routing_instance_id_support_put(
  29441. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29442. {
  29443. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29444. q6common_update_instance_id_support(supported);
  29445. return 0;
  29446. }
  29447. static int msm_routing_instance_id_support_get(
  29448. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29449. {
  29450. bool supported = false;
  29451. supported = q6common_is_instance_id_supported();
  29452. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29453. return 0;
  29454. }
  29455. static const struct snd_kcontrol_new
  29456. msm_routing_feature_support_mixer_controls[] = {
  29457. {
  29458. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29459. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29460. .info = msm_routing_instance_id_support_info,
  29461. .name = "Instance ID Support",
  29462. .put = msm_routing_instance_id_support_put,
  29463. .get = msm_routing_instance_id_support_get,
  29464. },
  29465. };
  29466. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  29467. .hw_params = msm_pcm_routing_hw_params,
  29468. .close = msm_pcm_routing_close,
  29469. .prepare = msm_pcm_routing_prepare,
  29470. };
  29471. #ifdef CONFIG_DOA_PARAMS_ENABLED
  29472. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29473. {
  29474. snd_soc_add_component_controls(component,
  29475. msm_source_doa_tracking_controls,
  29476. ARRAY_SIZE(msm_source_doa_tracking_controls));
  29477. }
  29478. #else
  29479. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29480. {
  29481. return;
  29482. }
  29483. #endif
  29484. /* Not used but frame seems to require it */
  29485. static int msm_routing_probe(struct snd_soc_component *component)
  29486. {
  29487. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  29488. ARRAY_SIZE(msm_qdsp6_widgets));
  29489. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  29490. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  29491. snd_soc_dapm_add_routes(&component->dapm, intercon,
  29492. ARRAY_SIZE(intercon));
  29493. snd_soc_dapm_new_widgets(component->dapm.card);
  29494. snd_soc_add_component_controls(component, lsm_controls,
  29495. ARRAY_SIZE(lsm_controls));
  29496. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  29497. ARRAY_SIZE(aanc_slim_0_rx_mux));
  29498. snd_soc_add_component_controls(component, aanc_noise_level,
  29499. ARRAY_SIZE(aanc_noise_level));
  29500. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29501. ARRAY_SIZE(msm_voc_session_controls));
  29502. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29503. ARRAY_SIZE(app_type_cfg_controls));
  29504. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29505. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29506. snd_soc_add_component_controls(component, module_cfg_controls,
  29507. ARRAY_SIZE(module_cfg_controls));
  29508. snd_soc_add_component_controls(component,
  29509. stereo_to_custom_stereo_controls,
  29510. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29511. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29512. ARRAY_SIZE(ec_ref_param_controls));
  29513. snd_soc_add_component_controls(component, channel_mixer_controls,
  29514. ARRAY_SIZE(channel_mixer_controls));
  29515. msm_qti_pp_add_controls(component);
  29516. msm_dts_srs_tm_add_controls(component);
  29517. msm_dolby_dap_add_controls(component);
  29518. snd_soc_add_component_controls(component,
  29519. use_ds1_or_ds2_controls,
  29520. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29521. snd_soc_add_component_controls(component,
  29522. hifi_filter_controls,
  29523. ARRAY_SIZE(hifi_filter_controls));
  29524. snd_soc_add_component_controls(component,
  29525. use_ffecns_freeze_event_controls,
  29526. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29527. snd_soc_add_component_controls(component,
  29528. device_pp_params_mixer_controls,
  29529. ARRAY_SIZE(device_pp_params_mixer_controls));
  29530. snd_soc_add_component_controls(component,
  29531. msm_routing_be_dai_name_table_mixer_controls,
  29532. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29533. /* Add doa control based on config */
  29534. msm_routing_add_doa_control(component);
  29535. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29536. ARRAY_SIZE(msm_source_tracking_controls));
  29537. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29538. ARRAY_SIZE(adm_channel_config_controls));
  29539. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29540. ARRAY_SIZE(aptx_dec_license_controls));
  29541. snd_soc_add_component_controls(component,
  29542. stereo_channel_reverse_control,
  29543. ARRAY_SIZE(stereo_channel_reverse_control));
  29544. snd_soc_add_component_controls(
  29545. component, msm_routing_feature_support_mixer_controls,
  29546. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29547. snd_soc_add_component_controls(component,
  29548. port_multi_channel_map_mixer_controls,
  29549. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29550. snd_soc_add_component_controls(component, pll_clk_drift_controls,
  29551. ARRAY_SIZE(pll_clk_drift_controls));
  29552. return 0;
  29553. }
  29554. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29555. {
  29556. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29557. }
  29558. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29559. {
  29560. msm_pcm_routing_hwdep_free(pcm);
  29561. }
  29562. static struct snd_soc_component_driver msm_soc_routing_component = {
  29563. .name = DRV_NAME,
  29564. .ops = &msm_routing_pcm_ops,
  29565. .probe = msm_routing_probe,
  29566. .pcm_new = msm_routing_pcm_new,
  29567. .pcm_free = msm_routing_pcm_free,
  29568. };
  29569. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29570. {
  29571. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29572. return snd_soc_register_component(&pdev->dev,
  29573. &msm_soc_routing_component,
  29574. NULL, 0);
  29575. }
  29576. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29577. {
  29578. snd_soc_unregister_component(&pdev->dev);
  29579. return 0;
  29580. }
  29581. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29582. {.compatible = "qcom,msm-pcm-routing"},
  29583. {}
  29584. };
  29585. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29586. static struct platform_driver msm_routing_pcm_driver = {
  29587. .driver = {
  29588. .name = "msm-pcm-routing",
  29589. .owner = THIS_MODULE,
  29590. .of_match_table = msm_pcm_routing_dt_match,
  29591. .suppress_bind_attrs = true,
  29592. },
  29593. .probe = msm_routing_pcm_probe,
  29594. .remove = msm_routing_pcm_remove,
  29595. };
  29596. int msm_routing_check_backend_enabled(int fedai_id)
  29597. {
  29598. int i;
  29599. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29600. /* bad ID assigned in machine driver */
  29601. pr_err("%s: bad MM ID\n", __func__);
  29602. return 0;
  29603. }
  29604. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29605. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29606. return msm_bedais[i].active;
  29607. }
  29608. return 0;
  29609. }
  29610. static int get_cal_type_index(int32_t cal_type)
  29611. {
  29612. int ret = -EINVAL;
  29613. switch (cal_type) {
  29614. case ADM_TOPOLOGY_CAL_TYPE:
  29615. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29616. break;
  29617. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29618. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29619. break;
  29620. default:
  29621. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29622. }
  29623. return ret;
  29624. }
  29625. static int msm_routing_set_cal(int32_t cal_type,
  29626. size_t data_size, void *data)
  29627. {
  29628. int ret = 0;
  29629. int cal_index;
  29630. pr_debug("%s\n", __func__);
  29631. cal_index = get_cal_type_index(cal_type);
  29632. if (cal_index < 0) {
  29633. pr_err("%s: Could not get cal index %d\n",
  29634. __func__, cal_index);
  29635. ret = -EINVAL;
  29636. goto done;
  29637. }
  29638. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29639. if (ret < 0) {
  29640. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29641. __func__, ret, cal_type);
  29642. ret = -EINVAL;
  29643. goto done;
  29644. }
  29645. /* Pre-load if it is ADM topology */
  29646. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29647. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29648. msm_routing_load_topology(data_size, data);
  29649. }
  29650. done:
  29651. return ret;
  29652. }
  29653. static void msm_routing_delete_cal_data(void)
  29654. {
  29655. pr_debug("%s\n", __func__);
  29656. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29657. }
  29658. static int msm_routing_init_cal_data(void)
  29659. {
  29660. int ret = 0;
  29661. struct cal_type_info cal_type_info[] = {
  29662. {{ADM_TOPOLOGY_CAL_TYPE,
  29663. {NULL, NULL, NULL,
  29664. msm_routing_set_cal, NULL, NULL} },
  29665. {NULL, NULL, cal_utils_match_buf_num} },
  29666. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29667. {NULL, NULL, NULL,
  29668. msm_routing_set_cal, NULL, NULL} },
  29669. {NULL, NULL, cal_utils_match_buf_num} },
  29670. };
  29671. pr_debug("%s\n", __func__);
  29672. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29673. &cal_type_info[0]);
  29674. if (ret < 0) {
  29675. pr_err("%s: could not create cal type!\n",
  29676. __func__);
  29677. ret = -EINVAL;
  29678. goto err;
  29679. }
  29680. return ret;
  29681. err:
  29682. msm_routing_delete_cal_data();
  29683. return ret;
  29684. }
  29685. int __init msm_soc_routing_platform_init(void)
  29686. {
  29687. mutex_init(&routing_lock);
  29688. if (msm_routing_init_cal_data())
  29689. pr_err("%s: could not init cal data!\n", __func__);
  29690. afe_set_routing_callback(
  29691. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29692. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29693. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29694. return platform_driver_register(&msm_routing_pcm_driver);
  29695. }
  29696. void msm_soc_routing_platform_exit(void)
  29697. {
  29698. msm_routing_delete_cal_data();
  29699. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29700. mutex_destroy(&routing_lock);
  29701. platform_driver_unregister(&msm_routing_pcm_driver);
  29702. }
  29703. MODULE_DESCRIPTION("MSM routing platform driver");
  29704. MODULE_LICENSE("GPL v2");