msm-pcm-routing-v2.c 1.2 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027
  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\n",
  1176. __func__, fedai_id, session_type, be_id,
  1177. cfg_data->app_type, cfg_data->acdb_dev_id,
  1178. cfg_data->sample_rate);
  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\n",
  1254. __func__, fedai_id, session_type, *bedai_id,
  1255. cfg_data->app_type, cfg_data->acdb_dev_id,
  1256. cfg_data->sample_rate);
  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. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1507. __func__, fe_id, perf_mode, dspst_id,
  1508. stream_type, passthr_mode);
  1509. if (!is_mm_lsm_fe_id(fe_id)) {
  1510. /* bad ID assigned in machine driver */
  1511. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1512. return -EINVAL;
  1513. }
  1514. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1515. session_type = SESSION_TYPE_RX;
  1516. if (passthr_mode != LEGACY_PCM)
  1517. path_type = ADM_PATH_COMPRESSED_RX;
  1518. else
  1519. path_type = ADM_PATH_PLAYBACK;
  1520. port_type = MSM_AFE_PORT_TYPE_RX;
  1521. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1522. session_type = SESSION_TYPE_TX;
  1523. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1524. path_type = ADM_PATH_COMPRESSED_TX;
  1525. else
  1526. path_type = ADM_PATH_LIVE_REC;
  1527. port_type = MSM_AFE_PORT_TYPE_TX;
  1528. } else {
  1529. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1530. return -EINVAL;
  1531. }
  1532. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1533. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1534. mutex_lock(&routing_lock);
  1535. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1536. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1537. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1538. if (!route_check_fe_id_adm_support(fe_id)) {
  1539. /* ignore adm open if not supported for fe_id */
  1540. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1541. mutex_unlock(&routing_lock);
  1542. return 0;
  1543. }
  1544. payload.num_copps = 0; /* only RX needs to use payload */
  1545. /* re-enable EQ if active */
  1546. msm_qti_pp_send_eq_values(fe_id);
  1547. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1548. if (!is_be_dai_extproc(i) &&
  1549. (afe_get_port_type(msm_bedais[i].port_id) ==
  1550. port_type) &&
  1551. (msm_bedais[i].active) &&
  1552. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1553. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1554. int port_id = get_port_id(msm_bedais[i].port_id);
  1555. /*
  1556. * check if ADM needs to be configured with different
  1557. * channel mapping than backend
  1558. */
  1559. if (!msm_bedais[i].adm_override_ch)
  1560. channels = msm_bedais[i].channel;
  1561. else
  1562. channels = msm_bedais[i].adm_override_ch;
  1563. bit_width = msm_routing_get_bit_width(
  1564. msm_bedais[i].format);
  1565. app_type =
  1566. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1567. if (app_type && is_lsm) {
  1568. app_type_idx =
  1569. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1570. sample_rate =
  1571. fe_dai_app_type_cfg[fe_id][session_type][i]
  1572. .sample_rate;
  1573. bit_width =
  1574. lsm_app_type_cfg[app_type_idx].bit_width;
  1575. } else if (app_type) {
  1576. app_type_idx =
  1577. msm_pcm_routing_get_app_type_idx(
  1578. app_type);
  1579. sample_rate =
  1580. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1581. bit_width =
  1582. app_type_cfg[app_type_idx].bit_width;
  1583. } else {
  1584. sample_rate = msm_bedais[i].sample_rate;
  1585. }
  1586. acdb_dev_id =
  1587. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1588. topology = msm_routing_get_adm_topology(fe_id,
  1589. session_type,
  1590. i);
  1591. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1592. || (passthr_mode ==
  1593. COMPRESSED_PASSTHROUGH_GEN)
  1594. || (passthr_mode ==
  1595. COMPRESSED_PASSTHROUGH_IEC61937))
  1596. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1597. pr_debug("%s: Before adm open topology %d\n", __func__,
  1598. topology);
  1599. be_bit_width = msm_routing_get_bit_width(
  1600. msm_bedais[i].format);
  1601. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1602. == 384000 || msm_bedais[i].sample_rate ==
  1603. 352800) && be_bit_width == 32)
  1604. bit_width = msm_routing_get_bit_width(
  1605. SNDRV_PCM_FORMAT_S32_LE);
  1606. copp_idx =
  1607. adm_open(port_id, path_type, sample_rate,
  1608. channels, topology, perf_mode,
  1609. bit_width, app_type, acdb_dev_id,
  1610. session_type, passthr_mode);
  1611. if ((copp_idx < 0) ||
  1612. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1613. pr_err("%s:adm open failed coppid:%d\n",
  1614. __func__, copp_idx);
  1615. mutex_unlock(&routing_lock);
  1616. return -EINVAL;
  1617. }
  1618. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1619. __func__, fe_id, session_type, i);
  1620. set_bit(copp_idx,
  1621. &session_copp_map[fe_id][session_type][i]);
  1622. if (msm_is_resample_needed(
  1623. sample_rate,
  1624. msm_bedais[i].sample_rate))
  1625. adm_copp_mfc_cfg(port_id, copp_idx,
  1626. msm_bedais[i].sample_rate);
  1627. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1628. unsigned long copp =
  1629. session_copp_map[fe_id][session_type][i];
  1630. if (test_bit(j, &copp)) {
  1631. payload.port_id[num_copps] = port_id;
  1632. payload.copp_idx[num_copps] = j;
  1633. payload.app_type[num_copps] =
  1634. fe_dai_app_type_cfg
  1635. [fe_id][session_type][i]
  1636. .app_type;
  1637. payload.acdb_dev_id[num_copps] =
  1638. fe_dai_app_type_cfg
  1639. [fe_id][session_type][i]
  1640. .acdb_dev_id;
  1641. payload.sample_rate[num_copps] =
  1642. fe_dai_app_type_cfg
  1643. [fe_id][session_type][i]
  1644. .sample_rate;
  1645. num_copps++;
  1646. }
  1647. }
  1648. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1649. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1650. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1651. msm_routing_send_device_pp_params(port_id,
  1652. copp_idx, fe_id);
  1653. }
  1654. }
  1655. if (num_copps) {
  1656. payload.num_copps = num_copps;
  1657. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1658. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1659. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1660. }
  1661. mutex_unlock(&routing_lock);
  1662. return 0;
  1663. }
  1664. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1665. {
  1666. u32 session_id;
  1667. switch (val) {
  1668. case MSM_FRONTEND_DAI_QCHAT:
  1669. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1670. break;
  1671. case MSM_FRONTEND_DAI_VOIP:
  1672. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1673. break;
  1674. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1675. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1676. break;
  1677. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1678. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1679. break;
  1680. default:
  1681. session_id = 0;
  1682. }
  1683. pr_debug("%s session_id 0x%x", __func__, session_id);
  1684. return session_id;
  1685. }
  1686. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1687. int dspst_id, int stream_type)
  1688. {
  1689. int copp_idx = 0;
  1690. int sess_type = 0;
  1691. int j = 0, be_id = 0;
  1692. int ret = 0;
  1693. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1694. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1695. return 0;
  1696. }
  1697. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1698. sess_type = SESSION_TYPE_RX;
  1699. else
  1700. sess_type = SESSION_TYPE_TX;
  1701. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1702. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1703. __func__, fe_id, sess_type);
  1704. return 0;
  1705. }
  1706. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1707. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1708. channel_mixer_v2[fe_id][sess_type].input_channel;
  1709. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1710. __func__, sess_type, fe_id,
  1711. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1712. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1713. msm_bedais[be_id].active);
  1714. if ((msm_bedais[be_id].active) &&
  1715. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1716. unsigned long copp =
  1717. session_copp_map[fe_id][sess_type][be_id];
  1718. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1719. if (test_bit(j, &copp)) {
  1720. copp_idx = j;
  1721. break;
  1722. }
  1723. }
  1724. ret = adm_programable_channel_mixer(
  1725. msm_bedais[be_id].port_id,
  1726. copp_idx, dspst_id, sess_type,
  1727. &channel_mixer_v2[fe_id][sess_type], 0);
  1728. }
  1729. return ret;
  1730. }
  1731. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1732. int dspst_id, int stream_type)
  1733. {
  1734. int copp_idx = 0;
  1735. int sess_type = 0;
  1736. int i = 0, j = 0, be_id;
  1737. int ret = 0;
  1738. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1739. dspst_id, stream_type);
  1740. if (ret) {
  1741. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1742. fe_id);
  1743. return ret;
  1744. }
  1745. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1746. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1747. return 0;
  1748. }
  1749. if (!(channel_mixer[fe_id].enable)) {
  1750. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1751. __func__, fe_id);
  1752. return 0;
  1753. }
  1754. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1755. sess_type = SESSION_TYPE_RX;
  1756. else
  1757. sess_type = SESSION_TYPE_TX;
  1758. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1759. ++i) {
  1760. be_id = channel_input[fe_id][i] - 1;
  1761. channel_mixer[fe_id].input_channels[i] =
  1762. msm_bedais[be_id].channel;
  1763. if ((msm_bedais[be_id].active) &&
  1764. test_bit(fe_id,
  1765. &msm_bedais[be_id].fe_sessions[0])) {
  1766. unsigned long copp =
  1767. session_copp_map[fe_id][sess_type][be_id];
  1768. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1769. if (test_bit(j, &copp)) {
  1770. copp_idx = j;
  1771. break;
  1772. }
  1773. }
  1774. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1775. __func__,
  1776. fe_id, be_id, msm_bedais[be_id].channel,
  1777. copp_idx);
  1778. ret = adm_programable_channel_mixer(
  1779. get_port_id(msm_bedais[be_id].port_id),
  1780. copp_idx, dspst_id, sess_type,
  1781. channel_mixer + fe_id, i);
  1782. }
  1783. }
  1784. return ret;
  1785. }
  1786. /**
  1787. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1788. * setting during runtime.
  1789. *
  1790. * @be_id: backend index
  1791. * @session_id: session index
  1792. * @session_type: session type
  1793. * @params: parameters for channel mixer
  1794. *
  1795. * Retuen: 0 for success, else error
  1796. */
  1797. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1798. int session_type,
  1799. struct msm_pcm_channel_mixer *params)
  1800. {
  1801. int rc = 0;
  1802. int port_id, copp_idx = 0;
  1803. be_id--;
  1804. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1805. pr_err("%s: invalid backend id %d\n", __func__,
  1806. be_id);
  1807. return -EINVAL;
  1808. }
  1809. port_id = msm_bedais[be_id].port_id;
  1810. copp_idx = adm_get_default_copp_idx(port_id);
  1811. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1812. __func__, port_id, copp_idx, session_id);
  1813. if ((params->input_channel < 0) ||
  1814. (params->input_channel > ADM_MAX_CHANNELS)) {
  1815. pr_err("%s: invalid input channel %d\n", __func__,
  1816. params->input_channel);
  1817. return -EINVAL;
  1818. }
  1819. if ((params->output_channel < 0) ||
  1820. (params->output_channel > ADM_MAX_CHANNELS)) {
  1821. pr_err("%s: invalid output channel %d\n", __func__,
  1822. params->output_channel);
  1823. return -EINVAL;
  1824. }
  1825. params->input_channels[0] = params->input_channel;
  1826. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1827. __func__, session_type,
  1828. params->override_in_ch_map,
  1829. params->override_out_ch_map,
  1830. msm_bedais[be_id].active);
  1831. rc = adm_programable_channel_mixer(port_id,
  1832. copp_idx,
  1833. session_id,
  1834. session_type,
  1835. params,
  1836. 0);
  1837. if (rc) {
  1838. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1839. rc = -EINVAL;
  1840. }
  1841. return rc;
  1842. }
  1843. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1844. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1845. int dspst_id, int stream_type)
  1846. {
  1847. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1848. struct route_payload payload;
  1849. u32 channels, sample_rate;
  1850. uint16_t bits_per_sample = 16, be_bit_width;
  1851. uint32_t passthr_mode = LEGACY_PCM;
  1852. int ret = 0;
  1853. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1854. /* bad ID assigned in machine driver */
  1855. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1856. return -EINVAL;
  1857. }
  1858. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1859. session_type = SESSION_TYPE_RX;
  1860. path_type = ADM_PATH_PLAYBACK;
  1861. port_type = MSM_AFE_PORT_TYPE_RX;
  1862. } else {
  1863. session_type = SESSION_TYPE_TX;
  1864. path_type = ADM_PATH_LIVE_REC;
  1865. port_type = MSM_AFE_PORT_TYPE_TX;
  1866. }
  1867. mutex_lock(&routing_lock);
  1868. payload.num_copps = 0; /* only RX needs to use payload */
  1869. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1870. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1871. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1872. /* re-enable EQ if active */
  1873. msm_qti_pp_send_eq_values(fedai_id);
  1874. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1875. if (!is_be_dai_extproc(i) &&
  1876. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1877. (msm_bedais[i].active) &&
  1878. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1879. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1880. int port_id = get_port_id(msm_bedais[i].port_id);
  1881. /*
  1882. * check if ADM needs to be configured with different
  1883. * channel mapping than backend
  1884. */
  1885. if (!msm_bedais[i].adm_override_ch)
  1886. channels = msm_bedais[i].channel;
  1887. else
  1888. channels = msm_bedais[i].adm_override_ch;
  1889. bits_per_sample = msm_routing_get_bit_width(
  1890. msm_bedais[i].format);
  1891. app_type =
  1892. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1893. if (app_type) {
  1894. app_type_idx =
  1895. msm_pcm_routing_get_app_type_idx(app_type);
  1896. sample_rate =
  1897. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1898. .sample_rate;
  1899. bits_per_sample =
  1900. app_type_cfg[app_type_idx].bit_width;
  1901. } else
  1902. sample_rate = msm_bedais[i].sample_rate;
  1903. acdb_dev_id =
  1904. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1905. .acdb_dev_id;
  1906. topology = msm_routing_get_adm_topology(fedai_id,
  1907. session_type,
  1908. i);
  1909. be_bit_width = msm_routing_get_bit_width(
  1910. msm_bedais[i].format);
  1911. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1912. 384000 ||msm_bedais[i].sample_rate == 352800)
  1913. && be_bit_width == 32)
  1914. bits_per_sample = msm_routing_get_bit_width(
  1915. SNDRV_PCM_FORMAT_S32_LE);
  1916. copp_idx = adm_open(port_id, path_type,
  1917. sample_rate, channels, topology,
  1918. perf_mode, bits_per_sample,
  1919. app_type, acdb_dev_id,
  1920. session_type, passthr_mode);
  1921. if ((copp_idx < 0) ||
  1922. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1923. pr_err("%s: adm open failed copp_idx:%d\n",
  1924. __func__, copp_idx);
  1925. mutex_unlock(&routing_lock);
  1926. return -EINVAL;
  1927. }
  1928. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1929. __func__, fedai_id, session_type, i);
  1930. set_bit(copp_idx,
  1931. &session_copp_map[fedai_id][session_type][i]);
  1932. if (msm_is_resample_needed(
  1933. sample_rate,
  1934. msm_bedais[i].sample_rate))
  1935. adm_copp_mfc_cfg(port_id, copp_idx,
  1936. msm_bedais[i].sample_rate);
  1937. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1938. unsigned long copp =
  1939. session_copp_map[fedai_id][session_type][i];
  1940. if (test_bit(j, &copp)) {
  1941. payload.port_id[num_copps] = port_id;
  1942. payload.copp_idx[num_copps] = j;
  1943. payload.app_type[num_copps] =
  1944. fe_dai_app_type_cfg
  1945. [fedai_id][session_type]
  1946. [i].app_type;
  1947. payload.acdb_dev_id[num_copps] =
  1948. fe_dai_app_type_cfg
  1949. [fedai_id][session_type]
  1950. [i].acdb_dev_id;
  1951. payload.sample_rate[num_copps] =
  1952. fe_dai_app_type_cfg
  1953. [fedai_id][session_type]
  1954. [i].sample_rate;
  1955. num_copps++;
  1956. }
  1957. }
  1958. if (perf_mode == LEGACY_PCM_MODE)
  1959. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1960. topology, channels);
  1961. }
  1962. }
  1963. if (num_copps) {
  1964. payload.num_copps = num_copps;
  1965. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1966. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1967. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1968. }
  1969. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1970. dspst_id, stream_type);
  1971. mutex_unlock(&routing_lock);
  1972. return ret;
  1973. }
  1974. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1975. int dspst_id, int stream_type,
  1976. struct msm_pcm_routing_evt event_info)
  1977. {
  1978. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1979. stream_type)) {
  1980. pr_err("%s: failed to reg phy stream\n", __func__);
  1981. return -EINVAL;
  1982. }
  1983. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1984. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1985. else
  1986. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1987. return 0;
  1988. }
  1989. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1990. {
  1991. int i, port_type, session_type, path_type, topology, port_id;
  1992. struct msm_pcm_routing_fdai_data *fdai;
  1993. if (!is_mm_lsm_fe_id(fedai_id)) {
  1994. /* bad ID assigned in machine driver */
  1995. pr_err("%s: bad MM ID\n", __func__);
  1996. return;
  1997. }
  1998. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1999. port_type = MSM_AFE_PORT_TYPE_RX;
  2000. session_type = SESSION_TYPE_RX;
  2001. path_type = ADM_PATH_PLAYBACK;
  2002. } else {
  2003. port_type = MSM_AFE_PORT_TYPE_TX;
  2004. session_type = SESSION_TYPE_TX;
  2005. path_type = ADM_PATH_LIVE_REC;
  2006. }
  2007. mutex_lock(&routing_lock);
  2008. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2009. if (!is_be_dai_extproc(i) &&
  2010. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  2011. (msm_bedais[i].active) &&
  2012. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  2013. int idx;
  2014. unsigned long copp =
  2015. session_copp_map[fedai_id][session_type][i];
  2016. fdai = &fe_dai_map[fedai_id][session_type];
  2017. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2018. if (test_bit(idx, &copp))
  2019. break;
  2020. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  2021. pr_debug("%s: copp idx is invalid, exiting\n",
  2022. __func__);
  2023. continue;
  2024. }
  2025. port_id = get_port_id(msm_bedais[i].port_id);
  2026. topology = adm_get_topology_for_port_copp_idx(
  2027. port_id, idx);
  2028. msm_routing_unload_topology(topology);
  2029. adm_close(port_id, fdai->perf_mode, idx);
  2030. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  2031. __func__, copp, fedai_id, session_type, i);
  2032. clear_bit(idx,
  2033. &session_copp_map[fedai_id][session_type][i]);
  2034. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2035. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2036. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2037. (fdai->passthr_mode == LEGACY_PCM))
  2038. msm_pcm_routing_deinit_pp(port_id, topology);
  2039. }
  2040. }
  2041. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  2042. fe_dai_map[fedai_id][session_type].be_srate = 0;
  2043. mutex_unlock(&routing_lock);
  2044. }
  2045. /* Check if FE/BE route is set */
  2046. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  2047. {
  2048. bool rc = false;
  2049. if (!is_mm_lsm_fe_id(fe_id)) {
  2050. /* recheck FE ID in the mixer control defined in this file */
  2051. pr_err("%s: bad MM ID\n", __func__);
  2052. return rc;
  2053. }
  2054. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  2055. rc = true;
  2056. return rc;
  2057. }
  2058. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  2059. {
  2060. int session_type, path_type, topology;
  2061. u32 channels, sample_rate;
  2062. uint16_t bits_per_sample = 16, be_bit_width;
  2063. struct msm_pcm_routing_fdai_data *fdai;
  2064. uint32_t passthr_mode;
  2065. bool is_lsm;
  2066. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2067. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2068. afe_get_port_type(msm_bedais[reg].port_id) ==
  2069. MSM_AFE_PORT_TYPE_RX) {
  2070. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2071. __func__, set, msm_bedais[reg].port_id);
  2072. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2073. } else if (!is_mm_lsm_fe_id(val)) {
  2074. /* recheck FE ID in the mixer control defined in this file */
  2075. pr_err("%s: bad MM ID\n", __func__);
  2076. return;
  2077. }
  2078. if (!route_check_fe_id_adm_support(val)) {
  2079. /* ignore adm open if not supported for fe_id */
  2080. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  2081. if (set)
  2082. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2083. else
  2084. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2085. return;
  2086. }
  2087. session_type =
  2088. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  2089. SESSION_TYPE_RX : SESSION_TYPE_TX;
  2090. fdai = &fe_dai_map[val][session_type];
  2091. passthr_mode = fdai->passthr_mode;
  2092. if (session_type == SESSION_TYPE_RX) {
  2093. if (passthr_mode != LEGACY_PCM)
  2094. path_type = ADM_PATH_COMPRESSED_RX;
  2095. else
  2096. path_type = ADM_PATH_PLAYBACK;
  2097. } else {
  2098. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  2099. path_type = ADM_PATH_COMPRESSED_TX;
  2100. else
  2101. path_type = ADM_PATH_LIVE_REC;
  2102. }
  2103. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  2104. (val <= MSM_FRONTEND_DAI_LSM8);
  2105. mutex_lock(&routing_lock);
  2106. if (set) {
  2107. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2108. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2109. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2110. voc_start_playback(set, msm_bedais[reg].port_id);
  2111. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2112. if (msm_bedais[reg].active && fdai->strm_id !=
  2113. INVALID_SESSION) {
  2114. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  2115. int port_id = get_port_id(msm_bedais[reg].port_id);
  2116. /*
  2117. * check if ADM needs to be configured with different
  2118. * channel mapping than backend
  2119. */
  2120. if (!msm_bedais[reg].adm_override_ch)
  2121. channels = msm_bedais[reg].channel;
  2122. else
  2123. channels = msm_bedais[reg].adm_override_ch;
  2124. if (session_type == SESSION_TYPE_TX &&
  2125. fdai->be_srate &&
  2126. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  2127. pr_debug("%s: flush strm %d diff BE rates\n",
  2128. __func__, fdai->strm_id);
  2129. if (fdai->event_info.event_func)
  2130. fdai->event_info.event_func(
  2131. MSM_PCM_RT_EVT_BUF_RECFG,
  2132. fdai->event_info.priv_data);
  2133. fdai->be_srate = 0; /* might not need it */
  2134. }
  2135. bits_per_sample = msm_routing_get_bit_width(
  2136. msm_bedais[reg].format);
  2137. app_type =
  2138. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  2139. if (app_type && is_lsm) {
  2140. app_type_idx =
  2141. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  2142. sample_rate =
  2143. fe_dai_app_type_cfg[val][session_type][reg]
  2144. .sample_rate;
  2145. bits_per_sample =
  2146. lsm_app_type_cfg[app_type_idx].bit_width;
  2147. } else if (app_type) {
  2148. app_type_idx =
  2149. msm_pcm_routing_get_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. app_type_cfg[app_type_idx].bit_width;
  2155. } else
  2156. sample_rate = msm_bedais[reg].sample_rate;
  2157. topology = msm_routing_get_adm_topology(val,
  2158. session_type,
  2159. reg);
  2160. acdb_dev_id =
  2161. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  2162. be_bit_width = msm_routing_get_bit_width(
  2163. msm_bedais[reg].format);
  2164. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  2165. == 384000 ||msm_bedais[reg].sample_rate ==
  2166. 352800) && be_bit_width == 32)
  2167. bits_per_sample = msm_routing_get_bit_width(
  2168. SNDRV_PCM_FORMAT_S32_LE);
  2169. copp_idx = adm_open(port_id, path_type,
  2170. sample_rate, channels, topology,
  2171. fdai->perf_mode, bits_per_sample,
  2172. app_type, acdb_dev_id,
  2173. session_type, passthr_mode);
  2174. if ((copp_idx < 0) ||
  2175. (copp_idx >= MAX_COPPS_PER_PORT)) {
  2176. pr_err("%s: adm open failed\n", __func__);
  2177. mutex_unlock(&routing_lock);
  2178. return;
  2179. }
  2180. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  2181. __func__, val, session_type, reg);
  2182. set_bit(copp_idx,
  2183. &session_copp_map[val][session_type][reg]);
  2184. if (msm_is_resample_needed(
  2185. sample_rate,
  2186. msm_bedais[reg].sample_rate))
  2187. adm_copp_mfc_cfg(port_id, copp_idx,
  2188. msm_bedais[reg].sample_rate);
  2189. if (session_type == SESSION_TYPE_RX &&
  2190. fdai->event_info.event_func)
  2191. fdai->event_info.event_func(
  2192. MSM_PCM_RT_EVT_DEVSWITCH,
  2193. fdai->event_info.priv_data);
  2194. msm_pcm_routing_build_matrix(val, session_type,
  2195. path_type,
  2196. fdai->perf_mode,
  2197. passthr_mode);
  2198. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2199. (passthr_mode == LEGACY_PCM))
  2200. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2201. topology, channels);
  2202. }
  2203. } else {
  2204. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2205. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2206. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2207. voc_start_playback(set, msm_bedais[reg].port_id);
  2208. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2209. if (msm_bedais[reg].active && fdai->strm_id !=
  2210. INVALID_SESSION) {
  2211. int idx;
  2212. int port_id;
  2213. unsigned long copp =
  2214. session_copp_map[val][session_type][reg];
  2215. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2216. if (test_bit(idx, &copp))
  2217. break;
  2218. if (idx >= MAX_COPPS_PER_PORT) {
  2219. pr_debug("%s: copp idx is invalid, exiting\n",
  2220. __func__);
  2221. mutex_unlock(&routing_lock);
  2222. return;
  2223. }
  2224. port_id = get_port_id(msm_bedais[reg].port_id);
  2225. topology = adm_get_topology_for_port_copp_idx(port_id,
  2226. idx);
  2227. msm_routing_unload_topology(topology);
  2228. adm_close(port_id, fdai->perf_mode, idx);
  2229. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2230. __func__, copp, val, session_type, reg,
  2231. topology);
  2232. clear_bit(idx,
  2233. &session_copp_map[val][session_type][reg]);
  2234. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2235. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2236. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2237. (passthr_mode == LEGACY_PCM))
  2238. msm_pcm_routing_deinit_pp(port_id, topology);
  2239. msm_pcm_routing_build_matrix(val, session_type,
  2240. path_type,
  2241. fdai->perf_mode,
  2242. passthr_mode);
  2243. }
  2244. }
  2245. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2246. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2247. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2248. mutex_unlock(&routing_lock);
  2249. }
  2250. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2251. struct snd_ctl_elem_value *ucontrol)
  2252. {
  2253. struct soc_mixer_control *mc =
  2254. (struct soc_mixer_control *)kcontrol->private_value;
  2255. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2256. ucontrol->value.integer.value[0] = 1;
  2257. else
  2258. ucontrol->value.integer.value[0] = 0;
  2259. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2260. ucontrol->value.integer.value[0]);
  2261. return 0;
  2262. }
  2263. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2264. struct snd_ctl_elem_value *ucontrol)
  2265. {
  2266. struct snd_soc_dapm_widget *widget =
  2267. snd_soc_dapm_kcontrol_widget(kcontrol);
  2268. struct soc_mixer_control *mc =
  2269. (struct soc_mixer_control *)kcontrol->private_value;
  2270. struct snd_soc_dapm_update *update = NULL;
  2271. if (ucontrol->value.integer.value[0] &&
  2272. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2273. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2274. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2275. update);
  2276. } else if (!ucontrol->value.integer.value[0] &&
  2277. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2278. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2279. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2280. update);
  2281. }
  2282. return 1;
  2283. }
  2284. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2285. struct snd_ctl_elem_value *ucontrol)
  2286. {
  2287. struct soc_mixer_control *mc =
  2288. (struct soc_mixer_control *)kcontrol->private_value;
  2289. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2290. ucontrol->value.integer.value[0] = 1;
  2291. else
  2292. ucontrol->value.integer.value[0] = 0;
  2293. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2294. ucontrol->value.integer.value[0]);
  2295. return 0;
  2296. }
  2297. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2298. struct snd_ctl_elem_value *ucontrol)
  2299. {
  2300. struct snd_soc_dapm_widget *widget =
  2301. snd_soc_dapm_kcontrol_widget(kcontrol);
  2302. struct soc_mixer_control *mc =
  2303. (struct soc_mixer_control *)kcontrol->private_value;
  2304. struct snd_soc_dapm_update *update = NULL;
  2305. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2306. ucontrol->value.integer.value[0]);
  2307. if (ucontrol->value.integer.value[0]) {
  2308. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2309. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2310. snd_soc_dapm_mixer_update_power(widget->dapm,
  2311. kcontrol, 1, update);
  2312. } else if (!ucontrol->value.integer.value[0]) {
  2313. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2314. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2315. snd_soc_dapm_mixer_update_power(widget->dapm,
  2316. kcontrol, 0, update);
  2317. }
  2318. return 1;
  2319. }
  2320. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2321. {
  2322. u32 session_id = 0;
  2323. u16 path_type;
  2324. struct media_format_info voc_be_media_format;
  2325. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2326. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2327. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2328. __func__, val, session_id);
  2329. mutex_lock(&routing_lock);
  2330. if (set)
  2331. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2332. else
  2333. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2334. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2335. afe_get_port_type(msm_bedais[reg].port_id) ==
  2336. MSM_AFE_PORT_TYPE_RX) {
  2337. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2338. __func__, set, msm_bedais[reg].port_id);
  2339. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2340. }
  2341. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2342. MSM_AFE_PORT_TYPE_RX)
  2343. path_type = RX_PATH;
  2344. else
  2345. path_type = TX_PATH;
  2346. if (set) {
  2347. if (msm_bedais[reg].active) {
  2348. voc_set_route_flag(session_id, path_type, 1);
  2349. memset(&voc_be_media_format, 0,
  2350. sizeof(struct media_format_info));
  2351. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2352. voc_be_media_format.num_channels =
  2353. msm_bedais[reg].channel;
  2354. voc_be_media_format.sample_rate =
  2355. msm_bedais[reg].sample_rate;
  2356. voc_be_media_format.bits_per_sample =
  2357. msm_bedais[reg].format;
  2358. /* Defaulting this to 1 for voice call usecases */
  2359. voc_be_media_format.channel_mapping[0] = 1;
  2360. voc_set_device_config(session_id, path_type,
  2361. &voc_be_media_format);
  2362. if (voc_get_route_flag(session_id, TX_PATH) &&
  2363. voc_get_route_flag(session_id, RX_PATH))
  2364. voc_enable_device(session_id);
  2365. } else {
  2366. pr_debug("%s BE is not active\n", __func__);
  2367. }
  2368. } else {
  2369. voc_set_route_flag(session_id, path_type, 0);
  2370. voc_disable_device(session_id);
  2371. }
  2372. mutex_unlock(&routing_lock);
  2373. }
  2374. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2375. struct snd_ctl_elem_value *ucontrol)
  2376. {
  2377. struct soc_mixer_control *mc =
  2378. (struct soc_mixer_control *)kcontrol->private_value;
  2379. mutex_lock(&routing_lock);
  2380. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2381. ucontrol->value.integer.value[0] = 1;
  2382. else
  2383. ucontrol->value.integer.value[0] = 0;
  2384. mutex_unlock(&routing_lock);
  2385. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2386. ucontrol->value.integer.value[0]);
  2387. return 0;
  2388. }
  2389. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2390. struct snd_ctl_elem_value *ucontrol)
  2391. {
  2392. struct snd_soc_dapm_widget *widget =
  2393. snd_soc_dapm_kcontrol_widget(kcontrol);
  2394. struct soc_mixer_control *mc =
  2395. (struct soc_mixer_control *)kcontrol->private_value;
  2396. struct snd_soc_dapm_update *update = NULL;
  2397. if (ucontrol->value.integer.value[0]) {
  2398. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2399. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2400. update);
  2401. } else {
  2402. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2403. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2404. update);
  2405. }
  2406. return 1;
  2407. }
  2408. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2409. struct snd_ctl_elem_value *ucontrol)
  2410. {
  2411. struct soc_mixer_control *mc =
  2412. (struct soc_mixer_control *)kcontrol->private_value;
  2413. mutex_lock(&routing_lock);
  2414. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2415. ucontrol->value.integer.value[0] = 1;
  2416. else
  2417. ucontrol->value.integer.value[0] = 0;
  2418. mutex_unlock(&routing_lock);
  2419. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2420. ucontrol->value.integer.value[0]);
  2421. return 0;
  2422. }
  2423. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2424. struct snd_ctl_elem_value *ucontrol)
  2425. {
  2426. struct snd_soc_dapm_widget *widget =
  2427. snd_soc_dapm_kcontrol_widget(kcontrol);
  2428. struct soc_mixer_control *mc =
  2429. (struct soc_mixer_control *)kcontrol->private_value;
  2430. struct snd_soc_dapm_update *update = NULL;
  2431. if (ucontrol->value.integer.value[0]) {
  2432. mutex_lock(&routing_lock);
  2433. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2434. mutex_unlock(&routing_lock);
  2435. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2436. update);
  2437. } else {
  2438. mutex_lock(&routing_lock);
  2439. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2440. mutex_unlock(&routing_lock);
  2441. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2442. update);
  2443. }
  2444. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2445. ucontrol->value.integer.value[0]);
  2446. return 1;
  2447. }
  2448. /*
  2449. * Return the mapping between port ID and backend ID to enable the AFE callback
  2450. * to determine the acdb_dev_id from the port id
  2451. */
  2452. int msm_pcm_get_be_id_from_port_id(int port_id)
  2453. {
  2454. int i;
  2455. int be_id = -EINVAL;
  2456. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2457. if (msm_bedais[i].port_id == port_id) {
  2458. be_id = i;
  2459. break;
  2460. }
  2461. }
  2462. return be_id;
  2463. }
  2464. /*
  2465. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2466. * correct AFE calibration information by comparing the header information.
  2467. */
  2468. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2469. {
  2470. int acdb_id = -EINVAL;
  2471. int i = 0;
  2472. int session;
  2473. int port_type = afe_get_port_type(port_id);
  2474. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2475. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2476. __func__, port_id, be_id, port_type);
  2477. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2478. session = SESSION_TYPE_TX;
  2479. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2480. session = SESSION_TYPE_RX;
  2481. } else {
  2482. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2483. acdb_id = -EINVAL;
  2484. goto exit;
  2485. }
  2486. if (be_id < 0) {
  2487. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2488. goto exit;
  2489. }
  2490. mutex_lock(&routing_lock);
  2491. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2492. MSM_FRONTEND_DAI_MAX);
  2493. if (i < MSM_FRONTEND_DAI_MAX)
  2494. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2495. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2496. __func__, i, session, be_id, acdb_id);
  2497. mutex_unlock(&routing_lock);
  2498. exit:
  2499. return acdb_id;
  2500. }
  2501. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2502. struct snd_ctl_elem_value *ucontrol)
  2503. {
  2504. ucontrol->value.integer.value[0] = fm_switch_enable;
  2505. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2506. ucontrol->value.integer.value[0]);
  2507. return 0;
  2508. }
  2509. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2510. struct snd_ctl_elem_value *ucontrol)
  2511. {
  2512. struct snd_soc_dapm_widget *widget =
  2513. snd_soc_dapm_kcontrol_widget(kcontrol);
  2514. struct snd_soc_dapm_update *update = NULL;
  2515. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2516. ucontrol->value.integer.value[0]);
  2517. if (ucontrol->value.integer.value[0])
  2518. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2519. update);
  2520. else
  2521. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2522. update);
  2523. fm_switch_enable = ucontrol->value.integer.value[0];
  2524. return 1;
  2525. }
  2526. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2527. struct snd_ctl_elem_value *ucontrol)
  2528. {
  2529. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2530. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2531. ucontrol->value.integer.value[0]);
  2532. return 0;
  2533. }
  2534. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2535. struct snd_ctl_elem_value *ucontrol)
  2536. {
  2537. struct snd_soc_dapm_widget *widget =
  2538. snd_soc_dapm_kcontrol_widget(kcontrol);
  2539. struct snd_soc_dapm_update *update = NULL;
  2540. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2541. ucontrol->value.integer.value[0]);
  2542. if (ucontrol->value.integer.value[0])
  2543. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2544. 1, update);
  2545. else
  2546. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2547. 0, update);
  2548. hfp_switch_enable = ucontrol->value.integer.value[0];
  2549. return 1;
  2550. }
  2551. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2552. struct snd_ctl_elem_value *ucontrol)
  2553. {
  2554. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2555. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2556. ucontrol->value.integer.value[0]);
  2557. return 0;
  2558. }
  2559. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. struct snd_soc_dapm_widget *widget =
  2563. snd_soc_dapm_kcontrol_widget(kcontrol);
  2564. struct snd_soc_dapm_update *update = NULL;
  2565. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2566. ucontrol->value.integer.value[0]);
  2567. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2568. if (a2dp_switch_enable)
  2569. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2570. 1, update);
  2571. else
  2572. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2573. 0, update);
  2574. return 1;
  2575. }
  2576. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2577. struct snd_ctl_elem_value *ucontrol)
  2578. {
  2579. ucontrol->value.integer.value[0] = sco_switch_enable;
  2580. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2581. ucontrol->value.integer.value[0]);
  2582. return 0;
  2583. }
  2584. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2585. struct snd_ctl_elem_value *ucontrol)
  2586. {
  2587. struct snd_soc_dapm_widget *widget =
  2588. snd_soc_dapm_kcontrol_widget(kcontrol);
  2589. struct snd_soc_dapm_update *update = NULL;
  2590. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2591. ucontrol->value.integer.value[0]);
  2592. sco_switch_enable = ucontrol->value.integer.value[0];
  2593. if (sco_switch_enable)
  2594. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2595. 1, update);
  2596. else
  2597. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2598. 0, update);
  2599. return 1;
  2600. }
  2601. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2602. struct snd_ctl_elem_value *ucontrol)
  2603. {
  2604. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2605. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2606. ucontrol->value.integer.value[0]);
  2607. return 0;
  2608. }
  2609. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2610. struct snd_ctl_elem_value *ucontrol)
  2611. {
  2612. struct snd_soc_dapm_widget *widget =
  2613. snd_soc_dapm_kcontrol_widget(kcontrol);
  2614. struct snd_soc_dapm_update *update = NULL;
  2615. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2616. ucontrol->value.integer.value[0]);
  2617. if (ucontrol->value.integer.value[0])
  2618. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2619. update);
  2620. else
  2621. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2622. update);
  2623. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2624. return 1;
  2625. }
  2626. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2627. struct snd_ctl_elem_value *ucontrol)
  2628. {
  2629. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2630. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2631. ucontrol->value.integer.value[0]);
  2632. return 0;
  2633. }
  2634. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2635. struct snd_ctl_elem_value *ucontrol)
  2636. {
  2637. struct snd_soc_dapm_widget *widget =
  2638. snd_soc_dapm_kcontrol_widget(kcontrol);
  2639. struct snd_soc_dapm_update *update = NULL;
  2640. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2641. ucontrol->value.integer.value[0]);
  2642. if (ucontrol->value.integer.value[0])
  2643. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2644. update);
  2645. else
  2646. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2647. update);
  2648. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2649. return 1;
  2650. }
  2651. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2652. struct snd_ctl_elem_value *ucontrol)
  2653. {
  2654. ucontrol->value.integer.value[0] = usb_switch_enable;
  2655. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2656. ucontrol->value.integer.value[0]);
  2657. return 0;
  2658. }
  2659. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2660. struct snd_ctl_elem_value *ucontrol)
  2661. {
  2662. struct snd_soc_dapm_widget *widget =
  2663. snd_soc_dapm_kcontrol_widget(kcontrol);
  2664. struct snd_soc_dapm_update *update = NULL;
  2665. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2666. ucontrol->value.integer.value[0]);
  2667. if (ucontrol->value.integer.value[0])
  2668. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2669. 1, update);
  2670. else
  2671. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2672. 0, update);
  2673. usb_switch_enable = ucontrol->value.integer.value[0];
  2674. return 1;
  2675. }
  2676. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2677. struct snd_ctl_elem_value *ucontrol)
  2678. {
  2679. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2680. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2681. ucontrol->value.integer.value[0]);
  2682. return 0;
  2683. }
  2684. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2685. struct snd_ctl_elem_value *ucontrol)
  2686. {
  2687. struct snd_soc_dapm_widget *widget =
  2688. snd_soc_dapm_kcontrol_widget(kcontrol);
  2689. struct snd_soc_dapm_update *update = NULL;
  2690. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2691. ucontrol->value.integer.value[0]);
  2692. if (ucontrol->value.integer.value[0])
  2693. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2694. update);
  2695. else
  2696. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2697. update);
  2698. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2699. return 1;
  2700. }
  2701. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2702. struct snd_ctl_elem_value *ucontrol)
  2703. {
  2704. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2705. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2706. ucontrol->value.integer.value[0]);
  2707. return 0;
  2708. }
  2709. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2710. struct snd_ctl_elem_value *ucontrol)
  2711. {
  2712. struct snd_soc_dapm_widget *widget =
  2713. snd_soc_dapm_kcontrol_widget(kcontrol);
  2714. struct snd_soc_dapm_update *update = NULL;
  2715. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2716. ucontrol->value.integer.value[0]);
  2717. if (ucontrol->value.integer.value[0])
  2718. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2719. update);
  2720. else
  2721. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2722. update);
  2723. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2724. return 1;
  2725. }
  2726. static int msm_routing_get_tert_mi2s_switch_mixer(
  2727. struct snd_kcontrol *kcontrol,
  2728. struct snd_ctl_elem_value *ucontrol)
  2729. {
  2730. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2731. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2732. ucontrol->value.integer.value[0]);
  2733. return 0;
  2734. }
  2735. static int msm_routing_put_tert_mi2s_switch_mixer(
  2736. struct snd_kcontrol *kcontrol,
  2737. struct snd_ctl_elem_value *ucontrol)
  2738. {
  2739. struct snd_soc_dapm_widget *widget =
  2740. snd_soc_dapm_kcontrol_widget(kcontrol);
  2741. struct snd_soc_dapm_update *update = NULL;
  2742. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2743. ucontrol->value.integer.value[0]);
  2744. if (ucontrol->value.integer.value[0])
  2745. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2746. update);
  2747. else
  2748. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2749. update);
  2750. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2751. return 1;
  2752. }
  2753. static int msm_routing_get_quat_mi2s_switch_mixer(
  2754. struct snd_kcontrol *kcontrol,
  2755. struct snd_ctl_elem_value *ucontrol)
  2756. {
  2757. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2758. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2759. ucontrol->value.integer.value[0]);
  2760. return 0;
  2761. }
  2762. static int msm_routing_put_quat_mi2s_switch_mixer(
  2763. struct snd_kcontrol *kcontrol,
  2764. struct snd_ctl_elem_value *ucontrol)
  2765. {
  2766. struct snd_soc_dapm_widget *widget =
  2767. snd_soc_dapm_kcontrol_widget(kcontrol);
  2768. struct snd_soc_dapm_update *update = NULL;
  2769. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2770. ucontrol->value.integer.value[0]);
  2771. if (ucontrol->value.integer.value[0])
  2772. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2773. update);
  2774. else
  2775. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2776. update);
  2777. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2778. return 1;
  2779. }
  2780. static int msm_routing_get_quin_mi2s_switch_mixer(
  2781. struct snd_kcontrol *kcontrol,
  2782. struct snd_ctl_elem_value *ucontrol)
  2783. {
  2784. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2785. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2786. ucontrol->value.integer.value[0]);
  2787. return 0;
  2788. }
  2789. static int msm_routing_put_quin_mi2s_switch_mixer(
  2790. struct snd_kcontrol *kcontrol,
  2791. struct snd_ctl_elem_value *ucontrol)
  2792. {
  2793. struct snd_soc_dapm_widget *widget =
  2794. snd_soc_dapm_kcontrol_widget(kcontrol);
  2795. struct snd_soc_dapm_update *update = NULL;
  2796. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2797. ucontrol->value.integer.value[0]);
  2798. if (ucontrol->value.integer.value[0])
  2799. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2800. update);
  2801. else
  2802. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2803. update);
  2804. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2805. return 1;
  2806. }
  2807. static int msm_routing_get_sen_mi2s_switch_mixer(
  2808. struct snd_kcontrol *kcontrol,
  2809. struct snd_ctl_elem_value *ucontrol)
  2810. {
  2811. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2812. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2813. ucontrol->value.integer.value[0]);
  2814. return 0;
  2815. }
  2816. static int msm_routing_put_sen_mi2s_switch_mixer(
  2817. struct snd_kcontrol *kcontrol,
  2818. struct snd_ctl_elem_value *ucontrol)
  2819. {
  2820. struct snd_soc_dapm_widget *widget =
  2821. snd_soc_dapm_kcontrol_widget(kcontrol);
  2822. struct snd_soc_dapm_update *update = NULL;
  2823. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2824. ucontrol->value.integer.value[0]);
  2825. if (ucontrol->value.integer.value[0])
  2826. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2827. update);
  2828. else
  2829. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2830. update);
  2831. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2832. return 1;
  2833. }
  2834. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2835. struct snd_ctl_elem_value *ucontrol)
  2836. {
  2837. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2838. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2839. ucontrol->value.integer.value[0]);
  2840. return 0;
  2841. }
  2842. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2843. struct snd_ctl_elem_value *ucontrol)
  2844. {
  2845. struct snd_soc_dapm_widget *widget =
  2846. snd_soc_dapm_kcontrol_widget(kcontrol);
  2847. struct snd_soc_dapm_update *update = NULL;
  2848. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2849. ucontrol->value.integer.value[0]);
  2850. if (ucontrol->value.integer.value[0])
  2851. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2852. update);
  2853. else
  2854. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2855. update);
  2856. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2857. return 1;
  2858. }
  2859. static void msm_routing_get_lsm_fe_idx(struct snd_kcontrol *kcontrol,
  2860. u8 *fe_idx)
  2861. {
  2862. int fe_id = MSM_FRONTEND_DAI_LSM1;
  2863. if (strnstr(kcontrol->id.name, "LSM1", sizeof("LSM1"))) {
  2864. fe_id = MSM_FRONTEND_DAI_LSM1;
  2865. } else if (strnstr(kcontrol->id.name, "LSM2", sizeof("LSM2"))) {
  2866. fe_id = MSM_FRONTEND_DAI_LSM2;
  2867. } else if (strnstr(kcontrol->id.name, "LSM3", sizeof("LSM3"))) {
  2868. fe_id = MSM_FRONTEND_DAI_LSM3;
  2869. } else if (strnstr(kcontrol->id.name, "LSM4", sizeof("LSM4"))) {
  2870. fe_id = MSM_FRONTEND_DAI_LSM4;
  2871. } else if (strnstr(kcontrol->id.name, "LSM5", sizeof("LSM5"))) {
  2872. fe_id = MSM_FRONTEND_DAI_LSM5;
  2873. } else if (strnstr(kcontrol->id.name, "LSM6", sizeof("LSM6"))) {
  2874. fe_id = MSM_FRONTEND_DAI_LSM6;
  2875. } else if (strnstr(kcontrol->id.name, "LSM7", sizeof("LSM7"))) {
  2876. fe_id = MSM_FRONTEND_DAI_LSM7;
  2877. } else if (strnstr(kcontrol->id.name, "LSM8", sizeof("LSM8"))) {
  2878. fe_id = MSM_FRONTEND_DAI_LSM8;
  2879. } else {
  2880. pr_err("%s: Invalid kcontrol name:%s\n", __func__,
  2881. kcontrol->id.name);
  2882. return;
  2883. }
  2884. *fe_idx = fe_id - MSM_FRONTEND_DAI_LSM1;
  2885. pr_debug("%s: fe_id: %d, fe_idx:%d\n", __func__, fe_id, *fe_idx);
  2886. }
  2887. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2888. struct snd_ctl_elem_value *ucontrol)
  2889. {
  2890. u8 fe_idx = 0;
  2891. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2892. ucontrol->value.integer.value[0] = lsm_port_index[fe_idx];
  2893. return 0;
  2894. }
  2895. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2896. struct snd_ctl_elem_value *ucontrol)
  2897. {
  2898. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2899. int mux = ucontrol->value.enumerated.item[0];
  2900. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2901. u8 fe_idx = 0;
  2902. if (mux >= e->items) {
  2903. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2904. return -EINVAL;
  2905. }
  2906. pr_debug("%s: LSM enable %ld\n", __func__,
  2907. ucontrol->value.integer.value[0]);
  2908. switch (ucontrol->value.integer.value[0]) {
  2909. case 1:
  2910. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2911. break;
  2912. case 2:
  2913. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2914. break;
  2915. case 3:
  2916. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2917. break;
  2918. case 4:
  2919. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2920. break;
  2921. case 5:
  2922. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2923. break;
  2924. case 6:
  2925. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2926. break;
  2927. case 7:
  2928. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2929. break;
  2930. case 8:
  2931. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2932. break;
  2933. case 9:
  2934. lsm_port = ADM_LSM_PORT_ID;
  2935. break;
  2936. case 10:
  2937. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2938. break;
  2939. case 11:
  2940. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2941. break;
  2942. case 12:
  2943. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2944. break;
  2945. case 13:
  2946. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2947. break;
  2948. case 14:
  2949. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2950. break;
  2951. case 15:
  2952. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2953. break;
  2954. case 16:
  2955. lsm_port = AFE_PORT_ID_TERTIARY_TDM_TX;
  2956. break;
  2957. default:
  2958. pr_err("Default lsm port");
  2959. break;
  2960. }
  2961. set_lsm_port(lsm_port);
  2962. msm_routing_get_lsm_fe_idx(kcontrol, &fe_idx);
  2963. lsm_port_index[fe_idx] = ucontrol->value.integer.value[0];
  2964. return 0;
  2965. }
  2966. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2967. struct snd_ctl_elem_value *ucontrol)
  2968. {
  2969. int i;
  2970. u16 port_id;
  2971. enum afe_mad_type mad_type;
  2972. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  2973. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2974. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2975. strlen(lsm_port_text[i])))
  2976. break;
  2977. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2978. pr_warn("%s: Invalid id name %s\n", __func__,
  2979. kcontrol->id.name);
  2980. return -EINVAL;
  2981. }
  2982. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2983. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2984. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2985. strlen(lsm_port_text[7])))
  2986. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2987. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2988. strlen(lsm_port_text[8])))
  2989. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2990. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2991. strlen(lsm_port_text[10])))
  2992. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2993. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2994. strlen(lsm_port_text[14])))
  2995. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2996. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  2997. strlen(lsm_port_text[15])))
  2998. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2999. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3000. strlen(lsm_port_text[16])))
  3001. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3002. mad_type = afe_port_get_mad_type(port_id);
  3003. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3004. mad_type);
  3005. switch (mad_type) {
  3006. case MAD_HW_NONE:
  3007. ucontrol->value.integer.value[0] = MADNONE;
  3008. break;
  3009. case MAD_HW_AUDIO:
  3010. ucontrol->value.integer.value[0] = MADAUDIO;
  3011. break;
  3012. case MAD_HW_BEACON:
  3013. ucontrol->value.integer.value[0] = MADBEACON;
  3014. break;
  3015. case MAD_HW_ULTRASOUND:
  3016. ucontrol->value.integer.value[0] = MADULTRASOUND;
  3017. break;
  3018. case MAD_SW_AUDIO:
  3019. ucontrol->value.integer.value[0] = MADSWAUDIO;
  3020. break;
  3021. default:
  3022. pr_warn("%s: Unknown\n", __func__);
  3023. return -EINVAL;
  3024. }
  3025. return 0;
  3026. }
  3027. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  3028. struct snd_ctl_elem_value *ucontrol)
  3029. {
  3030. int i;
  3031. u16 port_id;
  3032. enum afe_mad_type mad_type;
  3033. pr_debug("%s: id name %s\n", __func__, kcontrol->id.name);
  3034. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  3035. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  3036. strlen(lsm_port_text[i])))
  3037. break;
  3038. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  3039. pr_warn("%s: Invalid id name %s\n", __func__,
  3040. kcontrol->id.name);
  3041. return -EINVAL;
  3042. }
  3043. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  3044. switch (ucontrol->value.integer.value[0]) {
  3045. case MADNONE:
  3046. mad_type = MAD_HW_NONE;
  3047. break;
  3048. case MADAUDIO:
  3049. mad_type = MAD_HW_AUDIO;
  3050. break;
  3051. case MADBEACON:
  3052. mad_type = MAD_HW_BEACON;
  3053. break;
  3054. case MADULTRASOUND:
  3055. mad_type = MAD_HW_ULTRASOUND;
  3056. break;
  3057. case MADSWAUDIO:
  3058. mad_type = MAD_SW_AUDIO;
  3059. break;
  3060. default:
  3061. pr_warn("%s: Unknown\n", __func__);
  3062. return -EINVAL;
  3063. }
  3064. /*Check for Tertiary/Quaternary/INT3 TX port*/
  3065. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  3066. strlen(lsm_port_text[7])))
  3067. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3068. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  3069. strlen(lsm_port_text[8])))
  3070. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3071. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  3072. strlen(lsm_port_text[10])))
  3073. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3074. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  3075. strlen(lsm_port_text[14])))
  3076. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  3077. if (strnstr(kcontrol->id.name, lsm_port_text[15],
  3078. strlen(lsm_port_text[15])))
  3079. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  3080. if (strnstr(kcontrol->id.name, lsm_port_text[16],
  3081. strlen(lsm_port_text[16])))
  3082. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3083. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  3084. mad_type);
  3085. return afe_port_set_mad_type(port_id, mad_type);
  3086. }
  3087. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  3088. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  3089. adm_override_chs_text);
  3090. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  3091. {
  3092. int backend_id;
  3093. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  3094. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  3095. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  3096. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  3097. } else {
  3098. pr_err("%s: unsupported backend id: %s",
  3099. __func__, kcontrol->id.name);
  3100. return -EINVAL;
  3101. }
  3102. return backend_id;
  3103. }
  3104. static int msm_routing_adm_channel_config_get(
  3105. struct snd_kcontrol *kcontrol,
  3106. struct snd_ctl_elem_value *ucontrol)
  3107. {
  3108. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3109. if (backend_id >= 0) {
  3110. mutex_lock(&routing_lock);
  3111. ucontrol->value.integer.value[0] =
  3112. msm_bedais[backend_id].adm_override_ch;
  3113. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  3114. ucontrol->value.integer.value[0], backend_id);
  3115. mutex_unlock(&routing_lock);
  3116. }
  3117. return 0;
  3118. }
  3119. static int msm_routing_adm_channel_config_put(
  3120. struct snd_kcontrol *kcontrol,
  3121. struct snd_ctl_elem_value *ucontrol)
  3122. {
  3123. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  3124. if (backend_id >= 0) {
  3125. mutex_lock(&routing_lock);
  3126. msm_bedais[backend_id].adm_override_ch =
  3127. ucontrol->value.integer.value[0];
  3128. pr_debug("%s:updating BE :%d adm channels: %d\n",
  3129. __func__, backend_id,
  3130. msm_bedais[backend_id].adm_override_ch);
  3131. mutex_unlock(&routing_lock);
  3132. }
  3133. return 0;
  3134. }
  3135. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  3136. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  3137. msm_routing_adm_channel_config_get,
  3138. msm_routing_adm_channel_config_put),
  3139. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  3140. msm_routing_adm_channel_config_get,
  3141. msm_routing_adm_channel_config_put),
  3142. };
  3143. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  3144. struct snd_ctl_elem_value *ucontrol)
  3145. {
  3146. mutex_lock(&routing_lock);
  3147. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  3148. mutex_unlock(&routing_lock);
  3149. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3150. ucontrol->value.integer.value[0]);
  3151. return 0;
  3152. };
  3153. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  3154. struct snd_ctl_elem_value *ucontrol)
  3155. {
  3156. struct aanc_data aanc_info;
  3157. mutex_lock(&routing_lock);
  3158. memset(&aanc_info, 0x00, sizeof(aanc_info));
  3159. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  3160. ucontrol->value.integer.value[0]);
  3161. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  3162. if (ucontrol->value.integer.value[0] == 0) {
  3163. aanc_info.aanc_active = false;
  3164. aanc_info.aanc_tx_port = 0;
  3165. aanc_info.aanc_rx_port = 0;
  3166. } else {
  3167. aanc_info.aanc_active = true;
  3168. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  3169. aanc_info.aanc_tx_port =
  3170. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  3171. }
  3172. afe_set_aanc_info(&aanc_info);
  3173. mutex_unlock(&routing_lock);
  3174. return 0;
  3175. };
  3176. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  3177. struct snd_ctl_elem_value *ucontrol)
  3178. {
  3179. int idx = 0, shift = 0;
  3180. struct soc_mixer_control *mc =
  3181. (struct soc_mixer_control *)kcontrol->private_value;
  3182. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3183. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3184. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3185. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3186. return -EINVAL;
  3187. }
  3188. if (test_bit(shift,
  3189. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  3190. ucontrol->value.integer.value[0] = 1;
  3191. else
  3192. ucontrol->value.integer.value[0] = 0;
  3193. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  3194. ucontrol->value.integer.value[0]);
  3195. return 0;
  3196. }
  3197. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  3198. struct snd_ctl_elem_value *ucontrol)
  3199. {
  3200. int idx = 0, shift = 0;
  3201. struct soc_mixer_control *mc =
  3202. (struct soc_mixer_control *)kcontrol->private_value;
  3203. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3204. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  3205. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  3206. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  3207. return -EINVAL;
  3208. }
  3209. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  3210. __func__, mc->shift, mc->rshift,
  3211. ucontrol->value.integer.value[0], idx, shift);
  3212. if (ucontrol->value.integer.value[0]) {
  3213. afe_loopback(1, msm_bedais[mc->shift].port_id,
  3214. msm_bedais[mc->rshift].port_id);
  3215. set_bit(shift,
  3216. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3217. } else {
  3218. afe_loopback(0, msm_bedais[mc->shift].port_id,
  3219. msm_bedais[mc->rshift].port_id);
  3220. clear_bit(shift,
  3221. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  3222. }
  3223. return 1;
  3224. }
  3225. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. u16 fe_id = 0;
  3229. fe_id = ((struct soc_mixer_control *)
  3230. kcontrol->private_value)->shift;
  3231. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3232. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3233. return -EINVAL;
  3234. }
  3235. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3236. return 0;
  3237. }
  3238. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3239. struct snd_ctl_elem_value *ucontrol)
  3240. {
  3241. u16 fe_id = 0;
  3242. fe_id = ((struct soc_mixer_control *)
  3243. kcontrol->private_value)->shift;
  3244. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3245. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3246. return -EINVAL;
  3247. }
  3248. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3249. return 1;
  3250. }
  3251. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3252. struct snd_ctl_elem_value *ucontrol)
  3253. {
  3254. u16 fe_id = 0;
  3255. fe_id = ((struct soc_multi_mixer_control *)
  3256. kcontrol->private_value)->shift;
  3257. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3258. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3259. return -EINVAL;
  3260. }
  3261. ucontrol->value.integer.value[0] =
  3262. channel_mixer[fe_id].output_channel;
  3263. return 0;
  3264. }
  3265. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3266. struct snd_ctl_elem_value *ucontrol)
  3267. {
  3268. u16 fe_id = 0;
  3269. fe_id = ((struct soc_multi_mixer_control *)
  3270. kcontrol->private_value)->shift;
  3271. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3272. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3273. return -EINVAL;
  3274. }
  3275. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3276. fe_id,
  3277. (unsigned int)(ucontrol->value.integer.value[0]));
  3278. channel_mixer[fe_id].output_channel =
  3279. (unsigned int)(ucontrol->value.integer.value[0]);
  3280. return 1;
  3281. }
  3282. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3283. /* If new backend is added, need update this array */
  3284. static const char *const be_name[] = {
  3285. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3286. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3287. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3288. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3289. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3290. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3291. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3292. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3293. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3294. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3295. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3296. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3297. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3298. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3299. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3300. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3301. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3302. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3303. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3304. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3305. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3306. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3307. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3308. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3309. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3310. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3311. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3312. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3313. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3314. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3315. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3316. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3317. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3318. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3319. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3320. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3321. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3322. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3323. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3324. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3325. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3326. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3327. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3328. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3329. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3330. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3331. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3332. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3333. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3334. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3335. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3336. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3337. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3338. "SEC_META_MI2S_RX", "PROXY_RX", "PROXY_TX", "HDMI_RX_MS"
  3339. };
  3340. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3341. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3342. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3343. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3344. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3345. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3346. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3347. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3348. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3349. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3350. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3351. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3352. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3353. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3354. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3355. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3356. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3357. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3358. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3359. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3360. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3361. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3362. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3363. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3364. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3365. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3366. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3367. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3368. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3369. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3370. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3371. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3372. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3373. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3374. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3375. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3376. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3377. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3378. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3379. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3380. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3381. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3382. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3383. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3384. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3385. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3386. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3387. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3388. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3389. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3390. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3391. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3392. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3393. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3394. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3395. unsigned int channels,
  3396. unsigned int items, const char *const names[])
  3397. {
  3398. if (uinfo->value.enumerated.item >= items)
  3399. uinfo->value.enumerated.item = items - 1;
  3400. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3401. sizeof(uinfo->value.enumerated.name),
  3402. "ALSA: too long item name '%s'\n",
  3403. names[uinfo->value.enumerated.item]);
  3404. strlcpy(uinfo->value.enumerated.name,
  3405. names[uinfo->value.enumerated.item],
  3406. sizeof(uinfo->value.enumerated.name));
  3407. return 0;
  3408. }
  3409. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3410. struct snd_ctl_elem_info *uinfo)
  3411. {
  3412. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3413. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3414. uinfo->count = 1;
  3415. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3416. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3417. return 0;
  3418. }
  3419. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3420. struct snd_ctl_elem_value *ucontrol)
  3421. {
  3422. u16 fe_id = 0;
  3423. fe_id = ((struct soc_enum *)
  3424. kcontrol->private_value)->shift_l;
  3425. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3426. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3427. return -EINVAL;
  3428. }
  3429. pr_debug("%s: FE %d %s\n", __func__,
  3430. fe_id,
  3431. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3432. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3433. return 0;
  3434. }
  3435. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3436. struct snd_ctl_elem_value *ucontrol)
  3437. {
  3438. u16 fe_id = 0;
  3439. fe_id = ((struct soc_enum *)
  3440. kcontrol->private_value)->shift_l;
  3441. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3442. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3443. return -EINVAL;
  3444. }
  3445. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3446. pr_debug("%s: %s FE %d\n", __func__,
  3447. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3448. fe_id);
  3449. return 0;
  3450. }
  3451. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3452. struct snd_ctl_elem_info *uinfo)
  3453. {
  3454. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3455. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3456. uinfo->count = 1;
  3457. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3458. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3459. return 0;
  3460. }
  3461. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3462. struct snd_ctl_elem_value *ucontrol)
  3463. {
  3464. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3465. u16 fe_id = 0, in_ch = 0;
  3466. fe_id = e->shift_l;
  3467. in_ch = e->shift_r;
  3468. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3469. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3470. return -EINVAL;
  3471. }
  3472. if (in_ch >= ADM_MAX_CHANNELS) {
  3473. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3474. return -EINVAL;
  3475. }
  3476. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3477. return 1;
  3478. }
  3479. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3480. struct snd_ctl_elem_value *ucontrol)
  3481. {
  3482. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3483. u16 fe_id = 0, in_ch = 0;
  3484. fe_id = e->shift_l;
  3485. in_ch = e->shift_r;
  3486. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3487. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3488. return -EINVAL;
  3489. }
  3490. if (in_ch >= ADM_MAX_CHANNELS) {
  3491. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3492. return -EINVAL;
  3493. }
  3494. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3495. return 1;
  3496. }
  3497. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3498. struct snd_ctl_elem_info *uinfo)
  3499. {
  3500. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3501. uinfo->count = ADM_MAX_CHANNELS;
  3502. uinfo->value.integer.min = 0;
  3503. uinfo->value.integer.max = WEIGHT_0_DB;
  3504. return 0;
  3505. }
  3506. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3507. struct snd_ctl_elem_value *ucontrol)
  3508. {
  3509. u16 fe_id = 0, out_ch = 0;
  3510. int i, weight;
  3511. fe_id = ((struct soc_multi_mixer_control *)
  3512. kcontrol->private_value)->shift;
  3513. out_ch = ((struct soc_multi_mixer_control *)
  3514. kcontrol->private_value)->rshift;
  3515. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3516. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3517. return -EINVAL;
  3518. }
  3519. if (out_ch >= ADM_MAX_CHANNELS) {
  3520. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3521. return -EINVAL;
  3522. }
  3523. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3524. __func__, fe_id,
  3525. ucontrol->value.integer.value[0],
  3526. ucontrol->value.integer.value[1],
  3527. ucontrol->value.integer.value[2],
  3528. ucontrol->value.integer.value[3],
  3529. ucontrol->value.integer.value[4],
  3530. ucontrol->value.integer.value[5],
  3531. ucontrol->value.integer.value[6],
  3532. ucontrol->value.integer.value[7]);
  3533. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3534. weight = ucontrol->value.integer.value[i];
  3535. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3536. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3537. __func__, fe_id, out_ch, i,
  3538. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3539. }
  3540. return 0;
  3541. }
  3542. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3543. struct snd_ctl_elem_value *ucontrol)
  3544. {
  3545. u16 fe_id = 0, out_ch = 0;
  3546. int i;
  3547. fe_id = ((struct soc_multi_mixer_control *)
  3548. kcontrol->private_value)->shift;
  3549. out_ch = ((struct soc_multi_mixer_control *)
  3550. kcontrol->private_value)->rshift;
  3551. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3552. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3553. return -EINVAL;
  3554. }
  3555. if (out_ch >= ADM_MAX_CHANNELS) {
  3556. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3557. return -EINVAL;
  3558. }
  3559. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3560. ucontrol->value.integer.value[i] =
  3561. channel_mixer[fe_id].channel_weight[out_ch][i];
  3562. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3563. __func__, fe_id,
  3564. ucontrol->value.integer.value[0],
  3565. ucontrol->value.integer.value[1],
  3566. ucontrol->value.integer.value[2],
  3567. ucontrol->value.integer.value[3],
  3568. ucontrol->value.integer.value[4],
  3569. ucontrol->value.integer.value[5],
  3570. ucontrol->value.integer.value[6],
  3571. ucontrol->value.integer.value[7]);
  3572. return 0;
  3573. }
  3574. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3575. struct snd_ctl_elem_info *uinfo)
  3576. {
  3577. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3578. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3579. /* Valid channel map value ranges from 1 to 64 */
  3580. uinfo->value.integer.min = 0;
  3581. uinfo->value.integer.max = 64;
  3582. return 0;
  3583. }
  3584. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3585. struct snd_ctl_elem_value *ucontrol)
  3586. {
  3587. u16 fe_id = 0;
  3588. int i, ch_map;
  3589. fe_id = ((struct soc_multi_mixer_control *)
  3590. kcontrol->private_value)->shift;
  3591. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3592. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3593. return -EINVAL;
  3594. }
  3595. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3596. ch_map = ucontrol->value.integer.value[i];
  3597. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3598. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3599. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3600. }
  3601. /* Make override_out_ch_map false if ch map is reset */
  3602. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3603. channel_mixer[fe_id].override_out_ch_map = false;
  3604. else
  3605. channel_mixer[fe_id].override_out_ch_map = true;
  3606. return 0;
  3607. }
  3608. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3609. struct snd_ctl_elem_value *ucontrol)
  3610. {
  3611. u16 fe_id = 0;
  3612. int i;
  3613. fe_id = ((struct soc_multi_mixer_control *)
  3614. kcontrol->private_value)->shift;
  3615. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3616. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3617. return -EINVAL;
  3618. }
  3619. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3620. ucontrol->value.integer.value[i] =
  3621. channel_mixer[fe_id].out_ch_map[i];
  3622. return 0;
  3623. }
  3624. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3625. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3627. msm_pcm_get_channel_rule_index,
  3628. msm_pcm_put_channel_rule_index),
  3629. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3630. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3631. msm_pcm_get_channel_rule_index,
  3632. msm_pcm_put_channel_rule_index),
  3633. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3635. msm_pcm_get_channel_rule_index,
  3636. msm_pcm_put_channel_rule_index),
  3637. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3639. msm_pcm_get_channel_rule_index,
  3640. msm_pcm_put_channel_rule_index),
  3641. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3643. msm_pcm_get_channel_rule_index,
  3644. msm_pcm_put_channel_rule_index),
  3645. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3647. msm_pcm_get_channel_rule_index,
  3648. msm_pcm_put_channel_rule_index),
  3649. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3651. msm_pcm_get_channel_rule_index,
  3652. msm_pcm_put_channel_rule_index),
  3653. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3655. msm_pcm_get_channel_rule_index,
  3656. msm_pcm_put_channel_rule_index),
  3657. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3659. msm_pcm_get_channel_rule_index,
  3660. msm_pcm_put_channel_rule_index),
  3661. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3662. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3663. msm_pcm_get_channel_rule_index,
  3664. msm_pcm_put_channel_rule_index),
  3665. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3666. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3667. msm_pcm_get_channel_rule_index,
  3668. msm_pcm_put_channel_rule_index),
  3669. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3671. msm_pcm_get_out_chs,
  3672. msm_pcm_put_out_chs),
  3673. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3674. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3675. msm_pcm_get_out_chs,
  3676. msm_pcm_put_out_chs),
  3677. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3678. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3679. msm_pcm_get_out_chs,
  3680. msm_pcm_put_out_chs),
  3681. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3683. msm_pcm_get_out_chs,
  3684. msm_pcm_put_out_chs),
  3685. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3686. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3687. msm_pcm_get_out_chs,
  3688. msm_pcm_put_out_chs),
  3689. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3690. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3691. msm_pcm_get_out_chs,
  3692. msm_pcm_put_out_chs),
  3693. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3695. msm_pcm_get_out_chs,
  3696. msm_pcm_put_out_chs),
  3697. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3698. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3699. msm_pcm_get_out_chs,
  3700. msm_pcm_put_out_chs),
  3701. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3702. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3703. msm_pcm_get_out_chs,
  3704. msm_pcm_put_out_chs),
  3705. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3706. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3707. msm_pcm_get_out_chs,
  3708. msm_pcm_put_out_chs),
  3709. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3710. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3711. msm_pcm_get_out_chs,
  3712. msm_pcm_put_out_chs),
  3713. {
  3714. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3715. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3716. .name = "MultiMedia1 Channel Mixer",
  3717. .info = msm_pcm_channel_mixer_info,
  3718. .get = msm_pcm_channel_mixer_get,
  3719. .put = msm_pcm_channel_mixer_put,
  3720. .private_value = (unsigned long)&(mm1_channel_mux)
  3721. },
  3722. {
  3723. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3725. .name = "MultiMedia2 Channel Mixer",
  3726. .info = msm_pcm_channel_mixer_info,
  3727. .get = msm_pcm_channel_mixer_get,
  3728. .put = msm_pcm_channel_mixer_put,
  3729. .private_value = (unsigned long)&(mm2_channel_mux)
  3730. },
  3731. {
  3732. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3733. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3734. .name = "MultiMedia3 Channel Mixer",
  3735. .info = msm_pcm_channel_mixer_info,
  3736. .get = msm_pcm_channel_mixer_get,
  3737. .put = msm_pcm_channel_mixer_put,
  3738. .private_value = (unsigned long)&(mm3_channel_mux)
  3739. },
  3740. {
  3741. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3742. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3743. .name = "MultiMedia4 Channel Mixer",
  3744. .info = msm_pcm_channel_mixer_info,
  3745. .get = msm_pcm_channel_mixer_get,
  3746. .put = msm_pcm_channel_mixer_put,
  3747. .private_value = (unsigned long)&(mm4_channel_mux)
  3748. },
  3749. {
  3750. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3751. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3752. .name = "MultiMedia18 Channel Mixer",
  3753. .info = msm_pcm_channel_mixer_info,
  3754. .get = msm_pcm_channel_mixer_get,
  3755. .put = msm_pcm_channel_mixer_put,
  3756. .private_value = (unsigned long)&(mm18_channel_mux)
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia19 Channel Mixer",
  3762. .info = msm_pcm_channel_mixer_info,
  3763. .get = msm_pcm_channel_mixer_get,
  3764. .put = msm_pcm_channel_mixer_put,
  3765. .private_value = (unsigned long)&(mm19_channel_mux)
  3766. },
  3767. {
  3768. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3769. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3770. .name = "MultiMedia28 Channel Mixer",
  3771. .info = msm_pcm_channel_mixer_info,
  3772. .get = msm_pcm_channel_mixer_get,
  3773. .put = msm_pcm_channel_mixer_put,
  3774. .private_value = (unsigned long)&(mm28_channel_mux)
  3775. },
  3776. {
  3777. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3778. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3779. .name = "MultiMedia29 Channel Mixer",
  3780. .info = msm_pcm_channel_mixer_info,
  3781. .get = msm_pcm_channel_mixer_get,
  3782. .put = msm_pcm_channel_mixer_put,
  3783. .private_value = (unsigned long)&(mm29_channel_mux)
  3784. },
  3785. {
  3786. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3787. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3788. .name = "MultiMedia30 Channel Mixer",
  3789. .info = msm_pcm_channel_mixer_info,
  3790. .get = msm_pcm_channel_mixer_get,
  3791. .put = msm_pcm_channel_mixer_put,
  3792. .private_value = (unsigned long)&(mm30_channel_mux)
  3793. },
  3794. {
  3795. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3796. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3797. .name = "MultiMedia1 Output Channel1",
  3798. .info = msm_pcm_channel_weight_info,
  3799. .get = msm_pcm_channel_weight_get,
  3800. .put = msm_pcm_channel_weight_put,
  3801. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3802. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3803. },
  3804. {
  3805. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3806. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3807. .name = "MultiMedia1 Output Channel2",
  3808. .info = msm_pcm_channel_weight_info,
  3809. .get = msm_pcm_channel_weight_get,
  3810. .put = msm_pcm_channel_weight_put,
  3811. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3812. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3813. },
  3814. {
  3815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3816. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3817. .name = "MultiMedia1 Output Channel3",
  3818. .info = msm_pcm_channel_weight_info,
  3819. .get = msm_pcm_channel_weight_get,
  3820. .put = msm_pcm_channel_weight_put,
  3821. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3822. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3823. },
  3824. {
  3825. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3826. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3827. .name = "MultiMedia1 Output Channel4",
  3828. .info = msm_pcm_channel_weight_info,
  3829. .get = msm_pcm_channel_weight_get,
  3830. .put = msm_pcm_channel_weight_put,
  3831. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3832. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3833. },
  3834. {
  3835. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3836. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3837. .name = "MultiMedia1 Output Channel5",
  3838. .info = msm_pcm_channel_weight_info,
  3839. .get = msm_pcm_channel_weight_get,
  3840. .put = msm_pcm_channel_weight_put,
  3841. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3842. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3843. },
  3844. {
  3845. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3846. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3847. .name = "MultiMedia1 Output Channel6",
  3848. .info = msm_pcm_channel_weight_info,
  3849. .get = msm_pcm_channel_weight_get,
  3850. .put = msm_pcm_channel_weight_put,
  3851. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3852. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3853. },
  3854. {
  3855. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3856. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3857. .name = "MultiMedia1 Output Channel7",
  3858. .info = msm_pcm_channel_weight_info,
  3859. .get = msm_pcm_channel_weight_get,
  3860. .put = msm_pcm_channel_weight_put,
  3861. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3862. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3863. },
  3864. {
  3865. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3866. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3867. .name = "MultiMedia1 Output Channel8",
  3868. .info = msm_pcm_channel_weight_info,
  3869. .get = msm_pcm_channel_weight_get,
  3870. .put = msm_pcm_channel_weight_put,
  3871. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3872. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3873. },
  3874. {
  3875. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3876. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3877. .name = "MultiMedia1 Output Channel9",
  3878. .info = msm_pcm_channel_weight_info,
  3879. .get = msm_pcm_channel_weight_get,
  3880. .put = msm_pcm_channel_weight_put,
  3881. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3882. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3883. },
  3884. {
  3885. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3886. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3887. .name = "MultiMedia1 Output Channel10",
  3888. .info = msm_pcm_channel_weight_info,
  3889. .get = msm_pcm_channel_weight_get,
  3890. .put = msm_pcm_channel_weight_put,
  3891. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3892. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3893. },
  3894. {
  3895. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3896. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3897. .name = "MultiMedia1 Output Channel11",
  3898. .info = msm_pcm_channel_weight_info,
  3899. .get = msm_pcm_channel_weight_get,
  3900. .put = msm_pcm_channel_weight_put,
  3901. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3902. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3903. },
  3904. {
  3905. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3906. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3907. .name = "MultiMedia1 Output Channel12",
  3908. .info = msm_pcm_channel_weight_info,
  3909. .get = msm_pcm_channel_weight_get,
  3910. .put = msm_pcm_channel_weight_put,
  3911. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3912. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3913. },
  3914. {
  3915. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3916. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3917. .name = "MultiMedia1 Output Channel13",
  3918. .info = msm_pcm_channel_weight_info,
  3919. .get = msm_pcm_channel_weight_get,
  3920. .put = msm_pcm_channel_weight_put,
  3921. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3922. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3923. },
  3924. {
  3925. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3926. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3927. .name = "MultiMedia1 Output Channel14",
  3928. .info = msm_pcm_channel_weight_info,
  3929. .get = msm_pcm_channel_weight_get,
  3930. .put = msm_pcm_channel_weight_put,
  3931. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3932. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3933. },
  3934. {
  3935. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3936. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3937. .name = "MultiMedia2 Output Channel1",
  3938. .info = msm_pcm_channel_weight_info,
  3939. .get = msm_pcm_channel_weight_get,
  3940. .put = msm_pcm_channel_weight_put,
  3941. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3942. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3943. },
  3944. {
  3945. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3946. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3947. .name = "MultiMedia2 Output Channel2",
  3948. .info = msm_pcm_channel_weight_info,
  3949. .get = msm_pcm_channel_weight_get,
  3950. .put = msm_pcm_channel_weight_put,
  3951. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3952. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3953. },
  3954. {
  3955. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3956. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3957. .name = "MultiMedia2 Output Channel3",
  3958. .info = msm_pcm_channel_weight_info,
  3959. .get = msm_pcm_channel_weight_get,
  3960. .put = msm_pcm_channel_weight_put,
  3961. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3962. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3963. },
  3964. {
  3965. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3966. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3967. .name = "MultiMedia3 Output Channel1",
  3968. .info = msm_pcm_channel_weight_info,
  3969. .get = msm_pcm_channel_weight_get,
  3970. .put = msm_pcm_channel_weight_put,
  3971. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3972. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3973. },
  3974. {
  3975. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3976. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3977. .name = "MultiMedia3 Output Channel2",
  3978. .info = msm_pcm_channel_weight_info,
  3979. .get = msm_pcm_channel_weight_get,
  3980. .put = msm_pcm_channel_weight_put,
  3981. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3982. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3983. },
  3984. {
  3985. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3986. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3987. .name = "MultiMedia18 Output Channel1",
  3988. .info = msm_pcm_channel_weight_info,
  3989. .get = msm_pcm_channel_weight_get,
  3990. .put = msm_pcm_channel_weight_put,
  3991. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3992. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3993. },
  3994. {
  3995. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3996. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3997. .name = "MultiMedia18 Output Channel2",
  3998. .info = msm_pcm_channel_weight_info,
  3999. .get = msm_pcm_channel_weight_get,
  4000. .put = msm_pcm_channel_weight_put,
  4001. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4002. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  4003. },
  4004. {
  4005. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4006. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4007. .name = "MultiMedia18 Output Channel3",
  4008. .info = msm_pcm_channel_weight_info,
  4009. .get = msm_pcm_channel_weight_get,
  4010. .put = msm_pcm_channel_weight_put,
  4011. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4012. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  4013. },
  4014. {
  4015. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4016. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4017. .name = "MultiMedia18 Output Channel4",
  4018. .info = msm_pcm_channel_weight_info,
  4019. .get = msm_pcm_channel_weight_get,
  4020. .put = msm_pcm_channel_weight_put,
  4021. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4022. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  4023. },
  4024. {
  4025. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4026. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4027. .name = "MultiMedia18 Output Channel5",
  4028. .info = msm_pcm_channel_weight_info,
  4029. .get = msm_pcm_channel_weight_get,
  4030. .put = msm_pcm_channel_weight_put,
  4031. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4032. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  4033. },
  4034. {
  4035. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4036. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4037. .name = "MultiMedia18 Output Channel6",
  4038. .info = msm_pcm_channel_weight_info,
  4039. .get = msm_pcm_channel_weight_get,
  4040. .put = msm_pcm_channel_weight_put,
  4041. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4042. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  4043. },
  4044. {
  4045. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4046. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4047. .name = "MultiMedia18 Output Channel7",
  4048. .info = msm_pcm_channel_weight_info,
  4049. .get = msm_pcm_channel_weight_get,
  4050. .put = msm_pcm_channel_weight_put,
  4051. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4052. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  4053. },
  4054. {
  4055. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4056. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4057. .name = "MultiMedia18 Output Channel8",
  4058. .info = msm_pcm_channel_weight_info,
  4059. .get = msm_pcm_channel_weight_get,
  4060. .put = msm_pcm_channel_weight_put,
  4061. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4062. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  4063. },
  4064. {
  4065. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4066. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4067. .name = "MultiMedia18 Output Channel9",
  4068. .info = msm_pcm_channel_weight_info,
  4069. .get = msm_pcm_channel_weight_get,
  4070. .put = msm_pcm_channel_weight_put,
  4071. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4072. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  4073. },
  4074. {
  4075. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4076. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4077. .name = "MultiMedia18 Output Channel10",
  4078. .info = msm_pcm_channel_weight_info,
  4079. .get = msm_pcm_channel_weight_get,
  4080. .put = msm_pcm_channel_weight_put,
  4081. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4082. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  4083. },
  4084. {
  4085. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4086. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4087. .name = "MultiMedia18 Output Channel11",
  4088. .info = msm_pcm_channel_weight_info,
  4089. .get = msm_pcm_channel_weight_get,
  4090. .put = msm_pcm_channel_weight_put,
  4091. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4092. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  4093. },
  4094. {
  4095. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4096. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4097. .name = "MultiMedia18 Output Channel12",
  4098. .info = msm_pcm_channel_weight_info,
  4099. .get = msm_pcm_channel_weight_get,
  4100. .put = msm_pcm_channel_weight_put,
  4101. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4102. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  4103. },
  4104. {
  4105. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4106. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4107. .name = "MultiMedia18 Output Channel13",
  4108. .info = msm_pcm_channel_weight_info,
  4109. .get = msm_pcm_channel_weight_get,
  4110. .put = msm_pcm_channel_weight_put,
  4111. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4112. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  4113. },
  4114. {
  4115. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4116. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4117. .name = "MultiMedia18 Output Channel14",
  4118. .info = msm_pcm_channel_weight_info,
  4119. .get = msm_pcm_channel_weight_get,
  4120. .put = msm_pcm_channel_weight_put,
  4121. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4122. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  4123. },
  4124. {
  4125. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4126. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4127. .name = "MultiMedia19 Output Channel1",
  4128. .info = msm_pcm_channel_weight_info,
  4129. .get = msm_pcm_channel_weight_get,
  4130. .put = msm_pcm_channel_weight_put,
  4131. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4132. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  4133. },
  4134. {
  4135. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4136. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4137. .name = "MultiMedia19 Output Channel2",
  4138. .info = msm_pcm_channel_weight_info,
  4139. .get = msm_pcm_channel_weight_get,
  4140. .put = msm_pcm_channel_weight_put,
  4141. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4142. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  4143. },
  4144. {
  4145. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4146. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4147. .name = "MultiMedia19 Output Channel3",
  4148. .info = msm_pcm_channel_weight_info,
  4149. .get = msm_pcm_channel_weight_get,
  4150. .put = msm_pcm_channel_weight_put,
  4151. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4152. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  4153. },
  4154. {
  4155. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4156. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4157. .name = "MultiMedia19 Output Channel4",
  4158. .info = msm_pcm_channel_weight_info,
  4159. .get = msm_pcm_channel_weight_get,
  4160. .put = msm_pcm_channel_weight_put,
  4161. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4162. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  4163. },
  4164. {
  4165. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4166. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4167. .name = "MultiMedia19 Output Channel5",
  4168. .info = msm_pcm_channel_weight_info,
  4169. .get = msm_pcm_channel_weight_get,
  4170. .put = msm_pcm_channel_weight_put,
  4171. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4172. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  4173. },
  4174. {
  4175. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4176. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4177. .name = "MultiMedia19 Output Channel6",
  4178. .info = msm_pcm_channel_weight_info,
  4179. .get = msm_pcm_channel_weight_get,
  4180. .put = msm_pcm_channel_weight_put,
  4181. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4182. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  4183. },
  4184. {
  4185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4187. .name = "MultiMedia19 Output Channel7",
  4188. .info = msm_pcm_channel_weight_info,
  4189. .get = msm_pcm_channel_weight_get,
  4190. .put = msm_pcm_channel_weight_put,
  4191. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4192. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  4193. },
  4194. {
  4195. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4196. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4197. .name = "MultiMedia19 Output Channel8",
  4198. .info = msm_pcm_channel_weight_info,
  4199. .get = msm_pcm_channel_weight_get,
  4200. .put = msm_pcm_channel_weight_put,
  4201. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4202. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  4203. },
  4204. {
  4205. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4206. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4207. .name = "MultiMedia19 Output Channel9",
  4208. .info = msm_pcm_channel_weight_info,
  4209. .get = msm_pcm_channel_weight_get,
  4210. .put = msm_pcm_channel_weight_put,
  4211. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4212. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  4213. },
  4214. {
  4215. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4216. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4217. .name = "MultiMedia19 Output Channel10",
  4218. .info = msm_pcm_channel_weight_info,
  4219. .get = msm_pcm_channel_weight_get,
  4220. .put = msm_pcm_channel_weight_put,
  4221. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4222. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  4223. },
  4224. {
  4225. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4226. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4227. .name = "MultiMedia19 Output Channel11",
  4228. .info = msm_pcm_channel_weight_info,
  4229. .get = msm_pcm_channel_weight_get,
  4230. .put = msm_pcm_channel_weight_put,
  4231. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4232. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  4233. },
  4234. {
  4235. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4236. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4237. .name = "MultiMedia19 Output Channel12",
  4238. .info = msm_pcm_channel_weight_info,
  4239. .get = msm_pcm_channel_weight_get,
  4240. .put = msm_pcm_channel_weight_put,
  4241. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4242. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4243. },
  4244. {
  4245. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4246. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4247. .name = "MultiMedia19 Output Channel13",
  4248. .info = msm_pcm_channel_weight_info,
  4249. .get = msm_pcm_channel_weight_get,
  4250. .put = msm_pcm_channel_weight_put,
  4251. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4252. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4253. },
  4254. {
  4255. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4256. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4257. .name = "MultiMedia19 Output Channel14",
  4258. .info = msm_pcm_channel_weight_info,
  4259. .get = msm_pcm_channel_weight_get,
  4260. .put = msm_pcm_channel_weight_put,
  4261. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4262. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4263. },
  4264. {
  4265. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4266. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4267. .name = "MultiMedia28 Output Channel1",
  4268. .info = msm_pcm_channel_weight_info,
  4269. .get = msm_pcm_channel_weight_get,
  4270. .put = msm_pcm_channel_weight_put,
  4271. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4272. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4273. },
  4274. {
  4275. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4276. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4277. .name = "MultiMedia28 Output Channel2",
  4278. .info = msm_pcm_channel_weight_info,
  4279. .get = msm_pcm_channel_weight_get,
  4280. .put = msm_pcm_channel_weight_put,
  4281. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4282. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4283. },
  4284. {
  4285. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4286. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4287. .name = "MultiMedia28 Output Channel3",
  4288. .info = msm_pcm_channel_weight_info,
  4289. .get = msm_pcm_channel_weight_get,
  4290. .put = msm_pcm_channel_weight_put,
  4291. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4292. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4293. },
  4294. {
  4295. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4296. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4297. .name = "MultiMedia28 Output Channel4",
  4298. .info = msm_pcm_channel_weight_info,
  4299. .get = msm_pcm_channel_weight_get,
  4300. .put = msm_pcm_channel_weight_put,
  4301. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4302. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4303. },
  4304. {
  4305. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4306. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4307. .name = "MultiMedia28 Output Channel5",
  4308. .info = msm_pcm_channel_weight_info,
  4309. .get = msm_pcm_channel_weight_get,
  4310. .put = msm_pcm_channel_weight_put,
  4311. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4312. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4313. },
  4314. {
  4315. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4316. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4317. .name = "MultiMedia28 Output Channel6",
  4318. .info = msm_pcm_channel_weight_info,
  4319. .get = msm_pcm_channel_weight_get,
  4320. .put = msm_pcm_channel_weight_put,
  4321. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4322. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4323. },
  4324. {
  4325. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4326. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4327. .name = "MultiMedia28 Output Channel7",
  4328. .info = msm_pcm_channel_weight_info,
  4329. .get = msm_pcm_channel_weight_get,
  4330. .put = msm_pcm_channel_weight_put,
  4331. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4332. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4333. },
  4334. {
  4335. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4336. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4337. .name = "MultiMedia28 Output Channel8",
  4338. .info = msm_pcm_channel_weight_info,
  4339. .get = msm_pcm_channel_weight_get,
  4340. .put = msm_pcm_channel_weight_put,
  4341. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4342. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4343. },
  4344. {
  4345. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4346. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4347. .name = "MultiMedia28 Output Channel9",
  4348. .info = msm_pcm_channel_weight_info,
  4349. .get = msm_pcm_channel_weight_get,
  4350. .put = msm_pcm_channel_weight_put,
  4351. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4352. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4353. },
  4354. {
  4355. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4356. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4357. .name = "MultiMedia28 Output Channel10",
  4358. .info = msm_pcm_channel_weight_info,
  4359. .get = msm_pcm_channel_weight_get,
  4360. .put = msm_pcm_channel_weight_put,
  4361. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4362. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4363. },
  4364. {
  4365. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4366. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4367. .name = "MultiMedia28 Output Channel11",
  4368. .info = msm_pcm_channel_weight_info,
  4369. .get = msm_pcm_channel_weight_get,
  4370. .put = msm_pcm_channel_weight_put,
  4371. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4372. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4373. },
  4374. {
  4375. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4376. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4377. .name = "MultiMedia28 Output Channel12",
  4378. .info = msm_pcm_channel_weight_info,
  4379. .get = msm_pcm_channel_weight_get,
  4380. .put = msm_pcm_channel_weight_put,
  4381. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4382. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4383. },
  4384. {
  4385. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4386. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4387. .name = "MultiMedia28 Output Channel13",
  4388. .info = msm_pcm_channel_weight_info,
  4389. .get = msm_pcm_channel_weight_get,
  4390. .put = msm_pcm_channel_weight_put,
  4391. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4392. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4393. },
  4394. {
  4395. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4396. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4397. .name = "MultiMedia28 Output Channel14",
  4398. .info = msm_pcm_channel_weight_info,
  4399. .get = msm_pcm_channel_weight_get,
  4400. .put = msm_pcm_channel_weight_put,
  4401. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4402. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4403. },
  4404. {
  4405. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4406. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4407. .name = "MultiMedia29 Output Channel1",
  4408. .info = msm_pcm_channel_weight_info,
  4409. .get = msm_pcm_channel_weight_get,
  4410. .put = msm_pcm_channel_weight_put,
  4411. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4412. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4413. },
  4414. {
  4415. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4416. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4417. .name = "MultiMedia29 Output Channel2",
  4418. .info = msm_pcm_channel_weight_info,
  4419. .get = msm_pcm_channel_weight_get,
  4420. .put = msm_pcm_channel_weight_put,
  4421. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4422. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4423. },
  4424. {
  4425. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4426. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4427. .name = "MultiMedia29 Output Channel3",
  4428. .info = msm_pcm_channel_weight_info,
  4429. .get = msm_pcm_channel_weight_get,
  4430. .put = msm_pcm_channel_weight_put,
  4431. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4432. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4433. },
  4434. {
  4435. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4436. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4437. .name = "MultiMedia29 Output Channel4",
  4438. .info = msm_pcm_channel_weight_info,
  4439. .get = msm_pcm_channel_weight_get,
  4440. .put = msm_pcm_channel_weight_put,
  4441. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4442. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4443. },
  4444. {
  4445. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4446. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4447. .name = "MultiMedia29 Output Channel5",
  4448. .info = msm_pcm_channel_weight_info,
  4449. .get = msm_pcm_channel_weight_get,
  4450. .put = msm_pcm_channel_weight_put,
  4451. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4452. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4453. },
  4454. {
  4455. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4456. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4457. .name = "MultiMedia29 Output Channel6",
  4458. .info = msm_pcm_channel_weight_info,
  4459. .get = msm_pcm_channel_weight_get,
  4460. .put = msm_pcm_channel_weight_put,
  4461. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4462. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4463. },
  4464. {
  4465. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4466. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4467. .name = "MultiMedia29 Output Channel7",
  4468. .info = msm_pcm_channel_weight_info,
  4469. .get = msm_pcm_channel_weight_get,
  4470. .put = msm_pcm_channel_weight_put,
  4471. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4472. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4473. },
  4474. {
  4475. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4476. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4477. .name = "MultiMedia29 Output Channel8",
  4478. .info = msm_pcm_channel_weight_info,
  4479. .get = msm_pcm_channel_weight_get,
  4480. .put = msm_pcm_channel_weight_put,
  4481. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4482. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4483. },
  4484. {
  4485. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4486. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4487. .name = "MultiMedia29 Output Channel9",
  4488. .info = msm_pcm_channel_weight_info,
  4489. .get = msm_pcm_channel_weight_get,
  4490. .put = msm_pcm_channel_weight_put,
  4491. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4492. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4493. },
  4494. {
  4495. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4496. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4497. .name = "MultiMedia29 Output Channel10",
  4498. .info = msm_pcm_channel_weight_info,
  4499. .get = msm_pcm_channel_weight_get,
  4500. .put = msm_pcm_channel_weight_put,
  4501. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4502. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4503. },
  4504. {
  4505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4506. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4507. .name = "MultiMedia29 Output Channel11",
  4508. .info = msm_pcm_channel_weight_info,
  4509. .get = msm_pcm_channel_weight_get,
  4510. .put = msm_pcm_channel_weight_put,
  4511. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4512. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4513. },
  4514. {
  4515. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4516. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4517. .name = "MultiMedia29 Output Channel12",
  4518. .info = msm_pcm_channel_weight_info,
  4519. .get = msm_pcm_channel_weight_get,
  4520. .put = msm_pcm_channel_weight_put,
  4521. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4522. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4523. },
  4524. {
  4525. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4526. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4527. .name = "MultiMedia29 Output Channel13",
  4528. .info = msm_pcm_channel_weight_info,
  4529. .get = msm_pcm_channel_weight_get,
  4530. .put = msm_pcm_channel_weight_put,
  4531. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4532. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4533. },
  4534. {
  4535. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4536. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4537. .name = "MultiMedia29 Output Channel14",
  4538. .info = msm_pcm_channel_weight_info,
  4539. .get = msm_pcm_channel_weight_get,
  4540. .put = msm_pcm_channel_weight_put,
  4541. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4542. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4543. },
  4544. {
  4545. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4546. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4547. .name = "MultiMedia30 Output Channel1",
  4548. .info = msm_pcm_channel_weight_info,
  4549. .get = msm_pcm_channel_weight_get,
  4550. .put = msm_pcm_channel_weight_put,
  4551. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4552. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4553. },
  4554. {
  4555. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4556. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4557. .name = "MultiMedia30 Output Channel2",
  4558. .info = msm_pcm_channel_weight_info,
  4559. .get = msm_pcm_channel_weight_get,
  4560. .put = msm_pcm_channel_weight_put,
  4561. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4562. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4563. },
  4564. {
  4565. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4566. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4567. .name = "MultiMedia30 Output Channel3",
  4568. .info = msm_pcm_channel_weight_info,
  4569. .get = msm_pcm_channel_weight_get,
  4570. .put = msm_pcm_channel_weight_put,
  4571. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4572. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4573. },
  4574. {
  4575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4577. .name = "MultiMedia30 Output Channel4",
  4578. .info = msm_pcm_channel_weight_info,
  4579. .get = msm_pcm_channel_weight_get,
  4580. .put = msm_pcm_channel_weight_put,
  4581. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4582. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4583. },
  4584. {
  4585. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4586. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4587. .name = "MultiMedia30 Output Channel5",
  4588. .info = msm_pcm_channel_weight_info,
  4589. .get = msm_pcm_channel_weight_get,
  4590. .put = msm_pcm_channel_weight_put,
  4591. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4592. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4593. },
  4594. {
  4595. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4597. .name = "MultiMedia30 Output Channel6",
  4598. .info = msm_pcm_channel_weight_info,
  4599. .get = msm_pcm_channel_weight_get,
  4600. .put = msm_pcm_channel_weight_put,
  4601. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4602. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4603. },
  4604. {
  4605. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4606. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4607. .name = "MultiMedia30 Output Channel7",
  4608. .info = msm_pcm_channel_weight_info,
  4609. .get = msm_pcm_channel_weight_get,
  4610. .put = msm_pcm_channel_weight_put,
  4611. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4612. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4613. },
  4614. {
  4615. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4616. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4617. .name = "MultiMedia30 Output Channel8",
  4618. .info = msm_pcm_channel_weight_info,
  4619. .get = msm_pcm_channel_weight_get,
  4620. .put = msm_pcm_channel_weight_put,
  4621. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4622. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4623. },
  4624. {
  4625. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4626. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4627. .name = "MultiMedia30 Output Channel9",
  4628. .info = msm_pcm_channel_weight_info,
  4629. .get = msm_pcm_channel_weight_get,
  4630. .put = msm_pcm_channel_weight_put,
  4631. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4632. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4633. },
  4634. {
  4635. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4636. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4637. .name = "MultiMedia30 Output Channel10",
  4638. .info = msm_pcm_channel_weight_info,
  4639. .get = msm_pcm_channel_weight_get,
  4640. .put = msm_pcm_channel_weight_put,
  4641. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4642. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4643. },
  4644. {
  4645. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4646. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4647. .name = "MultiMedia30 Output Channel11",
  4648. .info = msm_pcm_channel_weight_info,
  4649. .get = msm_pcm_channel_weight_get,
  4650. .put = msm_pcm_channel_weight_put,
  4651. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4652. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4653. },
  4654. {
  4655. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4656. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4657. .name = "MultiMedia30 Output Channel12",
  4658. .info = msm_pcm_channel_weight_info,
  4659. .get = msm_pcm_channel_weight_get,
  4660. .put = msm_pcm_channel_weight_put,
  4661. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4662. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4663. },
  4664. {
  4665. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4666. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4667. .name = "MultiMedia30 Output Channel13",
  4668. .info = msm_pcm_channel_weight_info,
  4669. .get = msm_pcm_channel_weight_get,
  4670. .put = msm_pcm_channel_weight_put,
  4671. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4672. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4673. },
  4674. {
  4675. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4676. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4677. .name = "MultiMedia30 Output Channel14",
  4678. .info = msm_pcm_channel_weight_info,
  4679. .get = msm_pcm_channel_weight_get,
  4680. .put = msm_pcm_channel_weight_put,
  4681. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4682. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4683. },
  4684. {
  4685. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4686. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4687. .name = "MultiMedia1 Channel1",
  4688. .info = msm_pcm_channel_input_be_info,
  4689. .get = msm_pcm_channel_input_be_get,
  4690. .put = msm_pcm_channel_input_be_put,
  4691. .private_value = (unsigned long)&(mm1_ch1_enum)
  4692. },
  4693. {
  4694. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4695. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4696. .name = "MultiMedia1 Channel2",
  4697. .info = msm_pcm_channel_input_be_info,
  4698. .get = msm_pcm_channel_input_be_get,
  4699. .put = msm_pcm_channel_input_be_put,
  4700. .private_value = (unsigned long)&(mm1_ch2_enum)
  4701. },
  4702. {
  4703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4704. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4705. .name = "MultiMedia1 Channel3",
  4706. .info = msm_pcm_channel_input_be_info,
  4707. .get = msm_pcm_channel_input_be_get,
  4708. .put = msm_pcm_channel_input_be_put,
  4709. .private_value = (unsigned long)&(mm1_ch3_enum)
  4710. },
  4711. {
  4712. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4713. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4714. .name = "MultiMedia1 Channel4",
  4715. .info = msm_pcm_channel_input_be_info,
  4716. .get = msm_pcm_channel_input_be_get,
  4717. .put = msm_pcm_channel_input_be_put,
  4718. .private_value = (unsigned long)&(mm1_ch4_enum)
  4719. },
  4720. {
  4721. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4722. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4723. .name = "MultiMedia1 Channel5",
  4724. .info = msm_pcm_channel_input_be_info,
  4725. .get = msm_pcm_channel_input_be_get,
  4726. .put = msm_pcm_channel_input_be_put,
  4727. .private_value = (unsigned long)&(mm1_ch5_enum)
  4728. },
  4729. {
  4730. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4731. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4732. .name = "MultiMedia1 Channel6",
  4733. .info = msm_pcm_channel_input_be_info,
  4734. .get = msm_pcm_channel_input_be_get,
  4735. .put = msm_pcm_channel_input_be_put,
  4736. .private_value = (unsigned long)&(mm1_ch6_enum)
  4737. },
  4738. {
  4739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4741. .name = "MultiMedia1 Channel7",
  4742. .info = msm_pcm_channel_input_be_info,
  4743. .get = msm_pcm_channel_input_be_get,
  4744. .put = msm_pcm_channel_input_be_put,
  4745. .private_value = (unsigned long)&(mm1_ch7_enum)
  4746. },
  4747. {
  4748. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4749. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4750. .name = "MultiMedia1 Channel8",
  4751. .info = msm_pcm_channel_input_be_info,
  4752. .get = msm_pcm_channel_input_be_get,
  4753. .put = msm_pcm_channel_input_be_put,
  4754. .private_value = (unsigned long)&(mm1_ch8_enum)
  4755. },
  4756. {
  4757. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4758. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4759. .name = "MultiMedia18 Channel1",
  4760. .info = msm_pcm_channel_input_be_info,
  4761. .get = msm_pcm_channel_input_be_get,
  4762. .put = msm_pcm_channel_input_be_put,
  4763. .private_value = (unsigned long)&(mm18_ch1_enum)
  4764. },
  4765. {
  4766. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4767. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4768. .name = "MultiMedia18 Channel2",
  4769. .info = msm_pcm_channel_input_be_info,
  4770. .get = msm_pcm_channel_input_be_get,
  4771. .put = msm_pcm_channel_input_be_put,
  4772. .private_value = (unsigned long)&(mm18_ch2_enum)
  4773. },
  4774. {
  4775. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4776. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4777. .name = "MultiMedia19 Channel1",
  4778. .info = msm_pcm_channel_input_be_info,
  4779. .get = msm_pcm_channel_input_be_get,
  4780. .put = msm_pcm_channel_input_be_put,
  4781. .private_value = (unsigned long)&(mm19_ch1_enum)
  4782. },
  4783. {
  4784. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4785. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4786. .name = "MultiMedia19 Channel2",
  4787. .info = msm_pcm_channel_input_be_info,
  4788. .get = msm_pcm_channel_input_be_get,
  4789. .put = msm_pcm_channel_input_be_put,
  4790. .private_value = (unsigned long)&(mm19_ch2_enum)
  4791. },
  4792. {
  4793. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4794. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4795. .name = "MultiMedia28 Channel1",
  4796. .info = msm_pcm_channel_input_be_info,
  4797. .get = msm_pcm_channel_input_be_get,
  4798. .put = msm_pcm_channel_input_be_put,
  4799. .private_value = (unsigned long)&(mm28_ch1_enum)
  4800. },
  4801. {
  4802. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4803. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4804. .name = "MultiMedia28 Channel2",
  4805. .info = msm_pcm_channel_input_be_info,
  4806. .get = msm_pcm_channel_input_be_get,
  4807. .put = msm_pcm_channel_input_be_put,
  4808. .private_value = (unsigned long)&(mm28_ch2_enum)
  4809. },
  4810. {
  4811. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4812. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4813. .name = "MultiMedia29 Channel1",
  4814. .info = msm_pcm_channel_input_be_info,
  4815. .get = msm_pcm_channel_input_be_get,
  4816. .put = msm_pcm_channel_input_be_put,
  4817. .private_value = (unsigned long)&(mm29_ch1_enum)
  4818. },
  4819. {
  4820. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4821. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4822. .name = "MultiMedia29 Channel2",
  4823. .info = msm_pcm_channel_input_be_info,
  4824. .get = msm_pcm_channel_input_be_get,
  4825. .put = msm_pcm_channel_input_be_put,
  4826. .private_value = (unsigned long)&(mm29_ch2_enum)
  4827. },
  4828. {
  4829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4831. .name = "MultiMedia30 Channel1",
  4832. .info = msm_pcm_channel_input_be_info,
  4833. .get = msm_pcm_channel_input_be_get,
  4834. .put = msm_pcm_channel_input_be_put,
  4835. .private_value = (unsigned long)&(mm30_ch1_enum)
  4836. },
  4837. {
  4838. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4839. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4840. .name = "MultiMedia30 Channel2",
  4841. .info = msm_pcm_channel_input_be_info,
  4842. .get = msm_pcm_channel_input_be_get,
  4843. .put = msm_pcm_channel_input_be_put,
  4844. .private_value = (unsigned long)&(mm30_ch2_enum)
  4845. },
  4846. {
  4847. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4848. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4849. .name = "MultiMedia1 Output Channel Map",
  4850. .info = msm_pcm_channel_output_map_info,
  4851. .get = msm_pcm_channel_output_map_get,
  4852. .put = msm_pcm_channel_output_map_put,
  4853. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4854. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4855. },
  4856. {
  4857. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4858. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4859. .name = "MultiMedia2 Output Channel Map",
  4860. .info = msm_pcm_channel_output_map_info,
  4861. .get = msm_pcm_channel_output_map_get,
  4862. .put = msm_pcm_channel_output_map_put,
  4863. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4864. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4865. },
  4866. {
  4867. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4868. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4869. .name = "MultiMedia3 Output Channel Map",
  4870. .info = msm_pcm_channel_output_map_info,
  4871. .get = msm_pcm_channel_output_map_get,
  4872. .put = msm_pcm_channel_output_map_put,
  4873. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4874. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4875. },
  4876. {
  4877. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4878. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4879. .name = "MultiMedia4 Output Channel Map",
  4880. .info = msm_pcm_channel_output_map_info,
  4881. .get = msm_pcm_channel_output_map_get,
  4882. .put = msm_pcm_channel_output_map_put,
  4883. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4884. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4885. },
  4886. {
  4887. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4888. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4889. .name = "MultiMedia5 Output Channel Map",
  4890. .info = msm_pcm_channel_output_map_info,
  4891. .get = msm_pcm_channel_output_map_get,
  4892. .put = msm_pcm_channel_output_map_put,
  4893. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4894. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4895. },
  4896. {
  4897. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4898. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4899. .name = "MultiMedia6 Output Channel Map",
  4900. .info = msm_pcm_channel_output_map_info,
  4901. .get = msm_pcm_channel_output_map_get,
  4902. .put = msm_pcm_channel_output_map_put,
  4903. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4904. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4905. },
  4906. {
  4907. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4908. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4909. .name = "MultiMedia18 Output Channel Map",
  4910. .info = msm_pcm_channel_output_map_info,
  4911. .get = msm_pcm_channel_output_map_get,
  4912. .put = msm_pcm_channel_output_map_put,
  4913. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4914. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4915. },
  4916. {
  4917. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4918. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4919. .name = "MultiMedia19 Output Channel Map",
  4920. .info = msm_pcm_channel_output_map_info,
  4921. .get = msm_pcm_channel_output_map_get,
  4922. .put = msm_pcm_channel_output_map_put,
  4923. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4924. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4925. },
  4926. {
  4927. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4928. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4929. .name = "MultiMedia28 Output Channel Map",
  4930. .info = msm_pcm_channel_output_map_info,
  4931. .get = msm_pcm_channel_output_map_get,
  4932. .put = msm_pcm_channel_output_map_put,
  4933. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4934. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4935. },
  4936. {
  4937. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4938. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4939. .name = "MultiMedia29 Output Channel Map",
  4940. .info = msm_pcm_channel_output_map_info,
  4941. .get = msm_pcm_channel_output_map_get,
  4942. .put = msm_pcm_channel_output_map_put,
  4943. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4944. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4945. },
  4946. {
  4947. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4948. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4949. .name = "MultiMedia30 Output Channel Map",
  4950. .info = msm_pcm_channel_output_map_info,
  4951. .get = msm_pcm_channel_output_map_get,
  4952. .put = msm_pcm_channel_output_map_put,
  4953. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4954. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4955. },
  4956. };
  4957. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4958. struct snd_ctl_elem_value *ucontrol)
  4959. {
  4960. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4961. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4962. ucontrol->value.integer.value[0]);
  4963. return 0;
  4964. }
  4965. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4966. struct snd_ctl_elem_value *ucontrol)
  4967. {
  4968. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4969. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4970. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4971. return 0;
  4972. }
  4973. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4974. struct snd_ctl_elem_value *ucontrol)
  4975. {
  4976. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4977. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4978. ucontrol->value.integer.value[0]);
  4979. return 0;
  4980. }
  4981. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4982. struct snd_ctl_elem_value *ucontrol)
  4983. {
  4984. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4985. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4986. __func__, msm_ec_ref_ch_downmixed);
  4987. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4988. return 0;
  4989. }
  4990. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4991. struct snd_ctl_elem_value *ucontrol)
  4992. {
  4993. int i = 0, ret = 0;
  4994. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4995. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4996. kcontrol->private_value)->shift;
  4997. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4998. weights[i] = ucontrol->value.integer.value[i];
  4999. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  5000. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  5001. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  5002. return ret;
  5003. }
  5004. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  5005. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  5006. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  5007. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  5008. struct snd_ctl_elem_value *ucontrol)
  5009. {
  5010. switch (msm_ec_ref_bit_format) {
  5011. case SNDRV_PCM_FORMAT_S24_LE:
  5012. ucontrol->value.integer.value[0] = 2;
  5013. break;
  5014. case SNDRV_PCM_FORMAT_S16_LE:
  5015. ucontrol->value.integer.value[0] = 1;
  5016. break;
  5017. default:
  5018. ucontrol->value.integer.value[0] = 0;
  5019. break;
  5020. }
  5021. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  5022. __func__, ucontrol->value.integer.value[0]);
  5023. return 0;
  5024. }
  5025. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  5026. struct snd_ctl_elem_value *ucontrol)
  5027. {
  5028. u16 bit_width = 0;
  5029. switch (ucontrol->value.integer.value[0]) {
  5030. case 2:
  5031. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  5032. break;
  5033. case 1:
  5034. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  5035. break;
  5036. default:
  5037. msm_ec_ref_bit_format = 0;
  5038. break;
  5039. }
  5040. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  5041. bit_width = 16;
  5042. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  5043. bit_width = 24;
  5044. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  5045. __func__, msm_ec_ref_bit_format);
  5046. adm_ec_ref_rx_bit_width(bit_width);
  5047. return 0;
  5048. }
  5049. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  5050. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  5051. struct snd_ctl_elem_value *ucontrol)
  5052. {
  5053. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  5054. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  5055. __func__, ucontrol->value.integer.value[0]);
  5056. return 0;
  5057. }
  5058. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  5059. struct snd_ctl_elem_value *ucontrol)
  5060. {
  5061. switch (ucontrol->value.integer.value[0]) {
  5062. case 0:
  5063. msm_ec_ref_sampling_rate = 0;
  5064. break;
  5065. case 1:
  5066. msm_ec_ref_sampling_rate = 8000;
  5067. break;
  5068. case 2:
  5069. msm_ec_ref_sampling_rate = 16000;
  5070. break;
  5071. case 3:
  5072. msm_ec_ref_sampling_rate = 32000;
  5073. break;
  5074. case 4:
  5075. msm_ec_ref_sampling_rate = 44100;
  5076. break;
  5077. case 5:
  5078. msm_ec_ref_sampling_rate = 48000;
  5079. break;
  5080. case 6:
  5081. msm_ec_ref_sampling_rate = 96000;
  5082. break;
  5083. case 7:
  5084. msm_ec_ref_sampling_rate = 192000;
  5085. break;
  5086. case 8:
  5087. msm_ec_ref_sampling_rate = 384000;
  5088. break;
  5089. default:
  5090. msm_ec_ref_sampling_rate = 48000;
  5091. break;
  5092. }
  5093. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  5094. __func__, msm_ec_ref_sampling_rate);
  5095. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  5096. return 0;
  5097. }
  5098. static int get_ec_ref_port_id(int value, int *index)
  5099. {
  5100. int port_id;
  5101. switch (value) {
  5102. case 0:
  5103. *index = 0;
  5104. port_id = AFE_PORT_INVALID;
  5105. break;
  5106. case 1:
  5107. *index = 1;
  5108. port_id = SLIMBUS_0_RX;
  5109. break;
  5110. case 2:
  5111. *index = 2;
  5112. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  5113. break;
  5114. case 3:
  5115. *index = 3;
  5116. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5117. break;
  5118. case 4:
  5119. *index = 4;
  5120. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5121. break;
  5122. case 5:
  5123. *index = 5;
  5124. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5125. break;
  5126. case 6:
  5127. *index = 6;
  5128. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5129. break;
  5130. case 7:
  5131. *index = 7;
  5132. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  5133. break;
  5134. case 9:
  5135. *index = 9;
  5136. port_id = SLIMBUS_5_RX;
  5137. break;
  5138. case 10:
  5139. *index = 10;
  5140. port_id = SLIMBUS_1_TX;
  5141. break;
  5142. case 11:
  5143. *index = 11;
  5144. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  5145. break;
  5146. case 12:
  5147. *index = 12;
  5148. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  5149. break;
  5150. case 13:
  5151. *index = 13;
  5152. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  5153. break;
  5154. case 14:
  5155. *index = 14;
  5156. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  5157. break;
  5158. case 15:
  5159. *index = 15;
  5160. port_id = SLIMBUS_6_RX;
  5161. break;
  5162. case 16:
  5163. *index = 16;
  5164. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  5165. break;
  5166. case 17:
  5167. *index = 17;
  5168. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  5169. break;
  5170. case 18:
  5171. *index = 18;
  5172. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  5173. break;
  5174. case 19:
  5175. *index = 19;
  5176. port_id = AFE_PORT_ID_USB_RX;
  5177. break;
  5178. case 20:
  5179. *index = 20;
  5180. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  5181. break;
  5182. case 21:
  5183. *index = 21;
  5184. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  5185. break;
  5186. case 22:
  5187. *index = 22;
  5188. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  5189. break;
  5190. case 23:
  5191. *index = 23;
  5192. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5193. break;
  5194. case 24:
  5195. *index = 24;
  5196. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  5197. break;
  5198. case 25:
  5199. *index = 25;
  5200. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  5201. break;
  5202. case 26:
  5203. *index = 26;
  5204. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  5205. break;
  5206. case 27:
  5207. *index = 27;
  5208. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  5209. break;
  5210. case 28:
  5211. *index = 28;
  5212. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  5213. break;
  5214. case 29:
  5215. *index = 29;
  5216. port_id = SLIMBUS_7_RX;
  5217. break;
  5218. case 30:
  5219. *index = 30;
  5220. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  5221. break;
  5222. case 31:
  5223. *index = 31;
  5224. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  5225. break;
  5226. case 32:
  5227. *index = 32;
  5228. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  5229. break;
  5230. case 33:
  5231. *index = 33;
  5232. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  5233. break;
  5234. case 34:
  5235. *index = 34;
  5236. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5237. break;
  5238. case 35:
  5239. *index = 35;
  5240. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5241. break;
  5242. case 36:
  5243. *index = 36;
  5244. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5245. break;
  5246. case 37:
  5247. *index = 37;
  5248. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5249. break;
  5250. case 38:
  5251. *index = 38;
  5252. port_id = AFE_PORT_ID_SENARY_MI2S_RX;
  5253. break;
  5254. case 39:
  5255. *index = 39;
  5256. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  5257. break;
  5258. case 40:
  5259. *index = 40;
  5260. port_id = AFE_PORT_ID_SENARY_MI2S_TX;
  5261. break;
  5262. default:
  5263. *index = 0; /* NONE */
  5264. pr_err("%s: Invalid value %d\n", __func__, value);
  5265. port_id = AFE_PORT_INVALID;
  5266. break;
  5267. }
  5268. return port_id;
  5269. }
  5270. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5271. struct snd_ctl_elem_value *ucontrol)
  5272. {
  5273. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5274. mutex_lock(&routing_lock);
  5275. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5276. mutex_unlock(&routing_lock);
  5277. return 0;
  5278. }
  5279. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5280. struct snd_ctl_elem_value *ucontrol)
  5281. {
  5282. int value = ucontrol->value.integer.value[0];
  5283. mutex_lock(&routing_lock);
  5284. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5285. &afe_loopback_tx_port_index);
  5286. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5287. __func__, afe_loopback_tx_port_index);
  5288. mutex_unlock(&routing_lock);
  5289. return 0;
  5290. }
  5291. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5292. "32000", "44100", "48000", "96000", "192000", "384000"};
  5293. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5294. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5295. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5296. ec_ref_bit_format_text),
  5297. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5298. };
  5299. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5300. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5301. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5302. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5303. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5304. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5305. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5306. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5307. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5308. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5309. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5310. "DISPLAY_PORT1", "SEN_MI2S_RX", "QUIN_TDM_TX_0", "SENARY_MI2S_TX",
  5311. };
  5312. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5313. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5314. };
  5315. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5316. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5317. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5318. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5319. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5320. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5321. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5322. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5323. msm_route_ec_ref_params_enum[0],
  5324. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5325. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5326. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5327. msm_ec_ref_chmixer_weights_put),
  5328. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5329. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5330. msm_ec_ref_chmixer_weights_put),
  5331. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5332. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5333. msm_ec_ref_chmixer_weights_put),
  5334. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5335. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5336. msm_ec_ref_chmixer_weights_put),
  5337. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5338. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5339. msm_ec_ref_chmixer_weights_put),
  5340. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5341. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5342. msm_ec_ref_chmixer_weights_put),
  5343. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch7", SND_SOC_NOPM,
  5344. 6, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5345. msm_ec_ref_chmixer_weights_put),
  5346. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch8", SND_SOC_NOPM,
  5347. 7, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5348. msm_ec_ref_chmixer_weights_put),
  5349. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5350. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5351. };
  5352. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5353. struct snd_ctl_elem_value *ucontrol)
  5354. {
  5355. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5356. mutex_lock(&routing_lock);
  5357. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5358. mutex_unlock(&routing_lock);
  5359. return 0;
  5360. }
  5361. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5362. struct snd_ctl_elem_value *ucontrol)
  5363. {
  5364. int value = ucontrol->value.integer.value[0];
  5365. struct snd_soc_dapm_widget *widget =
  5366. snd_soc_dapm_kcontrol_widget(kcontrol);
  5367. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5368. struct snd_soc_dapm_update *update = NULL;
  5369. mutex_lock(&routing_lock);
  5370. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5371. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5372. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5373. __func__, msm_route_ec_ref_rx);
  5374. mutex_unlock(&routing_lock);
  5375. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5376. msm_route_ec_ref_rx, e, update);
  5377. return 0;
  5378. }
  5379. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5380. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5381. msm_route_ec_ref_rx_enum[0],
  5382. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5383. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5384. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5385. msm_route_ec_ref_rx_enum[0],
  5386. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5387. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5388. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5389. msm_route_ec_ref_rx_enum[0],
  5390. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5391. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5392. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5393. msm_route_ec_ref_rx_enum[0],
  5394. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5395. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5396. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5397. msm_route_ec_ref_rx_enum[0],
  5398. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5399. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5400. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5401. msm_route_ec_ref_rx_enum[0],
  5402. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5403. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5404. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5405. msm_route_ec_ref_rx_enum[0],
  5406. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5407. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5408. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5409. msm_route_ec_ref_rx_enum[0],
  5410. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5411. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5412. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5413. msm_route_ec_ref_rx_enum[0],
  5414. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5415. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5416. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5417. msm_route_ec_ref_rx_enum[0],
  5418. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5419. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5420. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5421. msm_route_ec_ref_rx_enum[0],
  5422. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5423. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5424. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5425. msm_route_ec_ref_rx_enum[0],
  5426. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5427. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5428. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5429. msm_route_ec_ref_rx_enum[0],
  5430. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5431. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5432. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5433. msm_route_ec_ref_rx_enum[0],
  5434. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5435. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5436. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5437. msm_route_ec_ref_rx_enum[0],
  5438. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5439. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5440. struct snd_ctl_elem_value *ucontrol)
  5441. {
  5442. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5443. mutex_lock(&routing_lock);
  5444. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5445. mutex_unlock(&routing_lock);
  5446. return 0;
  5447. }
  5448. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5449. struct snd_ctl_elem_value *ucontrol)
  5450. {
  5451. struct snd_soc_dapm_widget *widget =
  5452. snd_soc_dapm_kcontrol_widget(kcontrol);
  5453. int mux = ucontrol->value.enumerated.item[0];
  5454. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5455. int ret = 1;
  5456. bool state = true;
  5457. uint16_t ext_ec_ref_port_id;
  5458. struct snd_soc_dapm_update *update = NULL;
  5459. if (mux >= e->items) {
  5460. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5461. return -EINVAL;
  5462. }
  5463. mutex_lock(&routing_lock);
  5464. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5465. switch (msm_route_ext_ec_ref) {
  5466. case EXT_EC_REF_PRI_MI2S_TX:
  5467. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5468. break;
  5469. case EXT_EC_REF_SEC_MI2S_TX:
  5470. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5471. break;
  5472. case EXT_EC_REF_TERT_MI2S_TX:
  5473. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5474. break;
  5475. case EXT_EC_REF_QUAT_MI2S_TX:
  5476. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5477. break;
  5478. case EXT_EC_REF_QUIN_MI2S_TX:
  5479. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5480. break;
  5481. case EXT_EC_REF_SLIM_1_TX:
  5482. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5483. break;
  5484. case EXT_EC_REF_PRI_TDM_TX:
  5485. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5486. break;
  5487. case EXT_EC_REF_SEC_TDM_TX:
  5488. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5489. break;
  5490. case EXT_EC_REF_NONE:
  5491. default:
  5492. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5493. state = false;
  5494. break;
  5495. }
  5496. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5497. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5498. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5499. mutex_unlock(&routing_lock);
  5500. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5501. update);
  5502. } else {
  5503. ret = -EINVAL;
  5504. mutex_unlock(&routing_lock);
  5505. }
  5506. return ret;
  5507. }
  5508. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5509. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5510. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5511. "SLIM_1_TX", "PRI_TDM_TX",
  5512. "SEC_TDM_TX", "SENARY_MI2S_TX"};
  5513. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5514. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5515. };
  5516. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5517. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5518. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5519. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5520. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5521. MSM_BACKEND_DAI_PRI_I2S_RX,
  5522. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5523. msm_routing_put_audio_mixer),
  5524. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5525. MSM_BACKEND_DAI_PRI_I2S_RX,
  5526. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5527. msm_routing_put_audio_mixer),
  5528. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5529. MSM_BACKEND_DAI_PRI_I2S_RX,
  5530. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5531. msm_routing_put_audio_mixer),
  5532. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_PRI_I2S_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_PRI_I2S_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_PRI_I2S_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_PRI_I2S_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_PRI_I2S_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_PRI_I2S_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_PRI_I2S_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_PRI_I2S_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_PRI_I2S_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_PRI_I2S_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_PRI_I2S_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_PRI_I2S_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_PRI_I2S_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_PRI_I2S_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_PRI_I2S_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_PRI_I2S_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_PRI_I2S_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_PRI_I2S_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_PRI_I2S_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_PRI_I2S_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. };
  5613. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5614. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_SEC_I2S_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_SEC_I2S_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_SEC_I2S_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_SEC_I2S_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_SEC_I2S_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_SEC_I2S_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_SEC_I2S_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SEC_I2S_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SEC_I2S_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SEC_I2S_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SEC_I2S_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SEC_I2S_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SEC_I2S_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SEC_I2S_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SEC_I2S_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SEC_I2S_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SEC_I2S_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SEC_I2S_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SEC_I2S_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SEC_I2S_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SEC_I2S_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SEC_I2S_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SEC_I2S_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. };
  5707. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5708. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. };
  5801. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5802. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. };
  5895. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5896. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5897. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5898. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5899. msm_routing_put_audio_mixer),
  5900. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. };
  5965. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5966. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5967. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5968. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5969. msm_routing_put_audio_mixer),
  5970. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5971. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5972. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5973. msm_routing_put_audio_mixer),
  5974. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5975. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5976. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5977. msm_routing_put_audio_mixer),
  5978. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5979. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5980. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5981. msm_routing_put_audio_mixer),
  5982. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5983. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5984. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5985. msm_routing_put_audio_mixer),
  5986. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5987. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5988. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5989. msm_routing_put_audio_mixer),
  5990. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5991. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5992. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5993. msm_routing_put_audio_mixer),
  5994. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. };
  6059. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  6060. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6061. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6062. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6063. msm_routing_put_audio_mixer),
  6064. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6065. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6066. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6067. msm_routing_put_audio_mixer),
  6068. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6069. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6070. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6071. msm_routing_put_audio_mixer),
  6072. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6073. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6074. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6075. msm_routing_put_audio_mixer),
  6076. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6077. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6078. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6079. msm_routing_put_audio_mixer),
  6080. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6081. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6082. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6083. msm_routing_put_audio_mixer),
  6084. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6085. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6086. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6087. msm_routing_put_audio_mixer),
  6088. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. };
  6153. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  6154. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6155. MSM_BACKEND_DAI_MI2S_RX,
  6156. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6157. msm_routing_put_audio_mixer),
  6158. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6159. MSM_BACKEND_DAI_MI2S_RX,
  6160. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6161. msm_routing_put_audio_mixer),
  6162. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6163. MSM_BACKEND_DAI_MI2S_RX,
  6164. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6165. msm_routing_put_audio_mixer),
  6166. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6167. MSM_BACKEND_DAI_MI2S_RX,
  6168. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6169. msm_routing_put_audio_mixer),
  6170. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6171. MSM_BACKEND_DAI_MI2S_RX,
  6172. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6173. msm_routing_put_audio_mixer),
  6174. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6175. MSM_BACKEND_DAI_MI2S_RX,
  6176. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6177. msm_routing_put_audio_mixer),
  6178. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6179. MSM_BACKEND_DAI_MI2S_RX,
  6180. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6181. msm_routing_put_audio_mixer),
  6182. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. };
  6247. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  6248. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6249. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6250. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6251. msm_routing_put_audio_mixer),
  6252. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6253. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6254. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6255. msm_routing_put_audio_mixer),
  6256. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6257. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6258. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6259. msm_routing_put_audio_mixer),
  6260. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6261. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6262. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6263. msm_routing_put_audio_mixer),
  6264. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6265. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6266. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6267. msm_routing_put_audio_mixer),
  6268. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6269. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6270. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6271. msm_routing_put_audio_mixer),
  6272. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. };
  6345. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6346. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6347. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6348. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6349. msm_routing_put_audio_mixer),
  6350. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6351. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6352. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6353. msm_routing_put_audio_mixer),
  6354. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6355. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6356. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6357. msm_routing_put_audio_mixer),
  6358. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6363. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6364. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6365. msm_routing_put_audio_mixer),
  6366. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6367. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6368. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6369. msm_routing_put_audio_mixer),
  6370. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6371. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6372. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6373. msm_routing_put_audio_mixer),
  6374. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6375. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6376. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6377. msm_routing_put_audio_mixer),
  6378. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6379. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6380. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6381. msm_routing_put_audio_mixer),
  6382. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6383. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6384. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6385. msm_routing_put_audio_mixer),
  6386. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6387. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6388. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6389. msm_routing_put_audio_mixer),
  6390. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6391. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6392. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6393. msm_routing_put_audio_mixer),
  6394. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6395. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6396. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6397. msm_routing_put_audio_mixer),
  6398. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6399. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6400. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6401. msm_routing_put_audio_mixer),
  6402. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6403. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6404. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6405. msm_routing_put_audio_mixer),
  6406. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6407. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6408. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6409. msm_routing_put_audio_mixer),
  6410. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6411. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6412. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6413. msm_routing_put_audio_mixer),
  6414. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6415. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6416. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6417. msm_routing_put_audio_mixer),
  6418. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6419. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6420. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6421. msm_routing_put_audio_mixer),
  6422. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6423. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6424. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6425. msm_routing_put_audio_mixer),
  6426. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6427. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6428. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6429. msm_routing_put_audio_mixer),
  6430. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6431. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6432. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6433. msm_routing_put_audio_mixer),
  6434. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6435. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6436. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6437. msm_routing_put_audio_mixer),
  6438. };
  6439. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6440. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6457. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6458. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6459. msm_routing_put_audio_mixer),
  6460. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6461. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6462. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6463. msm_routing_put_audio_mixer),
  6464. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6465. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6466. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6467. msm_routing_put_audio_mixer),
  6468. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6469. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6470. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6471. msm_routing_put_audio_mixer),
  6472. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6473. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6474. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6475. msm_routing_put_audio_mixer),
  6476. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6477. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6478. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6479. msm_routing_put_audio_mixer),
  6480. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6481. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6482. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6483. msm_routing_put_audio_mixer),
  6484. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6485. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6486. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6487. msm_routing_put_audio_mixer),
  6488. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6489. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6490. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6491. msm_routing_put_audio_mixer),
  6492. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6493. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6494. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6495. msm_routing_put_audio_mixer),
  6496. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6497. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6498. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6499. msm_routing_put_audio_mixer),
  6500. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6501. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6502. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6503. msm_routing_put_audio_mixer),
  6504. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6505. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6506. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6507. msm_routing_put_audio_mixer),
  6508. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6509. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6510. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6511. msm_routing_put_audio_mixer),
  6512. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6513. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6514. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6515. msm_routing_put_audio_mixer),
  6516. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6517. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6518. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6519. msm_routing_put_audio_mixer),
  6520. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6521. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6522. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6523. msm_routing_put_audio_mixer),
  6524. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6525. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6526. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6527. msm_routing_put_audio_mixer),
  6528. };
  6529. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6530. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6551. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6552. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6553. msm_routing_put_audio_mixer),
  6554. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6555. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6556. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6557. msm_routing_put_audio_mixer),
  6558. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6559. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6560. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6561. msm_routing_put_audio_mixer),
  6562. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6563. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6564. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6565. msm_routing_put_audio_mixer),
  6566. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6567. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6568. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6569. msm_routing_put_audio_mixer),
  6570. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6571. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6572. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6573. msm_routing_put_audio_mixer),
  6574. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6575. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6576. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6577. msm_routing_put_audio_mixer),
  6578. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6579. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6580. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6581. msm_routing_put_audio_mixer),
  6582. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6583. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6584. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6585. msm_routing_put_audio_mixer),
  6586. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6587. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6588. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6589. msm_routing_put_audio_mixer),
  6590. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6591. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6592. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6593. msm_routing_put_audio_mixer),
  6594. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6595. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6596. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6597. msm_routing_put_audio_mixer),
  6598. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6599. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6600. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6601. msm_routing_put_audio_mixer),
  6602. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6603. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6604. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6605. msm_routing_put_audio_mixer),
  6606. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6607. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6608. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6609. msm_routing_put_audio_mixer),
  6610. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6611. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6612. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6613. msm_routing_put_audio_mixer),
  6614. };
  6615. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6616. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6617. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6618. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6619. msm_routing_put_audio_mixer),
  6620. };
  6621. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6622. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6683. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6684. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6685. msm_routing_put_audio_mixer),
  6686. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6687. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6688. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6689. msm_routing_put_audio_mixer),
  6690. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6691. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6692. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6693. msm_routing_put_audio_mixer),
  6694. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6695. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6696. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6697. msm_routing_put_audio_mixer),
  6698. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6699. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6700. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6701. msm_routing_put_audio_mixer),
  6702. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6703. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6704. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6705. msm_routing_put_audio_mixer),
  6706. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6707. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6708. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6709. msm_routing_put_audio_mixer),
  6710. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6711. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6712. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6713. msm_routing_put_audio_mixer),
  6714. };
  6715. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6716. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6773. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6774. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6775. msm_routing_put_audio_mixer),
  6776. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6777. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6778. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6779. msm_routing_put_audio_mixer),
  6780. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6781. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6782. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6783. msm_routing_put_audio_mixer),
  6784. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6785. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6786. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6787. msm_routing_put_audio_mixer),
  6788. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6789. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6790. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6791. msm_routing_put_audio_mixer),
  6792. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6793. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6794. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6795. msm_routing_put_audio_mixer),
  6796. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6797. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6798. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6799. msm_routing_put_audio_mixer),
  6800. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6801. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6802. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6803. msm_routing_put_audio_mixer),
  6804. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6805. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6806. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6807. msm_routing_put_audio_mixer),
  6808. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  6809. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6810. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_audio_mixer,
  6811. msm_routing_put_audio_mixer),
  6812. };
  6813. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6814. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6863. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6864. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6865. msm_routing_put_audio_mixer),
  6866. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6867. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6868. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6869. msm_routing_put_audio_mixer),
  6870. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6871. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6872. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6873. msm_routing_put_audio_mixer),
  6874. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6875. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6876. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6877. msm_routing_put_audio_mixer),
  6878. };
  6879. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6880. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. };
  6945. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6946. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6947. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6948. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6949. msm_routing_put_audio_mixer),
  6950. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6951. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6952. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6953. msm_routing_put_audio_mixer),
  6954. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6955. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6956. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6957. msm_routing_put_audio_mixer),
  6958. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7027. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7028. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7029. msm_routing_put_audio_mixer),
  7030. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7031. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  7032. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7033. msm_routing_put_audio_mixer),
  7034. };
  7035. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  7036. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7097. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7098. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7099. msm_routing_put_audio_mixer),
  7100. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7101. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7102. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7103. msm_routing_put_audio_mixer),
  7104. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7105. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7106. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7107. msm_routing_put_audio_mixer),
  7108. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7109. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7110. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7111. msm_routing_put_audio_mixer),
  7112. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7113. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7114. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7115. msm_routing_put_audio_mixer),
  7116. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7117. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7118. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7119. msm_routing_put_audio_mixer),
  7120. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7121. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  7122. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7123. msm_routing_put_audio_mixer),
  7124. };
  7125. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  7126. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7127. MSM_BACKEND_DAI_HDMI_RX,
  7128. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7129. msm_routing_put_audio_mixer),
  7130. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7131. MSM_BACKEND_DAI_HDMI_RX,
  7132. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7133. msm_routing_put_audio_mixer),
  7134. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7135. MSM_BACKEND_DAI_HDMI_RX,
  7136. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7137. msm_routing_put_audio_mixer),
  7138. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7139. MSM_BACKEND_DAI_HDMI_RX,
  7140. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7141. msm_routing_put_audio_mixer),
  7142. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7143. MSM_BACKEND_DAI_HDMI_RX,
  7144. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7145. msm_routing_put_audio_mixer),
  7146. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7147. MSM_BACKEND_DAI_HDMI_RX,
  7148. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7149. msm_routing_put_audio_mixer),
  7150. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7151. MSM_BACKEND_DAI_HDMI_RX,
  7152. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7153. msm_routing_put_audio_mixer),
  7154. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7155. MSM_BACKEND_DAI_HDMI_RX,
  7156. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7157. msm_routing_put_audio_mixer),
  7158. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7159. MSM_BACKEND_DAI_HDMI_RX,
  7160. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7161. msm_routing_put_audio_mixer),
  7162. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7163. MSM_BACKEND_DAI_HDMI_RX,
  7164. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7165. msm_routing_put_audio_mixer),
  7166. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7167. MSM_BACKEND_DAI_HDMI_RX,
  7168. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7169. msm_routing_put_audio_mixer),
  7170. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7171. MSM_BACKEND_DAI_HDMI_RX,
  7172. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7173. msm_routing_put_audio_mixer),
  7174. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7175. MSM_BACKEND_DAI_HDMI_RX,
  7176. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7177. msm_routing_put_audio_mixer),
  7178. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7179. MSM_BACKEND_DAI_HDMI_RX,
  7180. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7181. msm_routing_put_audio_mixer),
  7182. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7183. MSM_BACKEND_DAI_HDMI_RX,
  7184. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7185. msm_routing_put_audio_mixer),
  7186. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7187. MSM_BACKEND_DAI_HDMI_RX,
  7188. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7189. msm_routing_put_audio_mixer),
  7190. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7191. MSM_BACKEND_DAI_HDMI_RX,
  7192. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7193. msm_routing_put_audio_mixer),
  7194. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7195. MSM_BACKEND_DAI_HDMI_RX,
  7196. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7197. msm_routing_put_audio_mixer),
  7198. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7199. MSM_BACKEND_DAI_HDMI_RX,
  7200. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7201. msm_routing_put_audio_mixer),
  7202. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7203. MSM_BACKEND_DAI_HDMI_RX,
  7204. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7205. msm_routing_put_audio_mixer),
  7206. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7207. MSM_BACKEND_DAI_HDMI_RX,
  7208. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7209. msm_routing_put_audio_mixer),
  7210. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7211. MSM_BACKEND_DAI_HDMI_RX,
  7212. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7213. msm_routing_put_audio_mixer),
  7214. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7215. MSM_BACKEND_DAI_HDMI_RX,
  7216. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7217. msm_routing_put_audio_mixer),
  7218. };
  7219. static const struct snd_kcontrol_new hdmi_ms_mixer_controls[] = {
  7220. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7221. MSM_BACKEND_DAI_HDMI_RX_MS,
  7222. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7223. msm_routing_put_audio_mixer),
  7224. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7225. MSM_BACKEND_DAI_HDMI_RX_MS,
  7226. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7227. msm_routing_put_audio_mixer),
  7228. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7229. MSM_BACKEND_DAI_HDMI_RX_MS,
  7230. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7231. msm_routing_put_audio_mixer),
  7232. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7233. MSM_BACKEND_DAI_HDMI_RX_MS,
  7234. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7235. msm_routing_put_audio_mixer),
  7236. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7237. MSM_BACKEND_DAI_HDMI_RX_MS,
  7238. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7239. msm_routing_put_audio_mixer),
  7240. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7241. MSM_BACKEND_DAI_HDMI_RX_MS,
  7242. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7243. msm_routing_put_audio_mixer),
  7244. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7245. MSM_BACKEND_DAI_HDMI_RX_MS,
  7246. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7247. msm_routing_put_audio_mixer),
  7248. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7249. MSM_BACKEND_DAI_HDMI_RX_MS,
  7250. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7251. msm_routing_put_audio_mixer),
  7252. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7253. MSM_BACKEND_DAI_HDMI_RX_MS,
  7254. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7255. msm_routing_put_audio_mixer),
  7256. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7257. MSM_BACKEND_DAI_HDMI_RX_MS,
  7258. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7259. msm_routing_put_audio_mixer),
  7260. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7261. MSM_BACKEND_DAI_HDMI_RX_MS,
  7262. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7263. msm_routing_put_audio_mixer),
  7264. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7265. MSM_BACKEND_DAI_HDMI_RX_MS,
  7266. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7267. msm_routing_put_audio_mixer),
  7268. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7269. MSM_BACKEND_DAI_HDMI_RX_MS,
  7270. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7271. msm_routing_put_audio_mixer),
  7272. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7273. MSM_BACKEND_DAI_HDMI_RX_MS,
  7274. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7275. msm_routing_put_audio_mixer),
  7276. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7277. MSM_BACKEND_DAI_HDMI_RX_MS,
  7278. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7279. msm_routing_put_audio_mixer),
  7280. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7281. MSM_BACKEND_DAI_HDMI_RX_MS,
  7282. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7283. msm_routing_put_audio_mixer),
  7284. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7285. MSM_BACKEND_DAI_HDMI_RX_MS,
  7286. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7287. msm_routing_put_audio_mixer),
  7288. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7289. MSM_BACKEND_DAI_HDMI_RX_MS,
  7290. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7291. msm_routing_put_audio_mixer),
  7292. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7293. MSM_BACKEND_DAI_HDMI_RX_MS,
  7294. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7295. msm_routing_put_audio_mixer),
  7296. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7297. MSM_BACKEND_DAI_HDMI_RX_MS,
  7298. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7299. msm_routing_put_audio_mixer),
  7300. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7301. MSM_BACKEND_DAI_HDMI_RX_MS,
  7302. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7303. msm_routing_put_audio_mixer),
  7304. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7305. MSM_BACKEND_DAI_HDMI_RX_MS,
  7306. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7307. msm_routing_put_audio_mixer),
  7308. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  7309. MSM_BACKEND_DAI_HDMI_RX_MS,
  7310. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  7311. msm_routing_put_audio_mixer),
  7312. };
  7313. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  7314. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7315. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7316. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7317. msm_routing_put_audio_mixer),
  7318. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7319. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7320. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7321. msm_routing_put_audio_mixer),
  7322. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7323. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7324. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7325. msm_routing_put_audio_mixer),
  7326. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7327. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7328. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7329. msm_routing_put_audio_mixer),
  7330. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7331. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7332. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7333. msm_routing_put_audio_mixer),
  7334. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7335. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7336. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7337. msm_routing_put_audio_mixer),
  7338. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7339. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7340. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7341. msm_routing_put_audio_mixer),
  7342. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7343. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7344. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7345. msm_routing_put_audio_mixer),
  7346. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7347. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7348. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7349. msm_routing_put_audio_mixer),
  7350. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7351. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7352. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7353. msm_routing_put_audio_mixer),
  7354. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7355. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7356. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7357. msm_routing_put_audio_mixer),
  7358. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7359. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7360. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7361. msm_routing_put_audio_mixer),
  7362. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7363. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7364. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7365. msm_routing_put_audio_mixer),
  7366. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7367. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7368. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7369. msm_routing_put_audio_mixer),
  7370. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7371. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7372. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7373. msm_routing_put_audio_mixer),
  7374. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7375. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7376. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7377. msm_routing_put_audio_mixer),
  7378. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7379. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7380. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7381. msm_routing_put_audio_mixer),
  7382. };
  7383. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7384. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7385. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7386. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7387. msm_routing_put_audio_mixer),
  7388. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7389. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7390. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7391. msm_routing_put_audio_mixer),
  7392. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7393. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7394. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7395. msm_routing_put_audio_mixer),
  7396. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7397. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7398. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7399. msm_routing_put_audio_mixer),
  7400. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7401. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7402. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7403. msm_routing_put_audio_mixer),
  7404. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7405. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7406. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7407. msm_routing_put_audio_mixer),
  7408. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7409. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7410. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7411. msm_routing_put_audio_mixer),
  7412. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7413. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7414. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7415. msm_routing_put_audio_mixer),
  7416. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7417. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7418. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7419. msm_routing_put_audio_mixer),
  7420. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7421. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7422. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7423. msm_routing_put_audio_mixer),
  7424. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7425. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7426. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7427. msm_routing_put_audio_mixer),
  7428. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7429. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7430. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7431. msm_routing_put_audio_mixer),
  7432. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7433. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7434. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7435. msm_routing_put_audio_mixer),
  7436. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7437. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7438. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7439. msm_routing_put_audio_mixer),
  7440. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7441. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7442. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7443. msm_routing_put_audio_mixer),
  7444. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7445. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7446. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7447. msm_routing_put_audio_mixer),
  7448. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7449. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7450. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7451. msm_routing_put_audio_mixer),
  7452. };
  7453. /* incall music delivery mixer */
  7454. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7455. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7460. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7462. msm_routing_put_audio_mixer),
  7463. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7464. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7466. msm_routing_put_audio_mixer),
  7467. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7468. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7470. msm_routing_put_audio_mixer),
  7471. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7472. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7473. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7474. msm_routing_put_audio_mixer),
  7475. };
  7476. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7477. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. };
  7494. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7495. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7496. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7498. msm_routing_put_audio_mixer),
  7499. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7500. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7502. msm_routing_put_audio_mixer),
  7503. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. };
  7512. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7530. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7532. msm_routing_put_audio_mixer),
  7533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7534. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7536. msm_routing_put_audio_mixer),
  7537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7538. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7540. msm_routing_put_audio_mixer),
  7541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7542. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7544. msm_routing_put_audio_mixer),
  7545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7546. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7548. msm_routing_put_audio_mixer),
  7549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7550. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7552. msm_routing_put_audio_mixer),
  7553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7554. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7556. msm_routing_put_audio_mixer),
  7557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7558. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7560. msm_routing_put_audio_mixer),
  7561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7562. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7564. msm_routing_put_audio_mixer),
  7565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7566. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7568. msm_routing_put_audio_mixer),
  7569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7570. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7572. msm_routing_put_audio_mixer),
  7573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. };
  7582. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7600. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7602. msm_routing_put_audio_mixer),
  7603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7604. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7606. msm_routing_put_audio_mixer),
  7607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7608. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7610. msm_routing_put_audio_mixer),
  7611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7612. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7614. msm_routing_put_audio_mixer),
  7615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7616. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7618. msm_routing_put_audio_mixer),
  7619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7620. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7622. msm_routing_put_audio_mixer),
  7623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7624. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7626. msm_routing_put_audio_mixer),
  7627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7628. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7630. msm_routing_put_audio_mixer),
  7631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7632. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7634. msm_routing_put_audio_mixer),
  7635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7636. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7638. msm_routing_put_audio_mixer),
  7639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7640. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7642. msm_routing_put_audio_mixer),
  7643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. };
  7660. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7661. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7670. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7671. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7672. msm_routing_put_audio_mixer),
  7673. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7674. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7675. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7676. msm_routing_put_audio_mixer),
  7677. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7678. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7679. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7680. msm_routing_put_audio_mixer),
  7681. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7682. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7684. msm_routing_put_audio_mixer),
  7685. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7686. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7687. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7688. msm_routing_put_audio_mixer),
  7689. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7690. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7691. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7692. msm_routing_put_audio_mixer),
  7693. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7694. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7695. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7696. msm_routing_put_audio_mixer),
  7697. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7698. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7699. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7700. msm_routing_put_audio_mixer),
  7701. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7702. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7703. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7704. msm_routing_put_audio_mixer),
  7705. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7706. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7707. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7708. msm_routing_put_audio_mixer),
  7709. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7710. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7711. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7712. msm_routing_put_audio_mixer),
  7713. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. };
  7738. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7739. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7740. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7741. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7742. msm_routing_put_audio_mixer),
  7743. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7744. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7746. msm_routing_put_audio_mixer),
  7747. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7748. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7749. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7750. msm_routing_put_audio_mixer),
  7751. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7752. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7754. msm_routing_put_audio_mixer),
  7755. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7756. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7757. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7758. msm_routing_put_audio_mixer),
  7759. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7760. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7761. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7762. msm_routing_put_audio_mixer),
  7763. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7764. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7765. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7766. msm_routing_put_audio_mixer),
  7767. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7768. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7769. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7770. msm_routing_put_audio_mixer),
  7771. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7772. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7774. msm_routing_put_audio_mixer),
  7775. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7776. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7777. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7778. msm_routing_put_audio_mixer),
  7779. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7780. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7781. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7782. msm_routing_put_audio_mixer),
  7783. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. };
  7816. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7817. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7818. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7819. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7820. msm_routing_put_audio_mixer),
  7821. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7822. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7823. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7824. msm_routing_put_audio_mixer),
  7825. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7826. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7827. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7828. msm_routing_put_audio_mixer),
  7829. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7830. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7831. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7832. msm_routing_put_audio_mixer),
  7833. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7834. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7836. msm_routing_put_audio_mixer),
  7837. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7838. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7839. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7840. msm_routing_put_audio_mixer),
  7841. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7842. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7843. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7844. msm_routing_put_audio_mixer),
  7845. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7846. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7847. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7848. msm_routing_put_audio_mixer),
  7849. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7850. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7851. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7852. msm_routing_put_audio_mixer),
  7853. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. };
  7894. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7895. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. };
  7972. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7973. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7974. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7976. msm_routing_put_audio_mixer),
  7977. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7978. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7980. msm_routing_put_audio_mixer),
  7981. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7982. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7983. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7984. msm_routing_put_audio_mixer),
  7985. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7986. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7988. msm_routing_put_audio_mixer),
  7989. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7990. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7992. msm_routing_put_audio_mixer),
  7993. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. };
  8050. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  8051. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8052. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8053. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8054. msm_routing_put_audio_mixer),
  8055. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8056. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8057. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8058. msm_routing_put_audio_mixer),
  8059. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8060. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8061. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8062. msm_routing_put_audio_mixer),
  8063. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. };
  8128. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  8129. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. };
  8206. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  8207. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. };
  8284. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  8285. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8286. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8288. msm_routing_put_audio_mixer),
  8289. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8290. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8291. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8292. msm_routing_put_audio_mixer),
  8293. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8295. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8296. msm_routing_put_audio_mixer),
  8297. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia31", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA31, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia32", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA32, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. };
  8362. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  8363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. };
  8432. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  8433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. };
  8502. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_USB_RX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_USB_RX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_USB_RX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_USB_RX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_USB_RX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_USB_RX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_USB_RX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_USB_RX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_USB_RX,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_USB_RX,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_USB_RX,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_USB_RX,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_USB_RX,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_USB_RX,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_USB_RX,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_USB_RX,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_USB_RX,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. };
  8572. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8638. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8639. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8640. msm_routing_put_audio_mixer),
  8641. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8642. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8643. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8644. msm_routing_put_audio_mixer),
  8645. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8646. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8647. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8648. msm_routing_put_audio_mixer),
  8649. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8650. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8651. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8652. msm_routing_put_audio_mixer),
  8653. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8654. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8655. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8656. msm_routing_put_audio_mixer),
  8657. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. };
  8666. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8667. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8708. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8709. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8710. msm_routing_put_audio_mixer),
  8711. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8712. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8713. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8714. msm_routing_put_audio_mixer),
  8715. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8716. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8717. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8718. msm_routing_put_audio_mixer),
  8719. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8720. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8721. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8722. msm_routing_put_audio_mixer),
  8723. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8724. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8725. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8726. msm_routing_put_audio_mixer),
  8727. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8728. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8730. msm_routing_put_audio_mixer),
  8731. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8732. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8733. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8734. msm_routing_put_audio_mixer),
  8735. };
  8736. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8737. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_INT_FM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_INT_FM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_INT_FM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_INT_FM_RX,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_INT_FM_RX,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_INT_FM_RX,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_INT_FM_RX,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_INT_FM_RX,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_INT_FM_RX,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_INT_FM_RX,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_INT_FM_RX,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_INT_FM_RX,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_INT_FM_RX,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_INT_FM_RX,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_INT_FM_RX,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_INT_FM_RX,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_INT_FM_RX,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_INT_FM_RX,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_INT_FM_RX,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8814. MSM_BACKEND_DAI_INT_FM_RX,
  8815. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8816. msm_routing_put_audio_mixer),
  8817. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8818. MSM_BACKEND_DAI_INT_FM_RX,
  8819. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8820. msm_routing_put_audio_mixer),
  8821. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_INT_FM_RX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_INT_FM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. };
  8830. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8831. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_AFE_PCM_RX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_AFE_PCM_RX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_AFE_PCM_RX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_AFE_PCM_RX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_AFE_PCM_RX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_AFE_PCM_RX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_AFE_PCM_RX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_AFE_PCM_RX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_AFE_PCM_RX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_AFE_PCM_RX,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_AFE_PCM_RX,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_AFE_PCM_RX,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_AFE_PCM_RX,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_AFE_PCM_RX,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_AFE_PCM_RX,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_AFE_PCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_AFE_PCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_AFE_PCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_AFE_PCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_AFE_PCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_AFE_PCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_AFE_PCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_AFE_PCM_RX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. };
  8924. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8925. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8926. MSM_BACKEND_DAI_AUXPCM_RX,
  8927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8928. msm_routing_put_audio_mixer),
  8929. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8930. MSM_BACKEND_DAI_AUXPCM_RX,
  8931. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8932. msm_routing_put_audio_mixer),
  8933. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8934. MSM_BACKEND_DAI_AUXPCM_RX,
  8935. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8936. msm_routing_put_audio_mixer),
  8937. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8938. MSM_BACKEND_DAI_AUXPCM_RX,
  8939. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8940. msm_routing_put_audio_mixer),
  8941. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8942. MSM_BACKEND_DAI_AUXPCM_RX,
  8943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8944. msm_routing_put_audio_mixer),
  8945. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8946. MSM_BACKEND_DAI_AUXPCM_RX,
  8947. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8948. msm_routing_put_audio_mixer),
  8949. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8950. MSM_BACKEND_DAI_AUXPCM_RX,
  8951. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8952. msm_routing_put_audio_mixer),
  8953. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8954. MSM_BACKEND_DAI_AUXPCM_RX,
  8955. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8956. msm_routing_put_audio_mixer),
  8957. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8958. MSM_BACKEND_DAI_AUXPCM_RX,
  8959. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8960. msm_routing_put_audio_mixer),
  8961. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_AUXPCM_RX,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_AUXPCM_RX,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_AUXPCM_RX,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_AUXPCM_RX,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_AUXPCM_RX,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_AUXPCM_RX,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_AUXPCM_RX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_AUXPCM_RX,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_AUXPCM_RX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_AUXPCM_RX,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_AUXPCM_RX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_AUXPCM_RX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_AUXPCM_RX,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_AUXPCM_RX,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_AUXPCM_RX,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. };
  9022. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  9023. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9024. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9026. msm_routing_put_audio_mixer),
  9027. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9028. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9030. msm_routing_put_audio_mixer),
  9031. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9032. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9034. msm_routing_put_audio_mixer),
  9035. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. };
  9120. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  9121. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. };
  9190. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  9191. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. };
  9260. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  9261. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. };
  9330. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  9331. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. };
  9400. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  9401. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. };
  9486. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9487. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. };
  9572. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. };
  9658. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9659. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9736. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9737. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9738. msm_routing_put_audio_mixer),
  9739. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9740. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9741. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9742. msm_routing_put_audio_mixer),
  9743. };
  9744. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9745. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9798. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9799. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9800. msm_routing_put_audio_mixer),
  9801. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9802. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9803. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9804. msm_routing_put_audio_mixer),
  9805. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9806. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9807. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9808. msm_routing_put_audio_mixer),
  9809. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9810. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9811. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9812. msm_routing_put_audio_mixer),
  9813. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9814. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9815. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9816. msm_routing_put_audio_mixer),
  9817. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9818. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9819. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9820. msm_routing_put_audio_mixer),
  9821. };
  9822. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9823. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9864. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9865. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9866. msm_routing_put_audio_mixer),
  9867. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9868. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9869. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9870. msm_routing_put_audio_mixer),
  9871. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9872. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9873. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9874. msm_routing_put_audio_mixer),
  9875. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9876. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9877. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9878. msm_routing_put_audio_mixer),
  9879. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9881. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9882. msm_routing_put_audio_mixer),
  9883. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9885. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9886. msm_routing_put_audio_mixer),
  9887. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9889. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9890. msm_routing_put_audio_mixer),
  9891. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9893. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9894. msm_routing_put_audio_mixer),
  9895. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9897. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9898. msm_routing_put_audio_mixer),
  9899. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. };
  9908. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9909. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. };
  9994. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9995. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9996. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9998. msm_routing_put_audio_mixer),
  9999. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10000. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10001. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10002. msm_routing_put_audio_mixer),
  10003. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10004. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10005. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10006. msm_routing_put_audio_mixer),
  10007. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10008. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10009. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10010. msm_routing_put_audio_mixer),
  10011. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10013. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10014. msm_routing_put_audio_mixer),
  10015. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10017. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10018. msm_routing_put_audio_mixer),
  10019. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10021. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10022. msm_routing_put_audio_mixer),
  10023. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10025. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10026. msm_routing_put_audio_mixer),
  10027. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10029. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10030. msm_routing_put_audio_mixer),
  10031. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10032. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10033. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10034. msm_routing_put_audio_mixer),
  10035. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10036. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10037. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10038. msm_routing_put_audio_mixer),
  10039. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10040. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10041. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10042. msm_routing_put_audio_mixer),
  10043. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10044. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10045. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10046. msm_routing_put_audio_mixer),
  10047. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. };
  10080. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  10081. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. };
  10166. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  10167. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. };
  10244. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  10245. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10246. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10248. msm_routing_put_audio_mixer),
  10249. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10250. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10251. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10252. msm_routing_put_audio_mixer),
  10253. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10255. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10256. msm_routing_put_audio_mixer),
  10257. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10259. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10260. msm_routing_put_audio_mixer),
  10261. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10263. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10264. msm_routing_put_audio_mixer),
  10265. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. };
  10330. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  10331. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. };
  10408. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  10409. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. };
  10494. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  10495. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10496. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10497. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10498. msm_routing_put_audio_mixer),
  10499. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10576. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  10577. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10578. msm_routing_put_audio_mixer),
  10579. };
  10580. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  10581. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10644. msm_routing_put_audio_mixer),
  10645. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10647. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10648. msm_routing_put_audio_mixer),
  10649. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10651. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10652. msm_routing_put_audio_mixer),
  10653. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10655. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10656. msm_routing_put_audio_mixer),
  10657. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10659. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10660. msm_routing_put_audio_mixer),
  10661. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10663. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10664. msm_routing_put_audio_mixer),
  10665. };
  10666. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10667. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. };
  10752. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10753. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10787. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10788. msm_routing_put_audio_mixer),
  10789. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10791. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10792. msm_routing_put_audio_mixer),
  10793. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10795. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10796. msm_routing_put_audio_mixer),
  10797. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10803. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10804. msm_routing_put_audio_mixer),
  10805. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. };
  10842. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10843. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10853. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10854. msm_routing_put_audio_mixer),
  10855. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10857. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10858. msm_routing_put_audio_mixer),
  10859. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10861. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10862. msm_routing_put_audio_mixer),
  10863. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10865. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10866. msm_routing_put_audio_mixer),
  10867. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10869. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10870. msm_routing_put_audio_mixer),
  10871. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10874. msm_routing_put_audio_mixer),
  10875. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10877. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10878. msm_routing_put_audio_mixer),
  10879. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10881. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10882. msm_routing_put_audio_mixer),
  10883. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10885. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10886. msm_routing_put_audio_mixer),
  10887. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10889. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10890. msm_routing_put_audio_mixer),
  10891. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10893. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10894. msm_routing_put_audio_mixer),
  10895. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10897. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10898. msm_routing_put_audio_mixer),
  10899. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10901. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10902. msm_routing_put_audio_mixer),
  10903. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10906. msm_routing_put_audio_mixer),
  10907. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10908. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10909. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  10910. msm_routing_put_audio_mixer),
  10911. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10913. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  10914. msm_routing_put_audio_mixer),
  10915. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10917. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  10918. msm_routing_put_audio_mixer),
  10919. };
  10920. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10921. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. };
  11010. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  11011. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11013. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11014. msm_routing_put_audio_mixer),
  11015. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11017. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11018. msm_routing_put_audio_mixer),
  11019. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11021. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11022. msm_routing_put_audio_mixer),
  11023. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11026. msm_routing_put_audio_mixer),
  11027. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11029. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11030. msm_routing_put_audio_mixer),
  11031. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11033. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11034. msm_routing_put_audio_mixer),
  11035. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11037. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11038. msm_routing_put_audio_mixer),
  11039. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11041. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11042. msm_routing_put_audio_mixer),
  11043. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. };
  11100. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  11101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11104. msm_routing_put_audio_mixer),
  11105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11108. msm_routing_put_audio_mixer),
  11109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11110. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11112. msm_routing_put_audio_mixer),
  11113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11114. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11116. msm_routing_put_audio_mixer),
  11117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11118. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11120. msm_routing_put_audio_mixer),
  11121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11122. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11124. msm_routing_put_audio_mixer),
  11125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11126. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11128. msm_routing_put_audio_mixer),
  11129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11132. msm_routing_put_audio_mixer),
  11133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11136. msm_routing_put_audio_mixer),
  11137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11140. msm_routing_put_audio_mixer),
  11141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11142. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11144. msm_routing_put_audio_mixer),
  11145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11146. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11148. msm_routing_put_audio_mixer),
  11149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. };
  11190. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  11191. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. };
  11280. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  11281. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. };
  11358. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  11359. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11361. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11362. msm_routing_put_audio_mixer),
  11363. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. };
  11424. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  11425. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. };
  11502. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  11503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. };
  11580. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  11581. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. };
  11670. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  11671. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11672. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11674. msm_routing_put_audio_mixer),
  11675. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11676. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11682. msm_routing_put_audio_mixer),
  11683. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11686. msm_routing_put_audio_mixer),
  11687. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11688. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11690. msm_routing_put_audio_mixer),
  11691. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11692. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11693. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11694. msm_routing_put_audio_mixer),
  11695. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11696. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11697. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11698. msm_routing_put_audio_mixer),
  11699. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11700. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11702. msm_routing_put_audio_mixer),
  11703. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11705. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11706. msm_routing_put_audio_mixer),
  11707. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. };
  11736. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  11737. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11738. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11740. msm_routing_put_audio_mixer),
  11741. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11742. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11743. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11744. msm_routing_put_audio_mixer),
  11745. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11747. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11748. msm_routing_put_audio_mixer),
  11749. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11750. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11752. msm_routing_put_audio_mixer),
  11753. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11754. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11756. msm_routing_put_audio_mixer),
  11757. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11758. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11760. msm_routing_put_audio_mixer),
  11761. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11762. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11763. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11764. msm_routing_put_audio_mixer),
  11765. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11768. msm_routing_put_audio_mixer),
  11769. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11770. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11771. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11772. msm_routing_put_audio_mixer),
  11773. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11774. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11775. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11776. msm_routing_put_audio_mixer),
  11777. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11778. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11779. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11780. msm_routing_put_audio_mixer),
  11781. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11782. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11783. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11784. msm_routing_put_audio_mixer),
  11785. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11787. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11788. msm_routing_put_audio_mixer),
  11789. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11790. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11791. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11792. msm_routing_put_audio_mixer),
  11793. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11794. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11795. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11796. msm_routing_put_audio_mixer),
  11797. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11798. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11799. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11800. msm_routing_put_audio_mixer),
  11801. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11802. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11803. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11804. msm_routing_put_audio_mixer),
  11805. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11807. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11808. msm_routing_put_audio_mixer),
  11809. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11810. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11811. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11812. msm_routing_put_audio_mixer),
  11813. SOC_DOUBLE_EXT("MultiMedia23", SND_SOC_NOPM,
  11814. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11815. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  11816. msm_routing_put_audio_mixer),
  11817. SOC_DOUBLE_EXT("MultiMedia24", SND_SOC_NOPM,
  11818. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11819. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  11820. msm_routing_put_audio_mixer),
  11821. SOC_DOUBLE_EXT("MultiMedia25", SND_SOC_NOPM,
  11822. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11823. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  11824. msm_routing_put_audio_mixer),
  11825. };
  11826. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11827. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. };
  11900. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11901. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. };
  11966. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11967. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11968. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11970. msm_routing_put_audio_mixer),
  11971. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11972. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11973. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11974. msm_routing_put_audio_mixer),
  11975. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11976. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11977. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11978. msm_routing_put_audio_mixer),
  11979. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11981. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11982. msm_routing_put_audio_mixer),
  11983. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11984. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11985. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11986. msm_routing_put_audio_mixer),
  11987. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11988. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11989. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11990. msm_routing_put_audio_mixer),
  11991. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11992. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11993. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11994. msm_routing_put_audio_mixer),
  11995. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11996. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11997. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11998. msm_routing_put_audio_mixer),
  11999. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12001. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12002. msm_routing_put_audio_mixer),
  12003. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12004. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12005. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12006. msm_routing_put_audio_mixer),
  12007. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12008. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12009. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12014. msm_routing_put_audio_mixer),
  12015. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12016. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12017. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12018. msm_routing_put_audio_mixer),
  12019. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12021. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12022. msm_routing_put_audio_mixer),
  12023. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12024. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12025. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12026. msm_routing_put_audio_mixer),
  12027. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12028. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12029. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. };
  12040. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  12041. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. };
  12114. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  12115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  12116. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12118. msm_routing_put_audio_mixer),
  12119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  12120. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12122. msm_routing_put_audio_mixer),
  12123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  12124. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12130. msm_routing_put_audio_mixer),
  12131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12134. msm_routing_put_audio_mixer),
  12135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  12136. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12138. msm_routing_put_audio_mixer),
  12139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  12140. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  12142. msm_routing_put_audio_mixer),
  12143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  12144. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12146. msm_routing_put_audio_mixer),
  12147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  12150. msm_routing_put_audio_mixer),
  12151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12154. msm_routing_put_audio_mixer),
  12155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  12158. msm_routing_put_audio_mixer),
  12159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  12162. msm_routing_put_audio_mixer),
  12163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. };
  12188. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  12189. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_PRI_I2S_TX,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_MI2S_TX,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_AUXPCM_TX,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12236. msm_routing_put_audio_mixer),
  12237. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12238. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12239. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12240. msm_routing_put_audio_mixer),
  12241. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12242. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12243. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12244. msm_routing_put_audio_mixer),
  12245. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12246. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12247. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12248. msm_routing_put_audio_mixer),
  12249. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  12250. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12251. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12256. msm_routing_put_audio_mixer),
  12257. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12258. MSM_BACKEND_DAI_INT_FM_TX,
  12259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12260. msm_routing_put_audio_mixer),
  12261. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12262. MSM_BACKEND_DAI_AFE_PCM_TX,
  12263. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12264. msm_routing_put_audio_mixer),
  12265. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12268. msm_routing_put_audio_mixer),
  12269. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12270. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12271. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12272. msm_routing_put_audio_mixer),
  12273. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  12274. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  12275. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12276. msm_routing_put_audio_mixer),
  12277. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12300. msm_routing_put_audio_mixer),
  12301. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12352. msm_routing_put_audio_mixer),
  12353. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12354. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12355. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12356. msm_routing_put_audio_mixer),
  12357. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12359. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12360. msm_routing_put_audio_mixer),
  12361. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12362. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12363. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12364. msm_routing_put_audio_mixer),
  12365. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12366. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12372. msm_routing_put_audio_mixer),
  12373. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12387. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12388. msm_routing_put_audio_mixer),
  12389. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12391. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12392. msm_routing_put_audio_mixer),
  12393. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_USB_TX,
  12395. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12396. msm_routing_put_audio_mixer),
  12397. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12399. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12400. msm_routing_put_audio_mixer),
  12401. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12403. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12404. msm_routing_put_audio_mixer),
  12405. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12407. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12419. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12420. msm_routing_put_audio_mixer),
  12421. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. };
  12462. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  12463. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12464. MSM_BACKEND_DAI_INT_FM_TX,
  12465. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12466. msm_routing_put_audio_mixer),
  12467. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12468. MSM_BACKEND_DAI_MI2S_TX,
  12469. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12470. msm_routing_put_audio_mixer),
  12471. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12472. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12473. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12474. msm_routing_put_audio_mixer),
  12475. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12476. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12478. msm_routing_put_audio_mixer),
  12479. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12481. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12482. msm_routing_put_audio_mixer),
  12483. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12484. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12485. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12486. msm_routing_put_audio_mixer),
  12487. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12488. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12489. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12490. msm_routing_put_audio_mixer),
  12491. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12492. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12493. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12494. msm_routing_put_audio_mixer),
  12495. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12496. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12497. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12498. msm_routing_put_audio_mixer),
  12499. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12501. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12502. msm_routing_put_audio_mixer),
  12503. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12504. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12506. msm_routing_put_audio_mixer),
  12507. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12508. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12510. msm_routing_put_audio_mixer),
  12511. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12512. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12513. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12514. msm_routing_put_audio_mixer),
  12515. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12516. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12517. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12518. msm_routing_put_audio_mixer),
  12519. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12521. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12522. msm_routing_put_audio_mixer),
  12523. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12524. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12525. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12526. msm_routing_put_audio_mixer),
  12527. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12528. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12529. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12530. msm_routing_put_audio_mixer),
  12531. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12532. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12533. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12534. msm_routing_put_audio_mixer),
  12535. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12536. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12538. msm_routing_put_audio_mixer),
  12539. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12541. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12542. msm_routing_put_audio_mixer),
  12543. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12544. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12545. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12546. msm_routing_put_audio_mixer),
  12547. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12548. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12549. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12550. msm_routing_put_audio_mixer),
  12551. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12552. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12553. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12554. msm_routing_put_audio_mixer),
  12555. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12556. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12557. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12558. msm_routing_put_audio_mixer),
  12559. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12560. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12561. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12562. msm_routing_put_audio_mixer),
  12563. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12564. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12565. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12566. msm_routing_put_audio_mixer),
  12567. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12568. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12569. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12570. msm_routing_put_audio_mixer),
  12571. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12573. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12574. msm_routing_put_audio_mixer),
  12575. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_USB_TX,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. };
  12688. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  12689. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12690. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12692. msm_routing_put_audio_mixer),
  12693. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12696. msm_routing_put_audio_mixer),
  12697. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12698. MSM_BACKEND_DAI_INT_FM_TX,
  12699. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12700. msm_routing_put_audio_mixer),
  12701. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12702. MSM_BACKEND_DAI_MI2S_TX,
  12703. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12704. msm_routing_put_audio_mixer),
  12705. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12706. MSM_BACKEND_DAI_AFE_PCM_TX,
  12707. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12708. msm_routing_put_audio_mixer),
  12709. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12710. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12711. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12712. msm_routing_put_audio_mixer),
  12713. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_AUXPCM_TX,
  12715. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12716. msm_routing_put_audio_mixer),
  12717. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12718. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12720. msm_routing_put_audio_mixer),
  12721. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12722. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12724. msm_routing_put_audio_mixer),
  12725. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12726. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12727. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12728. msm_routing_put_audio_mixer),
  12729. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12730. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12731. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12732. msm_routing_put_audio_mixer),
  12733. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12735. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12736. msm_routing_put_audio_mixer),
  12737. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12738. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12739. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12740. msm_routing_put_audio_mixer),
  12741. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12764. msm_routing_put_audio_mixer),
  12765. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12798. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12799. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12800. msm_routing_put_audio_mixer),
  12801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12802. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12804. msm_routing_put_audio_mixer),
  12805. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12807. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12808. msm_routing_put_audio_mixer),
  12809. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12810. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12811. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12812. msm_routing_put_audio_mixer),
  12813. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12814. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12815. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12816. msm_routing_put_audio_mixer),
  12817. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12818. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12819. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12820. msm_routing_put_audio_mixer),
  12821. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12822. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12823. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12824. msm_routing_put_audio_mixer),
  12825. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12827. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12828. msm_routing_put_audio_mixer),
  12829. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12830. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12832. msm_routing_put_audio_mixer),
  12833. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12834. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12836. msm_routing_put_audio_mixer),
  12837. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12838. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12839. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12840. msm_routing_put_audio_mixer),
  12841. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. };
  12910. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12911. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12912. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12913. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12914. msm_routing_put_audio_mixer),
  12915. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12921. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12922. msm_routing_put_audio_mixer),
  12923. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_INT_FM_TX,
  12925. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12926. msm_routing_put_audio_mixer),
  12927. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12929. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_AFE_PCM_TX,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12934. msm_routing_put_audio_mixer),
  12935. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12938. msm_routing_put_audio_mixer),
  12939. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12981. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12982. msm_routing_put_audio_mixer),
  12983. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12990. msm_routing_put_audio_mixer),
  12991. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12992. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12993. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12994. msm_routing_put_audio_mixer),
  12995. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12996. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12997. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12998. msm_routing_put_audio_mixer),
  12999. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13001. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13002. msm_routing_put_audio_mixer),
  13003. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13004. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13005. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13010. msm_routing_put_audio_mixer),
  13011. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13012. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13013. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13014. msm_routing_put_audio_mixer),
  13015. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13016. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13017. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13018. msm_routing_put_audio_mixer),
  13019. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13021. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13022. msm_routing_put_audio_mixer),
  13023. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13024. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13025. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13026. msm_routing_put_audio_mixer),
  13027. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13028. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13029. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13030. msm_routing_put_audio_mixer),
  13031. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13033. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13034. msm_routing_put_audio_mixer),
  13035. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13038. msm_routing_put_audio_mixer),
  13039. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13041. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13042. msm_routing_put_audio_mixer),
  13043. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13045. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13046. msm_routing_put_audio_mixer),
  13047. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13050. msm_routing_put_audio_mixer),
  13051. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13052. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13053. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13054. msm_routing_put_audio_mixer),
  13055. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13056. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13057. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13058. msm_routing_put_audio_mixer),
  13059. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_USB_TX,
  13061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13062. msm_routing_put_audio_mixer),
  13063. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13064. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13065. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13066. msm_routing_put_audio_mixer),
  13067. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13085. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13086. msm_routing_put_audio_mixer),
  13087. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13090. msm_routing_put_audio_mixer),
  13091. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13093. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13094. msm_routing_put_audio_mixer),
  13095. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13097. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13098. msm_routing_put_audio_mixer),
  13099. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13102. msm_routing_put_audio_mixer),
  13103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13105. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13106. msm_routing_put_audio_mixer),
  13107. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13109. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13110. msm_routing_put_audio_mixer),
  13111. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13113. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13114. msm_routing_put_audio_mixer),
  13115. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13117. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13118. msm_routing_put_audio_mixer),
  13119. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. };
  13124. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  13125. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13126. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13128. msm_routing_put_audio_mixer),
  13129. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13130. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13132. msm_routing_put_audio_mixer),
  13133. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13134. MSM_BACKEND_DAI_INT_FM_TX,
  13135. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13136. msm_routing_put_audio_mixer),
  13137. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13138. MSM_BACKEND_DAI_MI2S_TX,
  13139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13140. msm_routing_put_audio_mixer),
  13141. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_AFE_PCM_TX,
  13143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13144. msm_routing_put_audio_mixer),
  13145. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13147. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13148. msm_routing_put_audio_mixer),
  13149. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_AUXPCM_TX,
  13151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13152. msm_routing_put_audio_mixer),
  13153. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13155. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13156. msm_routing_put_audio_mixer),
  13157. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13159. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13160. msm_routing_put_audio_mixer),
  13161. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13163. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13164. msm_routing_put_audio_mixer),
  13165. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  13166. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  13167. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13168. msm_routing_put_audio_mixer),
  13169. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  13170. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  13171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13172. msm_routing_put_audio_mixer),
  13173. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13176. msm_routing_put_audio_mixer),
  13177. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13178. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13179. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13180. msm_routing_put_audio_mixer),
  13181. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13182. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13183. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13184. msm_routing_put_audio_mixer),
  13185. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13187. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13188. msm_routing_put_audio_mixer),
  13189. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13191. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13192. msm_routing_put_audio_mixer),
  13193. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13195. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13196. msm_routing_put_audio_mixer),
  13197. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13199. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13200. msm_routing_put_audio_mixer),
  13201. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13204. msm_routing_put_audio_mixer),
  13205. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13206. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13207. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13208. msm_routing_put_audio_mixer),
  13209. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13210. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13211. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13212. msm_routing_put_audio_mixer),
  13213. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13215. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13216. msm_routing_put_audio_mixer),
  13217. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13218. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13219. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13220. msm_routing_put_audio_mixer),
  13221. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13222. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13223. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13224. msm_routing_put_audio_mixer),
  13225. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13226. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13227. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13228. msm_routing_put_audio_mixer),
  13229. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13231. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13232. msm_routing_put_audio_mixer),
  13233. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13235. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13236. msm_routing_put_audio_mixer),
  13237. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13239. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13240. msm_routing_put_audio_mixer),
  13241. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13243. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13248. msm_routing_put_audio_mixer),
  13249. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13252. msm_routing_put_audio_mixer),
  13253. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13255. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13256. msm_routing_put_audio_mixer),
  13257. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13258. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13259. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13260. msm_routing_put_audio_mixer),
  13261. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13262. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13263. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13272. msm_routing_put_audio_mixer),
  13273. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13275. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13276. msm_routing_put_audio_mixer),
  13277. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13279. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13280. msm_routing_put_audio_mixer),
  13281. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13282. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13284. msm_routing_put_audio_mixer),
  13285. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13287. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13288. msm_routing_put_audio_mixer),
  13289. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13291. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13292. msm_routing_put_audio_mixer),
  13293. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13295. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13296. msm_routing_put_audio_mixer),
  13297. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  13299. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13300. msm_routing_put_audio_mixer),
  13301. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_USB_TX,
  13303. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13304. msm_routing_put_audio_mixer),
  13305. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13308. msm_routing_put_audio_mixer),
  13309. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13310. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13311. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13312. msm_routing_put_audio_mixer),
  13313. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13314. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13316. msm_routing_put_audio_mixer),
  13317. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13318. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13319. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13320. msm_routing_put_audio_mixer),
  13321. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13322. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13323. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13324. msm_routing_put_audio_mixer),
  13325. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13327. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13328. msm_routing_put_audio_mixer),
  13329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13331. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13332. msm_routing_put_audio_mixer),
  13333. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13335. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13336. msm_routing_put_audio_mixer),
  13337. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13339. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13340. msm_routing_put_audio_mixer),
  13341. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13343. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13344. msm_routing_put_audio_mixer),
  13345. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13347. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13348. msm_routing_put_audio_mixer),
  13349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13351. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13352. msm_routing_put_audio_mixer),
  13353. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13355. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13356. msm_routing_put_audio_mixer),
  13357. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13359. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13360. msm_routing_put_audio_mixer),
  13361. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13362. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13363. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13364. msm_routing_put_audio_mixer),
  13365. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13367. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  13368. msm_routing_put_audio_mixer),
  13369. };
  13370. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  13371. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_INT_FM_TX,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13382. msm_routing_put_audio_mixer),
  13383. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13386. msm_routing_put_audio_mixer),
  13387. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13389. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13390. msm_routing_put_audio_mixer),
  13391. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13393. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13406. msm_routing_put_audio_mixer),
  13407. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13409. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13410. msm_routing_put_audio_mixer),
  13411. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13414. msm_routing_put_audio_mixer),
  13415. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_AUXPCM_TX,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13421. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13422. msm_routing_put_audio_mixer),
  13423. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13444. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13445. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13446. msm_routing_put_audio_mixer),
  13447. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13449. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13450. msm_routing_put_audio_mixer),
  13451. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13452. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13453. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13454. msm_routing_put_audio_mixer),
  13455. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13456. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13457. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13458. msm_routing_put_audio_mixer),
  13459. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13460. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13461. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13462. msm_routing_put_audio_mixer),
  13463. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13464. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13465. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13466. msm_routing_put_audio_mixer),
  13467. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13469. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13470. msm_routing_put_audio_mixer),
  13471. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13473. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13474. msm_routing_put_audio_mixer),
  13475. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13477. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13478. msm_routing_put_audio_mixer),
  13479. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13481. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13482. msm_routing_put_audio_mixer),
  13483. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13485. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13486. msm_routing_put_audio_mixer),
  13487. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13489. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13490. msm_routing_put_audio_mixer),
  13491. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13494. msm_routing_put_audio_mixer),
  13495. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13497. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13498. msm_routing_put_audio_mixer),
  13499. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13501. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13502. msm_routing_put_audio_mixer),
  13503. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13505. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13506. msm_routing_put_audio_mixer),
  13507. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13508. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13509. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13510. msm_routing_put_audio_mixer),
  13511. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13513. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13514. msm_routing_put_audio_mixer),
  13515. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13517. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13518. msm_routing_put_audio_mixer),
  13519. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13522. msm_routing_put_audio_mixer),
  13523. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13526. msm_routing_put_audio_mixer),
  13527. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_USB_TX,
  13529. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13530. msm_routing_put_audio_mixer),
  13531. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13532. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13533. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13534. msm_routing_put_audio_mixer),
  13535. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13536. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13537. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13538. msm_routing_put_audio_mixer),
  13539. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13540. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13541. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13542. msm_routing_put_audio_mixer),
  13543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13545. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13546. msm_routing_put_audio_mixer),
  13547. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13549. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13550. msm_routing_put_audio_mixer),
  13551. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13553. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13554. msm_routing_put_audio_mixer),
  13555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13557. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13558. msm_routing_put_audio_mixer),
  13559. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13561. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13562. msm_routing_put_audio_mixer),
  13563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13565. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13566. msm_routing_put_audio_mixer),
  13567. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13569. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13570. msm_routing_put_audio_mixer),
  13571. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13573. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13574. msm_routing_put_audio_mixer),
  13575. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13577. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13578. msm_routing_put_audio_mixer),
  13579. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13581. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13582. msm_routing_put_audio_mixer),
  13583. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13585. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  13590. msm_routing_put_audio_mixer),
  13591. };
  13592. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  13593. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13594. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13595. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13596. msm_routing_put_audio_mixer),
  13597. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13599. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13600. msm_routing_put_audio_mixer),
  13601. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13602. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13604. msm_routing_put_audio_mixer),
  13605. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13606. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13607. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13608. msm_routing_put_audio_mixer),
  13609. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13610. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13611. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13612. msm_routing_put_audio_mixer),
  13613. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13614. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13615. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13616. msm_routing_put_audio_mixer),
  13617. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13618. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13619. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13620. msm_routing_put_audio_mixer),
  13621. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13622. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13623. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13624. msm_routing_put_audio_mixer),
  13625. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_INT_FM_TX,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_AFE_PCM_TX,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13656. msm_routing_put_audio_mixer),
  13657. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13659. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13660. msm_routing_put_audio_mixer),
  13661. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13663. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13664. msm_routing_put_audio_mixer),
  13665. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13667. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13668. msm_routing_put_audio_mixer),
  13669. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13671. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13672. msm_routing_put_audio_mixer),
  13673. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13675. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13676. msm_routing_put_audio_mixer),
  13677. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13679. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13680. msm_routing_put_audio_mixer),
  13681. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13683. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13688. msm_routing_put_audio_mixer),
  13689. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13691. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13692. msm_routing_put_audio_mixer),
  13693. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13695. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13696. msm_routing_put_audio_mixer),
  13697. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13698. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13699. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13700. msm_routing_put_audio_mixer),
  13701. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13702. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13703. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13704. msm_routing_put_audio_mixer),
  13705. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13706. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13707. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13708. msm_routing_put_audio_mixer),
  13709. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13710. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13711. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13716. msm_routing_put_audio_mixer),
  13717. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13718. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13719. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13720. msm_routing_put_audio_mixer),
  13721. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13722. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13723. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13724. msm_routing_put_audio_mixer),
  13725. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13726. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13727. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13728. msm_routing_put_audio_mixer),
  13729. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13730. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13731. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13732. msm_routing_put_audio_mixer),
  13733. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13734. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13735. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13736. msm_routing_put_audio_mixer),
  13737. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13740. msm_routing_put_audio_mixer),
  13741. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13744. msm_routing_put_audio_mixer),
  13745. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13748. msm_routing_put_audio_mixer),
  13749. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_USB_TX,
  13751. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13752. msm_routing_put_audio_mixer),
  13753. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13755. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13759. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13771. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13772. msm_routing_put_audio_mixer),
  13773. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13775. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13776. msm_routing_put_audio_mixer),
  13777. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13779. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13780. msm_routing_put_audio_mixer),
  13781. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13783. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13784. msm_routing_put_audio_mixer),
  13785. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13787. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13788. msm_routing_put_audio_mixer),
  13789. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13791. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13792. msm_routing_put_audio_mixer),
  13793. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13795. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13796. msm_routing_put_audio_mixer),
  13797. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13799. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13804. msm_routing_put_audio_mixer),
  13805. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13807. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13808. msm_routing_put_audio_mixer),
  13809. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13811. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13812. msm_routing_put_audio_mixer),
  13813. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13814. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13815. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13816. msm_routing_put_audio_mixer),
  13817. };
  13818. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13819. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13822. msm_routing_put_audio_mixer),
  13823. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13824. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13825. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13826. msm_routing_put_audio_mixer),
  13827. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13828. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13829. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13830. msm_routing_put_audio_mixer),
  13831. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13832. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13833. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13834. msm_routing_put_audio_mixer),
  13835. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13836. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13837. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13852. MSM_BACKEND_DAI_INT_FM_TX,
  13853. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13854. msm_routing_put_audio_mixer),
  13855. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13856. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13857. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13858. msm_routing_put_audio_mixer),
  13859. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13860. MSM_BACKEND_DAI_AFE_PCM_TX,
  13861. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13862. msm_routing_put_audio_mixer),
  13863. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13864. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13865. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13866. msm_routing_put_audio_mixer),
  13867. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13868. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13869. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13870. msm_routing_put_audio_mixer),
  13871. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13872. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13873. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13874. msm_routing_put_audio_mixer),
  13875. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13876. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13877. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13878. msm_routing_put_audio_mixer),
  13879. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13880. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13881. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13882. msm_routing_put_audio_mixer),
  13883. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13884. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13885. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13886. msm_routing_put_audio_mixer),
  13887. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13888. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13889. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13890. msm_routing_put_audio_mixer),
  13891. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13892. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13893. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13894. msm_routing_put_audio_mixer),
  13895. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13896. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13897. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13898. msm_routing_put_audio_mixer),
  13899. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13900. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13901. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13902. msm_routing_put_audio_mixer),
  13903. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13904. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13905. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13906. msm_routing_put_audio_mixer),
  13907. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13908. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13909. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13910. msm_routing_put_audio_mixer),
  13911. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13912. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13913. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13914. msm_routing_put_audio_mixer),
  13915. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13916. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13917. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13918. msm_routing_put_audio_mixer),
  13919. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13920. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13921. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13922. msm_routing_put_audio_mixer),
  13923. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13924. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13926. msm_routing_put_audio_mixer),
  13927. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13928. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13929. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13930. msm_routing_put_audio_mixer),
  13931. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13932. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13933. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13938. msm_routing_put_audio_mixer),
  13939. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13940. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13941. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13942. msm_routing_put_audio_mixer),
  13943. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13944. MSM_BACKEND_DAI_USB_TX,
  13945. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13946. msm_routing_put_audio_mixer),
  13947. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13948. MSM_BACKEND_DAI_MI2S_TX,
  13949. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13950. msm_routing_put_audio_mixer),
  13951. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13952. MSM_BACKEND_DAI_AUXPCM_TX,
  13953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13954. msm_routing_put_audio_mixer),
  13955. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13956. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13957. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13958. msm_routing_put_audio_mixer),
  13959. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13961. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13962. msm_routing_put_audio_mixer),
  13963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13965. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13966. msm_routing_put_audio_mixer),
  13967. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13968. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13969. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13970. msm_routing_put_audio_mixer),
  13971. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13972. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13973. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13974. msm_routing_put_audio_mixer),
  13975. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13976. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13977. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13978. msm_routing_put_audio_mixer),
  13979. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13980. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13981. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13982. msm_routing_put_audio_mixer),
  13983. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13984. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13986. msm_routing_put_audio_mixer),
  13987. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13988. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13989. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13990. msm_routing_get_audio_mixer,
  13991. msm_routing_put_audio_mixer),
  13992. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13993. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13994. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13995. msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14000. msm_routing_get_audio_mixer,
  14001. msm_routing_put_audio_mixer),
  14002. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14004. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14005. msm_routing_get_audio_mixer,
  14006. msm_routing_put_audio_mixer),
  14007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14009. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14010. msm_routing_get_audio_mixer,
  14011. msm_routing_put_audio_mixer),
  14012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14014. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  14015. msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. };
  14034. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  14035. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14036. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14037. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14038. msm_routing_put_audio_mixer),
  14039. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14040. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14041. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14042. msm_routing_put_audio_mixer),
  14043. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14044. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14045. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14046. msm_routing_put_audio_mixer),
  14047. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14048. MSM_BACKEND_DAI_INT_FM_TX,
  14049. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14050. msm_routing_put_audio_mixer),
  14051. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14052. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14053. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14054. msm_routing_put_audio_mixer),
  14055. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14056. MSM_BACKEND_DAI_AFE_PCM_TX,
  14057. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14058. msm_routing_put_audio_mixer),
  14059. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14060. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14061. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14062. msm_routing_put_audio_mixer),
  14063. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14064. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14065. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14066. msm_routing_put_audio_mixer),
  14067. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14068. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14070. msm_routing_put_audio_mixer),
  14071. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14073. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14074. msm_routing_put_audio_mixer),
  14075. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14076. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14077. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14078. msm_routing_put_audio_mixer),
  14079. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14080. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14082. msm_routing_put_audio_mixer),
  14083. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14085. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14086. msm_routing_put_audio_mixer),
  14087. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14088. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14089. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14090. msm_routing_put_audio_mixer),
  14091. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14092. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14093. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14094. msm_routing_put_audio_mixer),
  14095. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14098. msm_routing_put_audio_mixer),
  14099. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14100. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14102. msm_routing_put_audio_mixer),
  14103. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14104. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14105. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14106. msm_routing_put_audio_mixer),
  14107. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14108. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14110. msm_routing_put_audio_mixer),
  14111. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14114. msm_routing_put_audio_mixer),
  14115. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14116. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14117. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14118. msm_routing_put_audio_mixer),
  14119. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14120. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14122. msm_routing_put_audio_mixer),
  14123. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14125. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14126. msm_routing_put_audio_mixer),
  14127. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14128. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14129. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14130. msm_routing_put_audio_mixer),
  14131. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14132. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14133. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14134. msm_routing_put_audio_mixer),
  14135. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14137. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14138. msm_routing_put_audio_mixer),
  14139. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14140. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14142. msm_routing_put_audio_mixer),
  14143. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14144. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14145. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14146. msm_routing_put_audio_mixer),
  14147. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14148. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14150. msm_routing_put_audio_mixer),
  14151. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14170. msm_routing_put_audio_mixer),
  14171. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14190. msm_routing_put_audio_mixer),
  14191. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. };
  14196. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  14197. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14198. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14199. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14200. msm_routing_put_audio_mixer),
  14201. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14202. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14203. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14204. msm_routing_put_audio_mixer),
  14205. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14207. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14208. msm_routing_put_audio_mixer),
  14209. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14210. MSM_BACKEND_DAI_INT_FM_TX,
  14211. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14212. msm_routing_put_audio_mixer),
  14213. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14214. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14215. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14216. msm_routing_put_audio_mixer),
  14217. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_AFE_PCM_TX,
  14219. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14220. msm_routing_put_audio_mixer),
  14221. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14222. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14223. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14224. msm_routing_put_audio_mixer),
  14225. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14226. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14227. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14228. msm_routing_put_audio_mixer),
  14229. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14231. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14232. msm_routing_put_audio_mixer),
  14233. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14234. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14235. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14236. msm_routing_put_audio_mixer),
  14237. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14238. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14239. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14240. msm_routing_put_audio_mixer),
  14241. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14242. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14244. msm_routing_put_audio_mixer),
  14245. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14246. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14247. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14248. msm_routing_put_audio_mixer),
  14249. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14250. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14251. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14252. msm_routing_put_audio_mixer),
  14253. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14254. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14255. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14256. msm_routing_put_audio_mixer),
  14257. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14258. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14260. msm_routing_put_audio_mixer),
  14261. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14262. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14264. msm_routing_put_audio_mixer),
  14265. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14266. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14268. msm_routing_put_audio_mixer),
  14269. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14270. MSM_BACKEND_DAI_USB_TX,
  14271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14272. msm_routing_put_audio_mixer),
  14273. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14274. MSM_BACKEND_DAI_MI2S_TX,
  14275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14276. msm_routing_put_audio_mixer),
  14277. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  14278. MSM_BACKEND_DAI_AUXPCM_TX,
  14279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14280. msm_routing_put_audio_mixer),
  14281. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  14282. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14284. msm_routing_put_audio_mixer),
  14285. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  14286. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14287. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14288. msm_routing_put_audio_mixer),
  14289. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  14290. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14292. msm_routing_put_audio_mixer),
  14293. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14294. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14296. msm_routing_put_audio_mixer),
  14297. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  14298. MSM_BACKEND_DAI_INT2_MI2S_TX,
  14299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14300. msm_routing_put_audio_mixer),
  14301. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14302. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14304. msm_routing_put_audio_mixer),
  14305. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14306. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14308. msm_routing_put_audio_mixer),
  14309. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14310. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14312. msm_routing_put_audio_mixer),
  14313. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14314. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14316. msm_routing_put_audio_mixer),
  14317. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14320. msm_routing_put_audio_mixer),
  14321. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14322. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14324. msm_routing_put_audio_mixer),
  14325. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14328. msm_routing_put_audio_mixer),
  14329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14332. msm_routing_get_audio_mixer,
  14333. msm_routing_put_audio_mixer),
  14334. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14335. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14336. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14337. msm_routing_get_audio_mixer,
  14338. msm_routing_put_audio_mixer),
  14339. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14340. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14342. msm_routing_get_audio_mixer,
  14343. msm_routing_put_audio_mixer),
  14344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14346. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14347. msm_routing_get_audio_mixer,
  14348. msm_routing_put_audio_mixer),
  14349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14352. msm_routing_get_audio_mixer,
  14353. msm_routing_put_audio_mixer),
  14354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  14357. msm_routing_get_audio_mixer,
  14358. msm_routing_put_audio_mixer),
  14359. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14360. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14362. msm_routing_put_audio_mixer),
  14363. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14364. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14365. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14366. msm_routing_put_audio_mixer),
  14367. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14368. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14369. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14370. msm_routing_put_audio_mixer),
  14371. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14372. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14373. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  14374. msm_routing_put_audio_mixer),
  14375. };
  14376. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  14377. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14379. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14380. msm_routing_put_audio_mixer),
  14381. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14383. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14384. msm_routing_put_audio_mixer),
  14385. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14387. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14388. msm_routing_put_audio_mixer),
  14389. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14391. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14392. msm_routing_put_audio_mixer),
  14393. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_INT_FM_TX,
  14395. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14396. msm_routing_put_audio_mixer),
  14397. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14398. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14399. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14400. msm_routing_put_audio_mixer),
  14401. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14402. MSM_BACKEND_DAI_AFE_PCM_TX,
  14403. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14404. msm_routing_put_audio_mixer),
  14405. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14406. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14407. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14408. msm_routing_put_audio_mixer),
  14409. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14410. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14411. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14412. msm_routing_put_audio_mixer),
  14413. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14414. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14415. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14416. msm_routing_put_audio_mixer),
  14417. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14418. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14419. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14420. msm_routing_put_audio_mixer),
  14421. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14422. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14423. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14424. msm_routing_put_audio_mixer),
  14425. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14426. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14427. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14428. msm_routing_put_audio_mixer),
  14429. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14430. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14431. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14432. msm_routing_put_audio_mixer),
  14433. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14434. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14435. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14436. msm_routing_put_audio_mixer),
  14437. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14438. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14439. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14440. msm_routing_put_audio_mixer),
  14441. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14442. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14443. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14444. msm_routing_put_audio_mixer),
  14445. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14446. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14447. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14448. msm_routing_get_audio_mixer,
  14449. msm_routing_put_audio_mixer),
  14450. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14451. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14452. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14453. msm_routing_get_audio_mixer,
  14454. msm_routing_put_audio_mixer),
  14455. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14456. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14457. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14458. msm_routing_get_audio_mixer,
  14459. msm_routing_put_audio_mixer),
  14460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14462. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14463. msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14468. msm_routing_get_audio_mixer,
  14469. msm_routing_put_audio_mixer),
  14470. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14471. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14472. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  14473. msm_routing_get_audio_mixer,
  14474. msm_routing_put_audio_mixer),
  14475. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14476. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14477. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14478. msm_routing_put_audio_mixer),
  14479. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14480. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14481. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14482. msm_routing_put_audio_mixer),
  14483. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14484. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14485. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14486. msm_routing_put_audio_mixer),
  14487. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14488. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14489. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14490. msm_routing_put_audio_mixer),
  14491. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  14492. MSM_BACKEND_DAI_USB_TX,
  14493. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  14494. msm_routing_put_audio_mixer),
  14495. };
  14496. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  14497. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14499. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14500. msm_routing_put_audio_mixer),
  14501. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14503. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14504. msm_routing_put_audio_mixer),
  14505. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14516. msm_routing_put_audio_mixer),
  14517. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14519. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14520. msm_routing_put_audio_mixer),
  14521. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14523. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14524. msm_routing_put_audio_mixer),
  14525. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_INT_FM_TX,
  14527. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14528. msm_routing_put_audio_mixer),
  14529. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14531. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14532. msm_routing_put_audio_mixer),
  14533. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14534. MSM_BACKEND_DAI_AFE_PCM_TX,
  14535. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14536. msm_routing_put_audio_mixer),
  14537. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14538. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14539. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14540. msm_routing_put_audio_mixer),
  14541. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14542. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14543. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14544. msm_routing_put_audio_mixer),
  14545. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14546. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14547. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14548. msm_routing_put_audio_mixer),
  14549. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14551. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14552. msm_routing_put_audio_mixer),
  14553. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14554. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14555. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14556. msm_routing_put_audio_mixer),
  14557. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14558. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14559. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14560. msm_routing_put_audio_mixer),
  14561. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14562. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14563. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14564. msm_routing_put_audio_mixer),
  14565. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14566. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14567. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14568. msm_routing_put_audio_mixer),
  14569. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14570. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14571. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14572. msm_routing_get_audio_mixer,
  14573. msm_routing_put_audio_mixer),
  14574. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14575. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14576. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14577. msm_routing_get_audio_mixer,
  14578. msm_routing_put_audio_mixer),
  14579. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14580. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14581. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14582. msm_routing_get_audio_mixer,
  14583. msm_routing_put_audio_mixer),
  14584. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14586. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14587. msm_routing_get_audio_mixer,
  14588. msm_routing_put_audio_mixer),
  14589. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14591. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14592. msm_routing_get_audio_mixer,
  14593. msm_routing_put_audio_mixer),
  14594. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14595. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14596. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  14597. msm_routing_get_audio_mixer,
  14598. msm_routing_put_audio_mixer),
  14599. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14600. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14601. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14602. msm_routing_put_audio_mixer),
  14603. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14604. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14605. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14606. msm_routing_put_audio_mixer),
  14607. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14608. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14609. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  14610. msm_routing_put_audio_mixer),
  14611. };
  14612. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  14613. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14615. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14616. msm_routing_put_audio_mixer),
  14617. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14619. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14620. msm_routing_put_audio_mixer),
  14621. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14623. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14624. msm_routing_put_audio_mixer),
  14625. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14627. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14628. msm_routing_put_audio_mixer),
  14629. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_INT_FM_TX,
  14631. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14632. msm_routing_put_audio_mixer),
  14633. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14635. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14636. msm_routing_put_audio_mixer),
  14637. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_AFE_PCM_TX,
  14639. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14640. msm_routing_put_audio_mixer),
  14641. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14643. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14644. msm_routing_put_audio_mixer),
  14645. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14647. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14648. msm_routing_put_audio_mixer),
  14649. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14650. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14651. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14652. msm_routing_put_audio_mixer),
  14653. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14654. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14655. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14656. msm_routing_put_audio_mixer),
  14657. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14658. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14659. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14660. msm_routing_put_audio_mixer),
  14661. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14662. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14663. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14664. msm_routing_put_audio_mixer),
  14665. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14667. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14668. msm_routing_put_audio_mixer),
  14669. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14670. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14671. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14672. msm_routing_put_audio_mixer),
  14673. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14674. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14675. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14676. msm_routing_put_audio_mixer),
  14677. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14678. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14679. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14680. msm_routing_put_audio_mixer),
  14681. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14682. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14683. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14684. msm_routing_put_audio_mixer),
  14685. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14686. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14687. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14688. msm_routing_get_audio_mixer,
  14689. msm_routing_put_audio_mixer),
  14690. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14691. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14692. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14693. msm_routing_get_audio_mixer,
  14694. msm_routing_put_audio_mixer),
  14695. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14696. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14697. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14698. msm_routing_get_audio_mixer,
  14699. msm_routing_put_audio_mixer),
  14700. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14701. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14702. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14703. msm_routing_get_audio_mixer,
  14704. msm_routing_put_audio_mixer),
  14705. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14707. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14708. msm_routing_get_audio_mixer,
  14709. msm_routing_put_audio_mixer),
  14710. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14711. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14712. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  14713. msm_routing_get_audio_mixer,
  14714. msm_routing_put_audio_mixer),
  14715. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14716. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14717. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14718. msm_routing_put_audio_mixer),
  14719. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14720. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14721. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14722. msm_routing_put_audio_mixer),
  14723. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14724. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14725. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  14726. msm_routing_put_audio_mixer),
  14727. };
  14728. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  14729. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14731. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14732. msm_routing_put_audio_mixer),
  14733. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14735. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14736. msm_routing_put_audio_mixer),
  14737. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14739. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14740. msm_routing_put_audio_mixer),
  14741. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14743. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14744. msm_routing_put_audio_mixer),
  14745. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14747. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14748. msm_routing_put_audio_mixer),
  14749. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14751. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14752. msm_routing_put_audio_mixer),
  14753. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14755. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14756. msm_routing_put_audio_mixer),
  14757. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14759. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14760. msm_routing_put_audio_mixer),
  14761. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14762. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14763. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14764. msm_routing_put_audio_mixer),
  14765. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14766. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14767. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14768. msm_routing_put_audio_mixer),
  14769. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14770. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14771. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14772. msm_routing_put_audio_mixer),
  14773. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14774. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14775. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14776. msm_routing_put_audio_mixer),
  14777. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14778. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14779. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14780. msm_routing_put_audio_mixer),
  14781. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14782. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14783. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14784. msm_routing_put_audio_mixer),
  14785. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14786. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14787. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14788. msm_routing_put_audio_mixer),
  14789. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14790. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14791. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14792. msm_routing_put_audio_mixer),
  14793. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14794. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14795. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14796. msm_routing_put_audio_mixer),
  14797. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14798. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14799. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14800. msm_routing_put_audio_mixer),
  14801. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14803. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14804. msm_routing_put_audio_mixer),
  14805. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14807. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14808. msm_routing_put_audio_mixer),
  14809. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14811. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14812. msm_routing_put_audio_mixer),
  14813. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14815. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14816. msm_routing_put_audio_mixer),
  14817. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14819. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14820. msm_routing_put_audio_mixer),
  14821. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14823. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14824. msm_routing_put_audio_mixer),
  14825. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14827. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14828. msm_routing_put_audio_mixer),
  14829. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14830. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14831. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14832. msm_routing_put_audio_mixer),
  14833. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14834. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14835. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14836. msm_routing_put_audio_mixer),
  14837. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14839. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14840. msm_routing_put_audio_mixer),
  14841. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14842. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14843. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14844. msm_routing_put_audio_mixer),
  14845. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14847. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14848. msm_routing_put_audio_mixer),
  14849. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14851. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14852. msm_routing_put_audio_mixer),
  14853. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14855. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14856. msm_routing_put_audio_mixer),
  14857. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14859. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14860. msm_routing_put_audio_mixer),
  14861. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14863. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14864. msm_routing_put_audio_mixer),
  14865. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14866. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14867. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14868. msm_routing_put_audio_mixer),
  14869. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14870. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14871. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14872. msm_routing_put_audio_mixer),
  14873. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14874. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14875. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14876. msm_routing_put_audio_mixer),
  14877. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14878. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14879. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14880. msm_routing_put_audio_mixer),
  14881. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14883. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14884. msm_routing_put_audio_mixer),
  14885. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14887. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14888. msm_routing_put_audio_mixer),
  14889. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14891. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14892. msm_routing_put_audio_mixer),
  14893. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14895. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14896. msm_routing_put_audio_mixer),
  14897. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14899. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14900. msm_routing_put_audio_mixer),
  14901. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14903. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14904. msm_routing_put_audio_mixer),
  14905. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14907. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14908. msm_routing_put_audio_mixer),
  14909. };
  14910. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14911. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_AUXPCM_TX,
  14913. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14914. msm_routing_put_audio_mixer),
  14915. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14917. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14918. msm_routing_put_audio_mixer),
  14919. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14921. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14922. msm_routing_put_audio_mixer),
  14923. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14925. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14926. msm_routing_put_audio_mixer),
  14927. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14929. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14930. msm_routing_put_audio_mixer),
  14931. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14933. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14934. msm_routing_put_audio_mixer),
  14935. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14937. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14938. msm_routing_put_audio_mixer),
  14939. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14941. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14942. msm_routing_put_audio_mixer),
  14943. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14945. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14946. msm_routing_put_audio_mixer),
  14947. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14949. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14950. msm_routing_put_audio_mixer),
  14951. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14953. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14954. msm_routing_put_audio_mixer),
  14955. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14957. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14958. msm_routing_put_audio_mixer),
  14959. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14961. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14962. msm_routing_put_audio_mixer),
  14963. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14965. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14966. msm_routing_put_audio_mixer),
  14967. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14969. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14970. msm_routing_put_audio_mixer),
  14971. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14973. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14974. msm_routing_put_audio_mixer),
  14975. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14977. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14978. msm_routing_put_audio_mixer),
  14979. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14981. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14982. msm_routing_put_audio_mixer),
  14983. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14985. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14986. msm_routing_put_audio_mixer),
  14987. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14989. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14990. msm_routing_put_audio_mixer),
  14991. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14993. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14994. msm_routing_put_audio_mixer),
  14995. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14997. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14998. msm_routing_put_audio_mixer),
  14999. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  15001. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15002. msm_routing_put_audio_mixer),
  15003. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  15005. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15006. msm_routing_put_audio_mixer),
  15007. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  15009. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15010. msm_routing_put_audio_mixer),
  15011. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  15013. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15014. msm_routing_put_audio_mixer),
  15015. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15017. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15018. msm_routing_put_audio_mixer),
  15019. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15021. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15022. msm_routing_put_audio_mixer),
  15023. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15025. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15026. msm_routing_put_audio_mixer),
  15027. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15028. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15029. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15030. msm_routing_put_audio_mixer),
  15031. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15032. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15033. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15034. msm_routing_put_audio_mixer),
  15035. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15037. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15038. msm_routing_put_audio_mixer),
  15039. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15041. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15042. msm_routing_put_audio_mixer),
  15043. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15045. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15046. msm_routing_put_audio_mixer),
  15047. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15049. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15050. msm_routing_put_audio_mixer),
  15051. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15052. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15053. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15054. msm_routing_put_audio_mixer),
  15055. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15056. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15057. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15058. msm_routing_put_audio_mixer),
  15059. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15061. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15062. msm_routing_put_audio_mixer),
  15063. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15065. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15066. msm_routing_put_audio_mixer),
  15067. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15069. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15070. msm_routing_put_audio_mixer),
  15071. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15073. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  15074. msm_routing_put_audio_mixer),
  15075. };
  15076. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  15077. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15078. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15079. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15080. msm_routing_put_audio_mixer),
  15081. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15083. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15084. msm_routing_put_audio_mixer),
  15085. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15086. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15087. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15088. msm_routing_put_audio_mixer),
  15089. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15091. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15092. msm_routing_put_audio_mixer),
  15093. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15095. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15096. msm_routing_put_audio_mixer),
  15097. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15099. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15100. msm_routing_put_audio_mixer),
  15101. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15102. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15103. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15104. msm_routing_put_audio_mixer),
  15105. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15106. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15107. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15108. msm_routing_put_audio_mixer),
  15109. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15111. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15112. msm_routing_put_audio_mixer),
  15113. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15115. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15116. msm_routing_put_audio_mixer),
  15117. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15119. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15120. msm_routing_put_audio_mixer),
  15121. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15123. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15124. msm_routing_put_audio_mixer),
  15125. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15127. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15128. msm_routing_put_audio_mixer),
  15129. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15131. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15132. msm_routing_put_audio_mixer),
  15133. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15135. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15136. msm_routing_put_audio_mixer),
  15137. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15139. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15140. msm_routing_put_audio_mixer),
  15141. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15143. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15144. msm_routing_put_audio_mixer),
  15145. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15147. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15148. msm_routing_put_audio_mixer),
  15149. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15151. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15152. msm_routing_put_audio_mixer),
  15153. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15155. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  15156. msm_routing_put_audio_mixer),
  15157. };
  15158. static const struct snd_kcontrol_new mmul23_mixer_controls[] = {
  15159. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15160. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15161. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15162. msm_routing_put_audio_mixer),
  15163. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15165. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15166. msm_routing_put_audio_mixer),
  15167. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15169. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15170. msm_routing_put_audio_mixer),
  15171. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15173. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15174. msm_routing_put_audio_mixer),
  15175. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15177. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15178. msm_routing_put_audio_mixer),
  15179. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15181. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15182. msm_routing_put_audio_mixer),
  15183. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15185. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15186. msm_routing_put_audio_mixer),
  15187. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15189. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15190. msm_routing_put_audio_mixer),
  15191. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15192. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15193. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15194. msm_routing_put_audio_mixer),
  15195. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15196. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15197. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15198. msm_routing_put_audio_mixer),
  15199. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15200. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15201. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15202. msm_routing_put_audio_mixer),
  15203. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15204. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15205. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15206. msm_routing_put_audio_mixer),
  15207. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15208. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15209. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15210. msm_routing_put_audio_mixer),
  15211. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15213. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15214. msm_routing_put_audio_mixer),
  15215. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15217. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15218. msm_routing_put_audio_mixer),
  15219. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15221. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15222. msm_routing_put_audio_mixer),
  15223. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15225. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15226. msm_routing_put_audio_mixer),
  15227. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15229. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15230. msm_routing_put_audio_mixer),
  15231. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15233. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15234. msm_routing_put_audio_mixer),
  15235. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15236. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15237. MSM_FRONTEND_DAI_MULTIMEDIA23, 1, 0, msm_routing_get_audio_mixer,
  15238. msm_routing_put_audio_mixer),
  15239. };
  15240. static const struct snd_kcontrol_new mmul24_mixer_controls[] = {
  15241. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15243. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15244. msm_routing_put_audio_mixer),
  15245. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15247. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15248. msm_routing_put_audio_mixer),
  15249. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15251. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15252. msm_routing_put_audio_mixer),
  15253. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15255. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15256. msm_routing_put_audio_mixer),
  15257. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15258. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15259. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15260. msm_routing_put_audio_mixer),
  15261. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15262. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15263. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15264. msm_routing_put_audio_mixer),
  15265. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15267. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15268. msm_routing_put_audio_mixer),
  15269. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15270. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15271. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15272. msm_routing_put_audio_mixer),
  15273. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15275. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15276. msm_routing_put_audio_mixer),
  15277. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15279. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15280. msm_routing_put_audio_mixer),
  15281. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15283. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15284. msm_routing_put_audio_mixer),
  15285. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15287. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15288. msm_routing_put_audio_mixer),
  15289. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15291. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15292. msm_routing_put_audio_mixer),
  15293. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15295. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15296. msm_routing_put_audio_mixer),
  15297. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15299. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15300. msm_routing_put_audio_mixer),
  15301. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15303. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15304. msm_routing_put_audio_mixer),
  15305. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15307. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15308. msm_routing_put_audio_mixer),
  15309. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15310. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15311. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15312. msm_routing_put_audio_mixer),
  15313. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15314. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15315. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15316. msm_routing_put_audio_mixer),
  15317. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15319. MSM_FRONTEND_DAI_MULTIMEDIA24, 1, 0, msm_routing_get_audio_mixer,
  15320. msm_routing_put_audio_mixer),
  15321. };
  15322. static const struct snd_kcontrol_new mmul25_mixer_controls[] = {
  15323. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15324. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  15325. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15326. msm_routing_put_audio_mixer),
  15327. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15328. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  15329. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15330. msm_routing_put_audio_mixer),
  15331. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15332. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  15333. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15334. msm_routing_put_audio_mixer),
  15335. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15336. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  15337. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15338. msm_routing_put_audio_mixer),
  15339. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15340. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  15341. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15342. msm_routing_put_audio_mixer),
  15343. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15344. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  15345. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15346. msm_routing_put_audio_mixer),
  15347. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15348. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  15349. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15350. msm_routing_put_audio_mixer),
  15351. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15352. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  15353. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15354. msm_routing_put_audio_mixer),
  15355. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15356. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  15357. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15358. msm_routing_put_audio_mixer),
  15359. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  15361. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15362. msm_routing_put_audio_mixer),
  15363. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  15365. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15366. msm_routing_put_audio_mixer),
  15367. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  15369. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15370. msm_routing_put_audio_mixer),
  15371. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  15373. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15374. msm_routing_put_audio_mixer),
  15375. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15376. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  15377. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15378. msm_routing_put_audio_mixer),
  15379. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15380. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  15381. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15382. msm_routing_put_audio_mixer),
  15383. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  15385. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15386. msm_routing_put_audio_mixer),
  15387. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  15389. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15390. msm_routing_put_audio_mixer),
  15391. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15392. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  15393. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15394. msm_routing_put_audio_mixer),
  15395. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15396. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  15397. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15398. msm_routing_put_audio_mixer),
  15399. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15400. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  15401. MSM_FRONTEND_DAI_MULTIMEDIA25, 1, 0, msm_routing_get_audio_mixer,
  15402. msm_routing_put_audio_mixer),
  15403. };
  15404. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  15405. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15407. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15408. msm_routing_put_audio_mixer),
  15409. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15411. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15412. msm_routing_put_audio_mixer),
  15413. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  15415. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15416. msm_routing_put_audio_mixer),
  15417. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  15419. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15420. msm_routing_put_audio_mixer),
  15421. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15422. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15423. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15424. msm_routing_put_audio_mixer),
  15425. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15426. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15427. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15428. msm_routing_put_audio_mixer),
  15429. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15430. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15431. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15432. msm_routing_put_audio_mixer),
  15433. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15434. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15435. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15436. msm_routing_put_audio_mixer),
  15437. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  15439. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15440. msm_routing_put_audio_mixer),
  15441. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15442. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  15443. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15444. msm_routing_put_audio_mixer),
  15445. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15446. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15447. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15448. msm_routing_put_audio_mixer),
  15449. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15450. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15451. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15452. msm_routing_put_audio_mixer),
  15453. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15454. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  15455. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15456. msm_routing_put_audio_mixer),
  15457. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15459. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  15460. msm_routing_put_audio_mixer),
  15461. };
  15462. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  15463. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15464. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15465. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15466. msm_routing_put_audio_mixer),
  15467. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15469. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15470. msm_routing_put_audio_mixer),
  15471. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15472. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15473. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15474. msm_routing_put_audio_mixer),
  15475. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15476. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15477. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15478. msm_routing_put_audio_mixer),
  15479. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15480. MSM_BACKEND_DAI_INT_FM_TX,
  15481. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15482. msm_routing_put_audio_mixer),
  15483. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15484. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15485. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15486. msm_routing_put_audio_mixer),
  15487. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15488. MSM_BACKEND_DAI_AFE_PCM_TX,
  15489. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15490. msm_routing_put_audio_mixer),
  15491. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15492. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15493. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15494. msm_routing_put_audio_mixer),
  15495. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15496. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15497. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15498. msm_routing_put_audio_mixer),
  15499. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15500. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15501. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15502. msm_routing_put_audio_mixer),
  15503. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15504. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15505. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15506. msm_routing_put_audio_mixer),
  15507. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15509. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15510. msm_routing_put_audio_mixer),
  15511. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15512. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15513. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15514. msm_routing_put_audio_mixer),
  15515. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15516. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15517. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15518. msm_routing_put_audio_mixer),
  15519. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15520. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15521. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15522. msm_routing_put_audio_mixer),
  15523. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15524. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15525. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15526. msm_routing_put_audio_mixer),
  15527. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15528. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15529. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15530. msm_routing_put_audio_mixer),
  15531. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15532. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15533. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15534. msm_routing_put_audio_mixer),
  15535. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15536. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15537. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15538. msm_routing_get_audio_mixer,
  15539. msm_routing_put_audio_mixer),
  15540. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15542. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15543. msm_routing_get_audio_mixer,
  15544. msm_routing_put_audio_mixer),
  15545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15547. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15548. msm_routing_get_audio_mixer,
  15549. msm_routing_put_audio_mixer),
  15550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15552. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15553. msm_routing_get_audio_mixer,
  15554. msm_routing_put_audio_mixer),
  15555. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15556. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15557. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15558. msm_routing_get_audio_mixer,
  15559. msm_routing_put_audio_mixer),
  15560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15562. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  15563. msm_routing_get_audio_mixer,
  15564. msm_routing_put_audio_mixer),
  15565. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15566. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15567. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15568. msm_routing_put_audio_mixer),
  15569. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15570. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15571. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15572. msm_routing_put_audio_mixer),
  15573. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15574. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15575. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  15576. msm_routing_put_audio_mixer),
  15577. };
  15578. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  15579. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15580. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15581. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15582. msm_routing_put_audio_mixer),
  15583. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15584. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15585. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15586. msm_routing_put_audio_mixer),
  15587. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15588. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15589. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15590. msm_routing_put_audio_mixer),
  15591. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15592. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15593. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15594. msm_routing_put_audio_mixer),
  15595. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15596. MSM_BACKEND_DAI_INT_FM_TX,
  15597. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15598. msm_routing_put_audio_mixer),
  15599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15600. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15601. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15602. msm_routing_put_audio_mixer),
  15603. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15604. MSM_BACKEND_DAI_AFE_PCM_TX,
  15605. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15606. msm_routing_put_audio_mixer),
  15607. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15608. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15609. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15610. msm_routing_put_audio_mixer),
  15611. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15612. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15613. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15614. msm_routing_put_audio_mixer),
  15615. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15616. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15617. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15618. msm_routing_put_audio_mixer),
  15619. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15620. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15621. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15622. msm_routing_put_audio_mixer),
  15623. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15624. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15625. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15626. msm_routing_put_audio_mixer),
  15627. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15628. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15629. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15630. msm_routing_put_audio_mixer),
  15631. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15632. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15633. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15634. msm_routing_put_audio_mixer),
  15635. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15636. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15637. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15638. msm_routing_put_audio_mixer),
  15639. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15640. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15641. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15642. msm_routing_put_audio_mixer),
  15643. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15644. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15645. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15646. msm_routing_put_audio_mixer),
  15647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  15649. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15650. msm_routing_put_audio_mixer),
  15651. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15652. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15653. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15654. msm_routing_get_audio_mixer,
  15655. msm_routing_put_audio_mixer),
  15656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15658. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15659. msm_routing_get_audio_mixer,
  15660. msm_routing_put_audio_mixer),
  15661. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15662. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15663. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15664. msm_routing_get_audio_mixer,
  15665. msm_routing_put_audio_mixer),
  15666. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15667. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15668. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15669. msm_routing_get_audio_mixer,
  15670. msm_routing_put_audio_mixer),
  15671. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15673. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15674. msm_routing_get_audio_mixer,
  15675. msm_routing_put_audio_mixer),
  15676. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15678. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  15679. msm_routing_get_audio_mixer,
  15680. msm_routing_put_audio_mixer),
  15681. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15682. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15683. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15684. msm_routing_put_audio_mixer),
  15685. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15686. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15687. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15688. msm_routing_put_audio_mixer),
  15689. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15690. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15691. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  15692. msm_routing_put_audio_mixer),
  15693. };
  15694. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  15695. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15696. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  15697. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15698. msm_routing_put_audio_mixer),
  15699. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15700. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  15701. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15702. msm_routing_put_audio_mixer),
  15703. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15704. MSM_BACKEND_DAI_PRI_MI2S_TX,
  15705. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15706. msm_routing_put_audio_mixer),
  15707. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  15708. MSM_BACKEND_DAI_INT3_MI2S_TX,
  15709. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15710. msm_routing_put_audio_mixer),
  15711. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_INT_FM_TX,
  15713. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15714. msm_routing_put_audio_mixer),
  15715. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15716. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  15717. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15718. msm_routing_put_audio_mixer),
  15719. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15720. MSM_BACKEND_DAI_AFE_PCM_TX,
  15721. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15722. msm_routing_put_audio_mixer),
  15723. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  15724. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  15725. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15726. msm_routing_put_audio_mixer),
  15727. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  15728. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  15729. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15730. msm_routing_put_audio_mixer),
  15731. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  15733. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15734. msm_routing_put_audio_mixer),
  15735. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15736. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  15737. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15738. msm_routing_put_audio_mixer),
  15739. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15740. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  15741. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15742. msm_routing_put_audio_mixer),
  15743. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15744. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  15745. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15746. msm_routing_put_audio_mixer),
  15747. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15748. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  15749. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15750. msm_routing_put_audio_mixer),
  15751. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  15753. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15754. msm_routing_put_audio_mixer),
  15755. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  15756. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  15757. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15758. msm_routing_put_audio_mixer),
  15759. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  15760. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  15761. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15762. msm_routing_put_audio_mixer),
  15763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  15764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  15765. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15766. msm_routing_get_audio_mixer,
  15767. msm_routing_put_audio_mixer),
  15768. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  15769. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  15770. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15771. msm_routing_get_audio_mixer,
  15772. msm_routing_put_audio_mixer),
  15773. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  15774. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  15775. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15776. msm_routing_get_audio_mixer,
  15777. msm_routing_put_audio_mixer),
  15778. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  15779. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  15780. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15781. msm_routing_get_audio_mixer,
  15782. msm_routing_put_audio_mixer),
  15783. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  15784. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  15785. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15786. msm_routing_get_audio_mixer,
  15787. msm_routing_put_audio_mixer),
  15788. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  15789. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  15790. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  15791. msm_routing_get_audio_mixer,
  15792. msm_routing_put_audio_mixer),
  15793. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  15795. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15796. msm_routing_put_audio_mixer),
  15797. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  15798. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  15799. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15800. msm_routing_put_audio_mixer),
  15801. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  15802. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  15803. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  15804. msm_routing_put_audio_mixer),
  15805. };
  15806. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  15807. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15808. MSM_BACKEND_DAI_PRI_I2S_RX,
  15809. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15810. msm_routing_put_voice_mixer),
  15811. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15812. MSM_BACKEND_DAI_PRI_I2S_RX,
  15813. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15814. msm_routing_put_voice_mixer),
  15815. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15816. MSM_BACKEND_DAI_PRI_I2S_RX,
  15817. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15818. msm_routing_put_voice_mixer),
  15819. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15820. MSM_BACKEND_DAI_PRI_I2S_RX,
  15821. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15822. msm_routing_put_voice_mixer),
  15823. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_PRI_I2S_RX,
  15825. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15826. msm_routing_put_voice_mixer),
  15827. };
  15828. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  15829. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15830. MSM_BACKEND_DAI_SEC_I2S_RX,
  15831. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15832. msm_routing_put_voice_mixer),
  15833. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_SEC_I2S_RX,
  15835. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15836. msm_routing_put_voice_mixer),
  15837. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15838. MSM_BACKEND_DAI_SEC_I2S_RX,
  15839. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15840. msm_routing_put_voice_mixer),
  15841. };
  15842. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  15843. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15844. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15845. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15846. msm_routing_put_voice_mixer),
  15847. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15848. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15849. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15850. msm_routing_put_voice_mixer),
  15851. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15852. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15853. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15854. msm_routing_put_voice_mixer),
  15855. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15856. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15857. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15858. msm_routing_put_voice_mixer),
  15859. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15862. msm_routing_put_voice_mixer),
  15863. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15865. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15866. msm_routing_put_voice_mixer),
  15867. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15868. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  15869. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15870. msm_routing_put_voice_mixer),
  15871. };
  15872. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  15873. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15875. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15876. msm_routing_put_voice_mixer),
  15877. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15878. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15879. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15880. msm_routing_put_voice_mixer),
  15881. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15882. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15883. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15884. msm_routing_put_voice_mixer),
  15885. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15886. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15887. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15888. msm_routing_put_voice_mixer),
  15889. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15890. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15891. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15892. msm_routing_put_voice_mixer),
  15893. };
  15894. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  15895. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15896. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15897. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15898. msm_routing_put_voice_mixer),
  15899. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15901. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15902. msm_routing_put_voice_mixer),
  15903. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15905. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15906. msm_routing_put_voice_mixer),
  15907. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15908. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15909. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15910. msm_routing_put_voice_mixer),
  15911. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15913. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15914. msm_routing_put_voice_mixer),
  15915. };
  15916. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  15917. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15918. MSM_BACKEND_DAI_USB_RX,
  15919. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15920. msm_routing_put_voice_mixer),
  15921. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15922. MSM_BACKEND_DAI_USB_RX,
  15923. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15924. msm_routing_put_voice_mixer),
  15925. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_USB_RX,
  15927. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15928. msm_routing_put_voice_mixer),
  15929. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15930. MSM_BACKEND_DAI_USB_RX,
  15931. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15932. msm_routing_put_voice_mixer),
  15933. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15934. MSM_BACKEND_DAI_USB_RX,
  15935. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15936. msm_routing_put_voice_mixer),
  15937. };
  15938. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  15939. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15941. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15942. msm_routing_put_voice_mixer),
  15943. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15944. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15945. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15946. msm_routing_put_voice_mixer),
  15947. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15948. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15949. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15950. msm_routing_put_voice_mixer),
  15951. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15952. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15953. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15954. msm_routing_put_voice_mixer),
  15955. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15956. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15957. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15958. msm_routing_put_voice_mixer),
  15959. };
  15960. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  15961. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15962. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15963. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15964. msm_routing_put_voice_mixer),
  15965. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15967. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15968. msm_routing_put_voice_mixer),
  15969. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15970. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15971. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15972. msm_routing_put_voice_mixer),
  15973. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15974. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15975. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15976. msm_routing_put_voice_mixer),
  15977. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15978. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15979. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15980. msm_routing_put_voice_mixer),
  15981. };
  15982. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  15983. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15984. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15985. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15986. msm_routing_put_voice_mixer),
  15987. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15989. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15990. msm_routing_put_voice_mixer),
  15991. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15992. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15993. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15994. msm_routing_put_voice_mixer),
  15995. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15997. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15998. msm_routing_put_voice_mixer),
  15999. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16000. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16001. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16002. msm_routing_put_voice_mixer),
  16003. };
  16004. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  16005. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_MI2S_RX,
  16007. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16008. msm_routing_put_voice_mixer),
  16009. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16010. MSM_BACKEND_DAI_MI2S_RX,
  16011. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16012. msm_routing_put_voice_mixer),
  16013. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16014. MSM_BACKEND_DAI_MI2S_RX,
  16015. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16016. msm_routing_put_voice_mixer),
  16017. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_MI2S_RX,
  16019. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16020. msm_routing_put_voice_mixer),
  16021. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16022. MSM_BACKEND_DAI_MI2S_RX,
  16023. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16024. msm_routing_put_voice_mixer),
  16025. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_MI2S_RX,
  16027. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16028. msm_routing_put_voice_mixer),
  16029. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16030. MSM_BACKEND_DAI_MI2S_RX,
  16031. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16032. msm_routing_put_voice_mixer),
  16033. };
  16034. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  16035. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16036. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16037. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16038. msm_routing_put_voice_mixer),
  16039. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16040. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16041. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16042. msm_routing_put_voice_mixer),
  16043. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16044. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16045. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16046. msm_routing_put_voice_mixer),
  16047. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16048. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16049. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16050. msm_routing_put_voice_mixer),
  16051. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16052. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16053. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16054. msm_routing_put_voice_mixer),
  16055. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16056. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16057. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16058. msm_routing_put_voice_mixer),
  16059. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16060. MSM_BACKEND_DAI_PRI_MI2S_RX,
  16061. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16062. msm_routing_put_voice_mixer),
  16063. };
  16064. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  16065. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16066. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16067. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16068. msm_routing_put_voice_mixer),
  16069. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16070. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16071. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16072. msm_routing_put_voice_mixer),
  16073. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16074. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16075. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16076. msm_routing_put_voice_mixer),
  16077. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16079. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16080. msm_routing_put_voice_mixer),
  16081. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16082. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16083. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16084. msm_routing_put_voice_mixer),
  16085. };
  16086. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  16087. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16088. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16089. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16090. msm_routing_put_voice_mixer),
  16091. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16092. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16093. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16094. msm_routing_put_voice_mixer),
  16095. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16096. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16097. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16098. msm_routing_put_voice_mixer),
  16099. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16100. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16101. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16102. msm_routing_put_voice_mixer),
  16103. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16105. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16106. msm_routing_put_voice_mixer),
  16107. };
  16108. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  16109. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16111. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16112. msm_routing_put_voice_mixer),
  16113. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16114. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16115. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16116. msm_routing_put_voice_mixer),
  16117. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16118. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16119. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16120. msm_routing_put_voice_mixer),
  16121. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16122. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16123. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16124. msm_routing_put_voice_mixer),
  16125. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16126. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16127. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16128. msm_routing_put_voice_mixer),
  16129. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16130. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16131. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16132. msm_routing_put_voice_mixer),
  16133. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16134. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  16135. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16136. msm_routing_put_voice_mixer),
  16137. };
  16138. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  16139. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16140. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16141. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16142. msm_routing_put_voice_mixer),
  16143. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16144. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16145. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16146. msm_routing_put_voice_mixer),
  16147. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16148. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16149. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  16150. msm_routing_put_voice_mixer),
  16151. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16152. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16153. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16154. msm_routing_put_voice_mixer),
  16155. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16156. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16157. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16158. msm_routing_put_voice_mixer),
  16159. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16160. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16161. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16162. msm_routing_put_voice_mixer),
  16163. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16164. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  16165. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16166. msm_routing_put_voice_mixer),
  16167. };
  16168. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  16169. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16170. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16171. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16172. msm_routing_put_voice_mixer),
  16173. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16174. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16175. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16176. msm_routing_put_voice_stub_mixer),
  16177. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16178. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16179. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16180. msm_routing_put_voice_stub_mixer),
  16181. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16182. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16183. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16184. msm_routing_put_voice_mixer),
  16185. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16186. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16187. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16188. msm_routing_put_voice_mixer),
  16189. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16190. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16191. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16192. msm_routing_put_voice_mixer),
  16193. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16194. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  16195. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16196. msm_routing_put_voice_mixer),
  16197. };
  16198. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  16199. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16200. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16201. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16202. msm_routing_put_voice_mixer),
  16203. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16204. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16205. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16206. msm_routing_put_voice_mixer),
  16207. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16208. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16209. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16210. msm_routing_put_voice_mixer),
  16211. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16212. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16213. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16214. msm_routing_put_voice_mixer),
  16215. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16216. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  16217. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16218. msm_routing_put_voice_mixer),
  16219. };
  16220. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  16221. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16222. MSM_BACKEND_DAI_AFE_PCM_RX,
  16223. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16224. msm_routing_put_voice_mixer),
  16225. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16226. MSM_BACKEND_DAI_AFE_PCM_RX,
  16227. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16228. msm_routing_put_voice_mixer),
  16229. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16230. MSM_BACKEND_DAI_AFE_PCM_RX,
  16231. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16232. msm_routing_put_voice_mixer),
  16233. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16234. MSM_BACKEND_DAI_AFE_PCM_RX,
  16235. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16236. msm_routing_put_voice_mixer),
  16237. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16238. MSM_BACKEND_DAI_AFE_PCM_RX,
  16239. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16240. msm_routing_put_voice_mixer),
  16241. };
  16242. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  16243. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16244. MSM_BACKEND_DAI_AUXPCM_RX,
  16245. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16246. msm_routing_put_voice_mixer),
  16247. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16248. MSM_BACKEND_DAI_AUXPCM_RX,
  16249. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16250. msm_routing_put_voice_mixer),
  16251. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16252. MSM_BACKEND_DAI_AUXPCM_RX,
  16253. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16254. msm_routing_put_voice_mixer),
  16255. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16256. MSM_BACKEND_DAI_AUXPCM_RX,
  16257. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16258. msm_routing_put_voice_mixer),
  16259. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16260. MSM_BACKEND_DAI_AUXPCM_RX,
  16261. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16262. msm_routing_put_voice_mixer),
  16263. };
  16264. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  16265. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16266. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16267. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16268. msm_routing_put_voice_mixer),
  16269. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16270. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16271. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16272. msm_routing_put_voice_mixer),
  16273. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16274. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16275. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16276. msm_routing_put_voice_mixer),
  16277. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16278. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16279. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16280. msm_routing_put_voice_mixer),
  16281. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16283. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16284. msm_routing_put_voice_mixer),
  16285. };
  16286. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  16287. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16288. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16289. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16290. msm_routing_put_voice_mixer),
  16291. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16292. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16293. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16294. msm_routing_put_voice_mixer),
  16295. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16296. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16297. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16298. msm_routing_put_voice_mixer),
  16299. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16300. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16301. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16302. msm_routing_put_voice_mixer),
  16303. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16304. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16305. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16306. msm_routing_put_voice_mixer),
  16307. };
  16308. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  16309. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16310. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16311. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16312. msm_routing_put_voice_mixer),
  16313. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16314. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16315. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16316. msm_routing_put_voice_mixer),
  16317. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16318. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16319. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16320. msm_routing_put_voice_mixer),
  16321. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16323. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16324. msm_routing_put_voice_mixer),
  16325. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16326. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16327. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16328. msm_routing_put_voice_mixer),
  16329. };
  16330. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  16331. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16333. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16334. msm_routing_put_voice_mixer),
  16335. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16336. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16337. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16338. msm_routing_put_voice_mixer),
  16339. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16340. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16341. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16342. msm_routing_put_voice_mixer),
  16343. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16344. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16345. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16346. msm_routing_put_voice_mixer),
  16347. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16348. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16349. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16350. msm_routing_put_voice_mixer),
  16351. };
  16352. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  16353. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16354. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16355. msm_routing_put_voice_mixer),
  16356. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16357. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16358. msm_routing_put_voice_mixer),
  16359. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16360. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16361. msm_routing_put_voice_mixer),
  16362. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16363. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16364. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16365. msm_routing_put_voice_mixer),
  16366. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16368. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16369. msm_routing_put_voice_mixer),
  16370. };
  16371. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  16372. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16373. MSM_BACKEND_DAI_HDMI_RX,
  16374. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16375. msm_routing_put_voice_mixer),
  16376. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16377. MSM_BACKEND_DAI_HDMI_RX,
  16378. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16379. msm_routing_put_voice_mixer),
  16380. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16381. MSM_BACKEND_DAI_HDMI_RX,
  16382. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16383. msm_routing_put_voice_mixer),
  16384. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16385. MSM_BACKEND_DAI_HDMI_RX,
  16386. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16387. msm_routing_put_voice_mixer),
  16388. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16389. MSM_BACKEND_DAI_HDMI_RX,
  16390. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16391. msm_routing_put_voice_mixer),
  16392. };
  16393. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  16394. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16395. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16396. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16397. msm_routing_put_voice_mixer),
  16398. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16399. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16400. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16401. msm_routing_put_voice_mixer),
  16402. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16403. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16404. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16405. msm_routing_put_voice_mixer),
  16406. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16407. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16408. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16409. msm_routing_put_voice_mixer),
  16410. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16411. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  16412. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16413. msm_routing_put_voice_mixer),
  16414. };
  16415. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  16416. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16417. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16418. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16419. msm_routing_put_voice_mixer),
  16420. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16421. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16422. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16423. msm_routing_put_voice_mixer),
  16424. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16425. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16426. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16427. msm_routing_put_voice_mixer),
  16428. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16429. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16430. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16431. msm_routing_put_voice_mixer),
  16432. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16433. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  16434. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16435. msm_routing_put_voice_mixer),
  16436. };
  16437. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  16438. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  16440. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16441. msm_routing_put_voice_mixer),
  16442. };
  16443. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  16444. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16445. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  16446. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16447. msm_routing_put_voice_mixer),
  16448. };
  16449. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  16450. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16451. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16452. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16453. msm_routing_put_voice_mixer),
  16454. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16455. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16456. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16457. msm_routing_put_voice_mixer),
  16458. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16459. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16460. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16461. msm_routing_put_voice_mixer),
  16462. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16463. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16464. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16465. msm_routing_put_voice_mixer),
  16466. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16467. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16468. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16469. msm_routing_put_voice_mixer),
  16470. };
  16471. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  16472. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16473. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16474. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16475. msm_routing_put_voice_mixer),
  16476. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16477. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16478. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16479. msm_routing_put_voice_mixer),
  16480. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16482. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16483. msm_routing_put_voice_mixer),
  16484. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16485. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16486. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16487. msm_routing_put_voice_mixer),
  16488. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16489. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  16490. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16491. msm_routing_put_voice_mixer),
  16492. };
  16493. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  16494. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16495. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16496. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16497. msm_routing_put_voice_mixer),
  16498. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16499. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16500. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16501. msm_routing_put_voice_mixer),
  16502. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16503. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16504. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16505. msm_routing_put_voice_mixer),
  16506. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16507. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16508. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16509. msm_routing_put_voice_mixer),
  16510. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16512. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16513. msm_routing_put_voice_mixer),
  16514. };
  16515. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  16516. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16517. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16518. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16519. msm_routing_put_voice_mixer),
  16520. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16521. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16522. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16523. msm_routing_put_voice_mixer),
  16524. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16525. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16526. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16527. msm_routing_put_voice_mixer),
  16528. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16529. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16530. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16531. msm_routing_put_voice_mixer),
  16532. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  16534. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16535. msm_routing_put_voice_mixer),
  16536. };
  16537. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  16538. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16539. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16540. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16541. msm_routing_put_voice_mixer),
  16542. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16543. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16544. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16545. msm_routing_put_voice_mixer),
  16546. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16547. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16548. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16549. msm_routing_put_voice_mixer),
  16550. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16551. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16552. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16553. msm_routing_put_voice_mixer),
  16554. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  16556. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16557. msm_routing_put_voice_mixer),
  16558. };
  16559. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  16560. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16561. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16562. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16563. msm_routing_put_voice_mixer),
  16564. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16565. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16566. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16567. msm_routing_put_voice_mixer),
  16568. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16569. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16570. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16571. msm_routing_put_voice_mixer),
  16572. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16573. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16574. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16575. msm_routing_put_voice_mixer),
  16576. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  16578. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16579. msm_routing_put_voice_mixer),
  16580. };
  16581. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  16582. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16583. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16584. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16585. msm_routing_put_voice_mixer),
  16586. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16587. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16588. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16589. msm_routing_put_voice_mixer),
  16590. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16591. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16592. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16593. msm_routing_put_voice_mixer),
  16594. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16595. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16596. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16597. msm_routing_put_voice_mixer),
  16598. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  16600. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16601. msm_routing_put_voice_mixer),
  16602. };
  16603. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  16604. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16605. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16606. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16607. msm_routing_put_voice_mixer),
  16608. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16609. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16610. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16611. msm_routing_put_voice_mixer),
  16612. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16613. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16614. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16615. msm_routing_put_voice_mixer),
  16616. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16617. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16618. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16619. msm_routing_put_voice_mixer),
  16620. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  16622. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16623. msm_routing_put_voice_mixer),
  16624. };
  16625. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  16626. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16627. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16628. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16629. msm_routing_put_voice_mixer),
  16630. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16631. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16632. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16633. msm_routing_put_voice_mixer),
  16634. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16635. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16636. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16637. msm_routing_put_voice_mixer),
  16638. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16639. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16640. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16641. msm_routing_put_voice_mixer),
  16642. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  16644. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16645. msm_routing_put_voice_mixer),
  16646. };
  16647. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  16648. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16649. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16650. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16651. msm_routing_put_voice_mixer),
  16652. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16653. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16654. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16655. msm_routing_put_voice_mixer),
  16656. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16657. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16658. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16659. msm_routing_put_voice_mixer),
  16660. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16661. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16662. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16663. msm_routing_put_voice_mixer),
  16664. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  16666. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16667. msm_routing_put_voice_mixer),
  16668. };
  16669. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  16670. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16671. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16672. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16673. msm_routing_put_voice_mixer),
  16674. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16676. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16677. msm_routing_put_voice_stub_mixer),
  16678. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16679. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16680. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16681. msm_routing_put_voice_stub_mixer),
  16682. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16683. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16684. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16685. msm_routing_put_voice_mixer),
  16686. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16687. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16688. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16689. msm_routing_put_voice_mixer),
  16690. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16691. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16692. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16693. msm_routing_put_voice_mixer),
  16694. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16696. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16697. msm_routing_put_voice_mixer),
  16698. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16699. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  16700. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16701. msm_routing_put_voice_mixer),
  16702. };
  16703. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  16704. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16706. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16707. msm_routing_put_voice_mixer),
  16708. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16709. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16710. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16711. msm_routing_put_voice_stub_mixer),
  16712. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16713. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16714. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16715. msm_routing_put_voice_stub_mixer),
  16716. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16717. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16718. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16719. msm_routing_put_voice_mixer),
  16720. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16721. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16722. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16723. msm_routing_put_voice_mixer),
  16724. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16726. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16727. msm_routing_put_voice_mixer),
  16728. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16729. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16730. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16731. msm_routing_put_voice_mixer),
  16732. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16733. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  16734. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16735. msm_routing_put_voice_mixer),
  16736. };
  16737. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  16738. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16739. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16740. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16741. msm_routing_put_voice_mixer),
  16742. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16743. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16744. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16745. msm_routing_put_voice_stub_mixer),
  16746. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16747. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16748. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16749. msm_routing_put_voice_stub_mixer),
  16750. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16751. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16752. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16753. msm_routing_put_voice_mixer),
  16754. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16756. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16757. msm_routing_put_voice_mixer),
  16758. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16759. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16760. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16761. msm_routing_put_voice_mixer),
  16762. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16763. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16764. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16765. msm_routing_put_voice_mixer),
  16766. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16767. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  16768. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16769. msm_routing_put_voice_mixer),
  16770. };
  16771. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  16772. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  16773. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16774. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16775. msm_routing_put_voice_mixer),
  16776. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16778. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16779. msm_routing_put_voice_stub_mixer),
  16780. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  16781. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16782. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16783. msm_routing_put_voice_stub_mixer),
  16784. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  16785. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16786. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  16787. msm_routing_put_voice_mixer),
  16788. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  16789. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16790. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  16791. msm_routing_put_voice_mixer),
  16792. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  16793. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16794. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16795. msm_routing_put_voice_mixer),
  16796. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16797. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16798. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16799. msm_routing_put_voice_mixer),
  16800. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16801. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  16802. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16803. msm_routing_put_voice_mixer),
  16804. };
  16805. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  16806. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16807. MSM_BACKEND_DAI_EXTPROC_RX,
  16808. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16809. msm_routing_put_voice_mixer),
  16810. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16811. MSM_BACKEND_DAI_EXTPROC_RX,
  16812. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16813. msm_routing_put_voice_mixer),
  16814. };
  16815. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  16816. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16818. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16819. msm_routing_put_voice_mixer),
  16820. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16821. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16822. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16823. msm_routing_put_voice_mixer),
  16824. };
  16825. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  16826. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16827. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16828. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16829. msm_routing_put_voice_mixer),
  16830. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16831. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16832. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16833. msm_routing_put_voice_mixer),
  16834. };
  16835. static const struct snd_kcontrol_new proxy_rx_voice_mixer_controls[] = {
  16836. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_PROXY_RX,
  16838. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16839. msm_routing_put_voice_mixer),
  16840. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  16841. MSM_BACKEND_DAI_PROXY_RX,
  16842. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16843. msm_routing_put_voice_mixer),
  16844. };
  16845. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  16846. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  16847. MSM_BACKEND_DAI_PRI_I2S_TX,
  16848. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16849. msm_routing_put_voice_mixer),
  16850. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  16851. MSM_BACKEND_DAI_MI2S_TX,
  16852. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16853. msm_routing_put_voice_mixer),
  16854. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  16855. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16856. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16857. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16859. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16860. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  16861. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16862. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16863. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16864. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16865. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16866. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16867. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16868. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16869. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16870. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16871. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16872. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16873. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16874. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16875. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16877. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16878. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  16879. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16880. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16881. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16883. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16884. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  16885. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  16886. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16887. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16888. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16889. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16890. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  16891. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16892. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16893. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  16894. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16895. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16896. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  16897. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  16898. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16899. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  16900. MSM_BACKEND_DAI_USB_TX,
  16901. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  16902. msm_routing_put_voice_mixer),
  16903. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16905. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16906. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16907. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16908. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16909. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16910. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16911. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16912. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16913. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16914. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16915. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  16917. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16918. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  16919. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  16920. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16921. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  16923. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16924. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  16925. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16926. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16927. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  16928. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  16929. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16930. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  16931. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  16932. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16933. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16935. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16936. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  16937. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16938. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16939. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  16940. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  16941. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16942. SOC_DOUBLE_EXT("PROXY_TX_MMode1", SND_SOC_NOPM,
  16943. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  16944. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16945. };
  16946. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  16947. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  16948. MSM_BACKEND_DAI_PRI_I2S_TX,
  16949. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16950. msm_routing_put_voice_mixer),
  16951. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  16952. MSM_BACKEND_DAI_MI2S_TX,
  16953. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  16954. msm_routing_put_voice_mixer),
  16955. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  16956. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16957. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16958. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16960. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16961. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  16962. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16963. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16964. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16965. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16966. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16967. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16968. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16969. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16970. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16971. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16972. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16973. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16975. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16976. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16977. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16978. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16979. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16981. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16982. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  16983. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16984. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16985. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  16986. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  16987. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16988. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16990. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16991. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16993. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16994. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  16995. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16996. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16997. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  16998. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  16999. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17000. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  17001. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  17002. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17003. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  17005. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17006. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  17007. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  17008. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17009. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  17010. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  17011. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  17013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  17014. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17015. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  17016. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  17017. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17018. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  17019. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  17020. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17021. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  17022. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  17023. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17024. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  17025. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  17026. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17027. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  17028. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  17029. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17030. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  17031. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17032. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17033. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  17034. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17035. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17036. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  17037. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  17038. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17039. SOC_DOUBLE_EXT("PROXY_TX_MMode2", SND_SOC_NOPM,
  17040. MSM_BACKEND_DAI_PROXY_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  17041. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17042. };
  17043. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  17044. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  17045. MSM_BACKEND_DAI_PRI_I2S_TX,
  17046. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17047. msm_routing_put_voice_mixer),
  17048. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  17049. MSM_BACKEND_DAI_MI2S_TX,
  17050. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17051. msm_routing_put_voice_mixer),
  17052. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  17053. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17054. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17055. msm_routing_put_voice_mixer),
  17056. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  17057. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17058. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17059. msm_routing_put_voice_mixer),
  17060. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_AFE_PCM_TX,
  17062. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17063. msm_routing_put_voice_mixer),
  17064. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17065. MSM_BACKEND_DAI_AUXPCM_TX,
  17066. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17067. msm_routing_put_voice_mixer),
  17068. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17069. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17070. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17071. msm_routing_put_voice_mixer),
  17072. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17073. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17074. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17075. msm_routing_put_voice_mixer),
  17076. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17077. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17078. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17079. msm_routing_put_voice_mixer),
  17080. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17081. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17082. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17083. msm_routing_put_voice_mixer),
  17084. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  17085. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17086. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17087. msm_routing_put_voice_mixer),
  17088. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  17089. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17090. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17091. msm_routing_put_voice_mixer),
  17092. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  17093. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  17094. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17095. msm_routing_put_voice_mixer),
  17096. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  17097. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17098. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17099. msm_routing_put_voice_mixer),
  17100. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  17101. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17102. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17103. msm_routing_put_voice_mixer),
  17104. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  17105. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17106. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17107. msm_routing_put_voice_mixer),
  17108. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  17109. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17110. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17111. msm_routing_put_voice_mixer),
  17112. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  17113. MSM_BACKEND_DAI_USB_TX,
  17114. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17115. msm_routing_put_voice_mixer),
  17116. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  17117. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  17118. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17119. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  17121. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17122. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  17123. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  17124. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17125. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  17127. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17128. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  17129. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  17130. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17131. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  17132. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  17133. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17134. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  17135. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  17136. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  17138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  17139. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17140. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  17141. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  17142. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17143. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  17144. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  17145. msm_routing_put_voice_mixer),
  17146. };
  17147. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  17148. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17149. MSM_BACKEND_DAI_EXTPROC_TX,
  17150. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17151. msm_routing_put_voice_stub_mixer),
  17152. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17153. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17154. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17155. msm_routing_put_voice_stub_mixer),
  17156. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17157. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17158. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17159. msm_routing_put_voice_stub_mixer),
  17160. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17161. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17162. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17163. msm_routing_put_voice_stub_mixer),
  17164. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17165. MSM_BACKEND_DAI_MI2S_TX,
  17166. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17167. msm_routing_put_voice_stub_mixer),
  17168. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17169. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17170. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17171. msm_routing_put_voice_stub_mixer),
  17172. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17173. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17174. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17175. msm_routing_put_voice_stub_mixer),
  17176. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17177. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17178. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17179. msm_routing_put_voice_stub_mixer),
  17180. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17181. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17182. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17183. msm_routing_put_voice_stub_mixer),
  17184. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17185. MSM_BACKEND_DAI_AUXPCM_TX,
  17186. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17187. msm_routing_put_voice_stub_mixer),
  17188. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17189. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17190. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17191. msm_routing_put_voice_stub_mixer),
  17192. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17194. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17195. msm_routing_put_voice_stub_mixer),
  17196. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17197. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17198. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17199. msm_routing_put_voice_stub_mixer),
  17200. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17201. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17202. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17203. msm_routing_put_voice_stub_mixer),
  17204. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17205. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17206. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17207. msm_routing_put_voice_stub_mixer),
  17208. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17209. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17210. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17211. msm_routing_put_voice_stub_mixer),
  17212. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17214. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17215. msm_routing_put_voice_stub_mixer),
  17216. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17217. MSM_BACKEND_DAI_AFE_PCM_TX,
  17218. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17219. msm_routing_put_voice_stub_mixer),
  17220. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17221. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17222. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17223. msm_routing_put_voice_stub_mixer),
  17224. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17225. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17226. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17227. msm_routing_put_voice_stub_mixer),
  17228. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17229. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17230. 1, 0, msm_routing_get_voice_stub_mixer,
  17231. msm_routing_put_voice_stub_mixer),
  17232. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17233. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17234. 1, 0, msm_routing_get_voice_stub_mixer,
  17235. msm_routing_put_voice_stub_mixer),
  17236. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17237. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17238. 1, 0, msm_routing_get_voice_stub_mixer,
  17239. msm_routing_put_voice_stub_mixer),
  17240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  17242. 1, 0, msm_routing_get_voice_stub_mixer,
  17243. msm_routing_put_voice_stub_mixer),
  17244. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17245. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  17246. 1, 0, msm_routing_get_voice_stub_mixer,
  17247. msm_routing_put_voice_stub_mixer),
  17248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  17250. 1, 0, msm_routing_get_voice_stub_mixer,
  17251. msm_routing_put_voice_stub_mixer),
  17252. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17253. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  17254. 1, 0, msm_routing_get_voice_stub_mixer,
  17255. msm_routing_put_voice_stub_mixer),
  17256. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17257. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  17258. 1, 0, msm_routing_get_voice_stub_mixer,
  17259. msm_routing_put_voice_stub_mixer),
  17260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  17262. 1, 0, msm_routing_get_voice_stub_mixer,
  17263. msm_routing_put_voice_stub_mixer),
  17264. };
  17265. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  17266. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17267. MSM_BACKEND_DAI_EXTPROC_TX,
  17268. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17269. msm_routing_put_voice_stub_mixer),
  17270. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17271. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17272. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17273. msm_routing_put_voice_stub_mixer),
  17274. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17275. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17276. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17277. msm_routing_put_voice_stub_mixer),
  17278. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17279. MSM_BACKEND_DAI_AUXPCM_TX,
  17280. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17281. msm_routing_put_voice_stub_mixer),
  17282. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17283. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17284. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17285. msm_routing_put_voice_stub_mixer),
  17286. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17287. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17288. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17289. msm_routing_put_voice_stub_mixer),
  17290. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17291. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17292. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17293. msm_routing_put_voice_stub_mixer),
  17294. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17295. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17296. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17297. msm_routing_put_voice_stub_mixer),
  17298. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17299. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17300. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17301. msm_routing_put_voice_stub_mixer),
  17302. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17303. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17304. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17305. msm_routing_put_voice_stub_mixer),
  17306. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17307. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17308. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17309. msm_routing_put_voice_stub_mixer),
  17310. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17311. MSM_BACKEND_DAI_AFE_PCM_TX,
  17312. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17313. msm_routing_put_voice_stub_mixer),
  17314. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17316. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17317. msm_routing_put_voice_stub_mixer),
  17318. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17319. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17320. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17321. msm_routing_put_voice_stub_mixer),
  17322. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17323. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17324. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17325. msm_routing_put_voice_stub_mixer),
  17326. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17327. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17328. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17329. msm_routing_put_voice_stub_mixer),
  17330. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17331. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17332. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17333. msm_routing_put_voice_stub_mixer),
  17334. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17335. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17336. 1, 0, msm_routing_get_voice_stub_mixer,
  17337. msm_routing_put_voice_stub_mixer),
  17338. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17339. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17340. 1, 0, msm_routing_get_voice_stub_mixer,
  17341. msm_routing_put_voice_stub_mixer),
  17342. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17343. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17344. 1, 0, msm_routing_get_voice_stub_mixer,
  17345. msm_routing_put_voice_stub_mixer),
  17346. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17347. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  17348. 1, 0, msm_routing_get_voice_stub_mixer,
  17349. msm_routing_put_voice_stub_mixer),
  17350. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17351. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  17352. 1, 0, msm_routing_get_voice_stub_mixer,
  17353. msm_routing_put_voice_stub_mixer),
  17354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  17356. 1, 0, msm_routing_get_voice_stub_mixer,
  17357. msm_routing_put_voice_stub_mixer),
  17358. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17359. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  17360. 1, 0, msm_routing_get_voice_stub_mixer,
  17361. msm_routing_put_voice_stub_mixer),
  17362. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17363. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  17364. 1, 0, msm_routing_get_voice_stub_mixer,
  17365. msm_routing_put_voice_stub_mixer),
  17366. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17367. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  17368. 1, 0, msm_routing_get_voice_stub_mixer,
  17369. msm_routing_put_voice_stub_mixer),
  17370. };
  17371. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  17372. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  17373. MSM_BACKEND_DAI_EXTPROC_TX,
  17374. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17375. msm_routing_put_voice_stub_mixer),
  17376. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17377. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  17378. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17379. msm_routing_put_voice_stub_mixer),
  17380. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  17381. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  17382. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17383. msm_routing_put_voice_stub_mixer),
  17384. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17385. MSM_BACKEND_DAI_AUXPCM_TX,
  17386. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17387. msm_routing_put_voice_stub_mixer),
  17388. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17389. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17390. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17391. msm_routing_put_voice_stub_mixer),
  17392. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17393. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17394. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17395. msm_routing_put_voice_stub_mixer),
  17396. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17397. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17398. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17399. msm_routing_put_voice_stub_mixer),
  17400. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17401. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17402. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17403. msm_routing_put_voice_stub_mixer),
  17404. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17405. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17406. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17407. msm_routing_put_voice_stub_mixer),
  17408. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17409. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17410. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17411. msm_routing_put_voice_stub_mixer),
  17412. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  17413. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  17414. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17415. msm_routing_put_voice_stub_mixer),
  17416. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17417. MSM_BACKEND_DAI_AFE_PCM_TX,
  17418. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17419. msm_routing_put_voice_stub_mixer),
  17420. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17421. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17422. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17423. msm_routing_put_voice_stub_mixer),
  17424. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17425. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  17426. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17427. msm_routing_put_voice_stub_mixer),
  17428. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17429. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17430. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17431. msm_routing_put_voice_stub_mixer),
  17432. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17433. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17434. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  17435. msm_routing_put_voice_stub_mixer),
  17436. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17437. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17438. 1, 0, msm_routing_get_voice_stub_mixer,
  17439. msm_routing_put_voice_stub_mixer),
  17440. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17442. 1, 0, msm_routing_get_voice_stub_mixer,
  17443. msm_routing_put_voice_stub_mixer),
  17444. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  17445. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17446. 1, 0, msm_routing_get_voice_stub_mixer,
  17447. msm_routing_put_voice_stub_mixer),
  17448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  17449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  17450. 1, 0, msm_routing_get_voice_stub_mixer,
  17451. msm_routing_put_voice_stub_mixer),
  17452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  17453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  17454. 1, 0, msm_routing_get_voice_stub_mixer,
  17455. msm_routing_put_voice_stub_mixer),
  17456. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  17457. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  17458. 1, 0, msm_routing_get_voice_stub_mixer,
  17459. msm_routing_put_voice_stub_mixer),
  17460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  17462. 1, 0, msm_routing_get_voice_stub_mixer,
  17463. msm_routing_put_voice_stub_mixer),
  17464. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  17465. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  17466. 1, 0, msm_routing_get_voice_stub_mixer,
  17467. msm_routing_put_voice_stub_mixer),
  17468. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  17469. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  17470. 1, 0, msm_routing_get_voice_stub_mixer,
  17471. msm_routing_put_voice_stub_mixer),
  17472. };
  17473. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  17474. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  17475. MSM_BACKEND_DAI_PRI_I2S_TX,
  17476. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17477. msm_routing_put_voice_mixer),
  17478. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  17480. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17481. msm_routing_put_voice_mixer),
  17482. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  17483. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  17484. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  17485. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17486. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  17487. MSM_BACKEND_DAI_AFE_PCM_TX,
  17488. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17489. msm_routing_put_voice_mixer),
  17490. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17491. MSM_BACKEND_DAI_AUXPCM_TX,
  17492. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17493. msm_routing_put_voice_mixer),
  17494. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17495. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  17496. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17497. msm_routing_put_voice_mixer),
  17498. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  17500. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17501. msm_routing_put_voice_mixer),
  17502. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17503. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  17504. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17505. msm_routing_put_voice_mixer),
  17506. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17507. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  17508. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17509. msm_routing_put_voice_mixer),
  17510. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  17511. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  17512. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17513. msm_routing_put_voice_mixer),
  17514. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  17515. MSM_BACKEND_DAI_MI2S_TX,
  17516. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17517. msm_routing_put_voice_mixer),
  17518. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17519. MSM_BACKEND_DAI_PRI_MI2S_TX,
  17520. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17521. msm_routing_put_voice_mixer),
  17522. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  17524. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17525. msm_routing_put_voice_mixer),
  17526. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  17527. MSM_BACKEND_DAI_INT3_MI2S_TX,
  17528. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17529. msm_routing_put_voice_mixer),
  17530. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  17531. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  17532. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17533. msm_routing_put_voice_mixer),
  17534. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  17535. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  17536. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17537. msm_routing_put_voice_mixer),
  17538. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  17539. MSM_BACKEND_DAI_USB_TX,
  17540. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  17541. msm_routing_put_voice_mixer),
  17542. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17544. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17545. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17546. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17547. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17548. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17549. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17550. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17551. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  17552. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  17553. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  17555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  17556. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  17559. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17560. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  17561. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  17562. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17563. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  17564. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  17565. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17566. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  17567. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  17568. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  17569. };
  17570. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  17571. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17572. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17573. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17574. msm_routing_put_port_mixer),
  17575. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17576. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17577. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17578. msm_routing_put_port_mixer),
  17579. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17580. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17581. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17582. msm_routing_put_port_mixer),
  17583. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17584. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17585. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17586. msm_routing_put_port_mixer),
  17587. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17588. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17589. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17590. msm_routing_put_port_mixer),
  17591. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17592. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17593. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17597. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17598. msm_routing_put_port_mixer),
  17599. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17600. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17601. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17602. msm_routing_put_port_mixer),
  17603. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17604. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17605. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17606. msm_routing_put_port_mixer),
  17607. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17608. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17609. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17610. msm_routing_put_port_mixer),
  17611. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17612. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17613. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_INT0_MI2S_RX,
  17617. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17618. msm_routing_put_port_mixer),
  17619. };
  17620. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  17621. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17622. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17623. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17624. msm_routing_put_port_mixer),
  17625. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17627. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17631. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17632. msm_routing_put_port_mixer),
  17633. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17634. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17635. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17636. msm_routing_put_port_mixer),
  17637. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17639. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17640. msm_routing_put_port_mixer),
  17641. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17642. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17643. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17644. msm_routing_put_port_mixer),
  17645. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  17646. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17647. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17648. msm_routing_put_port_mixer),
  17649. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17651. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17652. msm_routing_put_port_mixer),
  17653. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17654. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17655. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17658. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17659. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17660. msm_routing_put_port_mixer),
  17661. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17662. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17663. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17664. msm_routing_put_port_mixer),
  17665. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17666. MSM_BACKEND_DAI_INT4_MI2S_RX,
  17667. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. };
  17670. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  17671. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17672. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17673. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17674. msm_routing_put_port_mixer),
  17675. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17676. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17677. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17681. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17682. msm_routing_put_port_mixer),
  17683. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17684. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  17685. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. };
  17688. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  17689. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17690. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17691. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17692. msm_routing_put_port_mixer),
  17693. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17694. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17695. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17696. msm_routing_put_port_mixer),
  17697. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17699. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17700. msm_routing_put_port_mixer),
  17701. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17702. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  17703. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17704. msm_routing_put_port_mixer),
  17705. };
  17706. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_port_mixer_controls[] = {
  17707. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17709. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  17710. msm_routing_put_port_mixer),
  17711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  17712. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17713. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  17714. msm_routing_put_port_mixer),
  17715. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17716. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17717. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17718. msm_routing_put_port_mixer),
  17719. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17720. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  17721. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17722. msm_routing_put_port_mixer),
  17723. };
  17724. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  17725. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17726. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17727. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17728. msm_routing_put_port_mixer),
  17729. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17730. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17731. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17732. msm_routing_put_port_mixer),
  17733. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17734. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17735. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17736. msm_routing_put_port_mixer),
  17737. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17738. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17739. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17740. msm_routing_put_port_mixer),
  17741. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17742. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17743. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17744. msm_routing_put_port_mixer),
  17745. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17746. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17747. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17748. msm_routing_put_port_mixer),
  17749. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17750. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17751. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17752. msm_routing_put_port_mixer),
  17753. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17754. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17755. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17756. msm_routing_put_port_mixer),
  17757. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17758. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17759. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17760. msm_routing_put_port_mixer),
  17761. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17762. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17763. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17764. msm_routing_put_port_mixer),
  17765. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17766. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17767. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17768. msm_routing_put_port_mixer),
  17769. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17770. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17771. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17772. msm_routing_put_port_mixer),
  17773. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17774. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17775. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17776. msm_routing_put_port_mixer),
  17777. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17778. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17779. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17780. msm_routing_put_port_mixer),
  17781. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17782. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17783. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17784. msm_routing_put_port_mixer),
  17785. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17786. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17787. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17788. msm_routing_put_port_mixer),
  17789. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17791. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17792. msm_routing_put_port_mixer),
  17793. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17794. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17795. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17796. msm_routing_put_port_mixer),
  17797. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17798. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17799. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17803. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17804. msm_routing_put_port_mixer),
  17805. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  17806. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17807. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  17810. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17811. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17812. msm_routing_put_port_mixer),
  17813. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  17814. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17815. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17816. msm_routing_put_port_mixer),
  17817. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  17818. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17819. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  17822. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17823. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  17824. msm_routing_put_port_mixer),
  17825. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  17826. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  17827. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. };
  17830. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  17831. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17832. MSM_BACKEND_DAI_AUXPCM_RX,
  17833. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17834. msm_routing_put_port_mixer),
  17835. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17836. MSM_BACKEND_DAI_AUXPCM_RX,
  17837. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_AUXPCM_RX,
  17841. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17842. msm_routing_put_port_mixer),
  17843. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17844. MSM_BACKEND_DAI_AUXPCM_RX,
  17845. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17846. msm_routing_put_port_mixer),
  17847. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17848. MSM_BACKEND_DAI_AUXPCM_RX,
  17849. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17850. msm_routing_put_port_mixer),
  17851. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17852. MSM_BACKEND_DAI_AUXPCM_RX,
  17853. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17854. msm_routing_put_port_mixer),
  17855. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17856. MSM_BACKEND_DAI_AUXPCM_RX,
  17857. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. };
  17860. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  17861. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17862. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17863. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17864. msm_routing_put_port_mixer),
  17865. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17866. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17867. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17871. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17874. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  17875. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17876. msm_routing_put_port_mixer),
  17877. };
  17878. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  17879. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17880. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17881. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17882. msm_routing_put_port_mixer),
  17883. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17884. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17885. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17886. msm_routing_put_port_mixer),
  17887. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17888. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  17889. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17890. msm_routing_put_port_mixer),
  17891. };
  17892. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  17893. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17895. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17896. msm_routing_put_port_mixer),
  17897. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17898. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17899. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17900. msm_routing_put_port_mixer),
  17901. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17902. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  17903. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17904. msm_routing_put_port_mixer),
  17905. };
  17906. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  17907. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17908. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17909. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17910. msm_routing_put_port_mixer),
  17911. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17912. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17913. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17914. msm_routing_put_port_mixer),
  17915. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17916. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  17917. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17918. msm_routing_put_port_mixer),
  17919. };
  17920. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  17921. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  17922. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17923. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17924. msm_routing_put_port_mixer),
  17925. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17926. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17927. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17928. msm_routing_put_port_mixer),
  17929. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17930. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  17931. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. };
  17934. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  17935. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17936. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17937. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17938. msm_routing_put_port_mixer),
  17939. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17940. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17941. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  17942. msm_routing_put_port_mixer),
  17943. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17944. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17945. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17946. msm_routing_put_port_mixer),
  17947. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17948. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17949. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17950. msm_routing_put_port_mixer),
  17951. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17953. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17954. msm_routing_put_port_mixer),
  17955. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  17956. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  17957. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17958. msm_routing_put_port_mixer),
  17959. };
  17960. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  17961. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17963. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  17964. msm_routing_put_port_mixer),
  17965. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17966. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17967. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17968. msm_routing_put_port_mixer),
  17969. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  17970. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17971. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  17972. msm_routing_put_port_mixer),
  17973. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  17974. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17975. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  17976. msm_routing_put_port_mixer),
  17977. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  17978. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  17979. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  17980. msm_routing_put_port_mixer),
  17981. };
  17982. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  17983. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17984. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17985. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17986. msm_routing_put_port_mixer),
  17987. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17988. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17989. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17993. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17994. msm_routing_put_port_mixer),
  17995. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  17996. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  17997. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  17998. msm_routing_put_port_mixer),
  17999. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18000. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18001. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18002. msm_routing_put_port_mixer),
  18003. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18004. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18005. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18006. msm_routing_put_port_mixer),
  18007. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18008. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18009. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18010. msm_routing_put_port_mixer),
  18011. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18012. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18013. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18014. msm_routing_put_port_mixer),
  18015. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18016. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18017. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18018. msm_routing_put_port_mixer),
  18019. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18020. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18021. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18022. msm_routing_put_port_mixer),
  18023. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18024. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18025. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18026. msm_routing_put_port_mixer),
  18027. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18028. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18029. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  18030. msm_routing_put_port_mixer),
  18031. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  18032. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  18033. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. };
  18036. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  18037. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18038. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  18039. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18040. msm_routing_put_port_mixer),
  18041. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18042. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  18043. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18044. msm_routing_put_port_mixer),
  18045. };
  18046. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  18047. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18048. MSM_BACKEND_DAI_AFE_PCM_RX,
  18049. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18050. msm_routing_put_port_mixer),
  18051. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18052. MSM_BACKEND_DAI_AFE_PCM_RX,
  18053. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18054. msm_routing_put_port_mixer),
  18055. };
  18056. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  18057. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18058. MSM_BACKEND_DAI_HDMI_RX,
  18059. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18060. msm_routing_put_port_mixer),
  18061. };
  18062. static const struct snd_kcontrol_new hdmi_rx_ms_port_mixer_controls[] = {
  18063. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18064. MSM_BACKEND_DAI_HDMI_RX_MS,
  18065. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18066. msm_routing_put_port_mixer),
  18067. };
  18068. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  18069. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18070. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  18071. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18072. msm_routing_put_port_mixer),
  18073. };
  18074. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  18075. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18076. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  18077. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18078. msm_routing_put_port_mixer),
  18079. };
  18080. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  18081. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18082. MSM_BACKEND_DAI_SEC_I2S_RX,
  18083. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18084. msm_routing_put_port_mixer),
  18085. };
  18086. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  18087. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  18088. MSM_BACKEND_DAI_MI2S_RX,
  18089. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  18090. msm_routing_put_port_mixer),
  18091. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  18092. MSM_BACKEND_DAI_MI2S_RX,
  18093. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18094. msm_routing_put_port_mixer),
  18095. };
  18096. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  18097. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18098. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18099. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18100. msm_routing_put_port_mixer),
  18101. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18102. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18103. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18104. msm_routing_put_port_mixer),
  18105. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18106. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18107. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18108. msm_routing_put_port_mixer),
  18109. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18110. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18111. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18115. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  18116. msm_routing_put_port_mixer),
  18117. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18118. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18119. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18120. msm_routing_put_port_mixer),
  18121. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18122. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18123. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18124. msm_routing_put_port_mixer),
  18125. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18126. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18127. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18128. msm_routing_put_port_mixer),
  18129. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18130. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18131. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18132. msm_routing_put_port_mixer),
  18133. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18134. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18135. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18136. msm_routing_put_port_mixer),
  18137. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_PRI_MI2S_RX,
  18139. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18140. msm_routing_put_port_mixer),
  18141. };
  18142. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  18143. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  18144. MSM_BACKEND_DAI_USB_RX,
  18145. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. };
  18148. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  18149. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18150. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18151. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18152. msm_routing_put_port_mixer),
  18153. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18154. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18155. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18159. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18160. msm_routing_put_port_mixer),
  18161. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18162. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18163. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18164. msm_routing_put_port_mixer),
  18165. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18166. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18167. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18168. msm_routing_put_port_mixer),
  18169. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18170. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18171. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18172. msm_routing_put_port_mixer),
  18173. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18174. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18175. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18179. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18180. msm_routing_put_port_mixer),
  18181. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18182. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18183. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18184. msm_routing_put_port_mixer),
  18185. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18186. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  18187. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18188. msm_routing_put_port_mixer),
  18189. };
  18190. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  18191. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18192. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18193. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18194. msm_routing_put_port_mixer),
  18195. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18196. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18197. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18198. msm_routing_put_port_mixer),
  18199. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18200. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18201. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18202. msm_routing_put_port_mixer),
  18203. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18204. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18205. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18206. msm_routing_put_port_mixer),
  18207. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18208. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18209. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18210. msm_routing_put_port_mixer),
  18211. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18212. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18213. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18214. msm_routing_put_port_mixer),
  18215. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18216. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18217. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18218. msm_routing_put_port_mixer),
  18219. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18220. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  18221. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18222. msm_routing_put_port_mixer),
  18223. };
  18224. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  18225. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18226. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18227. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18228. msm_routing_put_port_mixer),
  18229. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18230. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18231. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18232. msm_routing_put_port_mixer),
  18233. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18234. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18235. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18236. msm_routing_put_port_mixer),
  18237. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18238. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18239. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18240. msm_routing_put_port_mixer),
  18241. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18242. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18243. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18246. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18247. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18248. msm_routing_put_port_mixer),
  18249. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18250. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18251. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18252. msm_routing_put_port_mixer),
  18253. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18254. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  18255. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18256. msm_routing_put_port_mixer),
  18257. };
  18258. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  18259. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18260. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18261. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18262. msm_routing_get_port_mixer,
  18263. msm_routing_put_port_mixer),
  18264. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18265. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18266. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18267. msm_routing_get_port_mixer,
  18268. msm_routing_put_port_mixer),
  18269. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18270. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18271. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18272. msm_routing_get_port_mixer,
  18273. msm_routing_put_port_mixer),
  18274. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18275. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18276. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18277. msm_routing_get_port_mixer,
  18278. msm_routing_put_port_mixer),
  18279. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18280. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18281. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18282. msm_routing_get_port_mixer,
  18283. msm_routing_put_port_mixer),
  18284. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18285. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18286. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18287. msm_routing_get_port_mixer,
  18288. msm_routing_put_port_mixer),
  18289. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18290. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18291. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18292. msm_routing_get_port_mixer,
  18293. msm_routing_put_port_mixer),
  18294. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18295. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18296. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18297. msm_routing_get_port_mixer,
  18298. msm_routing_put_port_mixer),
  18299. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18300. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18301. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18302. msm_routing_get_port_mixer,
  18303. msm_routing_put_port_mixer),
  18304. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18305. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18306. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18307. msm_routing_get_port_mixer,
  18308. msm_routing_put_port_mixer),
  18309. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18310. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18311. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18312. msm_routing_get_port_mixer,
  18313. msm_routing_put_port_mixer),
  18314. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18315. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18316. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18317. msm_routing_get_port_mixer,
  18318. msm_routing_put_port_mixer),
  18319. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18320. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18321. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18322. msm_routing_get_port_mixer,
  18323. msm_routing_put_port_mixer),
  18324. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18325. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18326. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18327. msm_routing_get_port_mixer,
  18328. msm_routing_put_port_mixer),
  18329. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18330. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18331. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18332. msm_routing_get_port_mixer,
  18333. msm_routing_put_port_mixer),
  18334. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18335. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18336. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18337. msm_routing_get_port_mixer,
  18338. msm_routing_put_port_mixer),
  18339. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18340. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18341. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18342. msm_routing_get_port_mixer,
  18343. msm_routing_put_port_mixer),
  18344. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18345. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18346. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18347. msm_routing_get_port_mixer,
  18348. msm_routing_put_port_mixer),
  18349. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18350. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18351. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18352. msm_routing_get_port_mixer,
  18353. msm_routing_put_port_mixer),
  18354. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18355. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18356. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18357. msm_routing_get_port_mixer,
  18358. msm_routing_put_port_mixer),
  18359. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18360. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18361. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18362. msm_routing_get_port_mixer,
  18363. msm_routing_put_port_mixer),
  18364. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18365. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18366. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18367. msm_routing_get_port_mixer,
  18368. msm_routing_put_port_mixer),
  18369. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18370. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18371. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18372. msm_routing_get_port_mixer,
  18373. msm_routing_put_port_mixer),
  18374. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18375. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  18376. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18377. msm_routing_get_port_mixer,
  18378. msm_routing_put_port_mixer),
  18379. };
  18380. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  18381. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18382. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18383. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18384. msm_routing_get_port_mixer,
  18385. msm_routing_put_port_mixer),
  18386. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18387. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18388. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18389. msm_routing_get_port_mixer,
  18390. msm_routing_put_port_mixer),
  18391. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18392. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18393. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18394. msm_routing_get_port_mixer,
  18395. msm_routing_put_port_mixer),
  18396. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18397. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18398. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18399. msm_routing_get_port_mixer,
  18400. msm_routing_put_port_mixer),
  18401. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18402. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18403. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18404. msm_routing_get_port_mixer,
  18405. msm_routing_put_port_mixer),
  18406. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18407. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18408. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18409. msm_routing_get_port_mixer,
  18410. msm_routing_put_port_mixer),
  18411. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18412. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18413. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18414. msm_routing_get_port_mixer,
  18415. msm_routing_put_port_mixer),
  18416. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18417. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18418. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18419. msm_routing_get_port_mixer,
  18420. msm_routing_put_port_mixer),
  18421. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18422. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18423. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18424. msm_routing_get_port_mixer,
  18425. msm_routing_put_port_mixer),
  18426. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18427. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18428. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18429. msm_routing_get_port_mixer,
  18430. msm_routing_put_port_mixer),
  18431. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18432. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18433. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18434. msm_routing_get_port_mixer,
  18435. msm_routing_put_port_mixer),
  18436. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18437. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18438. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18439. msm_routing_get_port_mixer,
  18440. msm_routing_put_port_mixer),
  18441. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18442. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18443. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18444. msm_routing_get_port_mixer,
  18445. msm_routing_put_port_mixer),
  18446. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18447. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18448. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18449. msm_routing_get_port_mixer,
  18450. msm_routing_put_port_mixer),
  18451. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18452. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18453. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18454. msm_routing_get_port_mixer,
  18455. msm_routing_put_port_mixer),
  18456. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18457. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18458. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18459. msm_routing_get_port_mixer,
  18460. msm_routing_put_port_mixer),
  18461. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18463. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18464. msm_routing_get_port_mixer,
  18465. msm_routing_put_port_mixer),
  18466. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18467. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18468. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18469. msm_routing_get_port_mixer,
  18470. msm_routing_put_port_mixer),
  18471. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18472. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18473. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18474. msm_routing_get_port_mixer,
  18475. msm_routing_put_port_mixer),
  18476. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18477. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18478. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18479. msm_routing_get_port_mixer,
  18480. msm_routing_put_port_mixer),
  18481. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18483. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18484. msm_routing_get_port_mixer,
  18485. msm_routing_put_port_mixer),
  18486. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18487. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18488. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18489. msm_routing_get_port_mixer,
  18490. msm_routing_put_port_mixer),
  18491. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18492. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18493. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18494. msm_routing_get_port_mixer,
  18495. msm_routing_put_port_mixer),
  18496. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18497. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  18498. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18499. msm_routing_get_port_mixer,
  18500. msm_routing_put_port_mixer),
  18501. };
  18502. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  18503. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18504. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18505. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18506. msm_routing_get_port_mixer,
  18507. msm_routing_put_port_mixer),
  18508. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18509. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18510. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18511. msm_routing_get_port_mixer,
  18512. msm_routing_put_port_mixer),
  18513. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18514. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18515. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18516. msm_routing_get_port_mixer,
  18517. msm_routing_put_port_mixer),
  18518. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18519. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18520. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18521. msm_routing_get_port_mixer,
  18522. msm_routing_put_port_mixer),
  18523. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18524. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18525. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18526. msm_routing_get_port_mixer,
  18527. msm_routing_put_port_mixer),
  18528. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18529. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18530. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18531. msm_routing_get_port_mixer,
  18532. msm_routing_put_port_mixer),
  18533. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18534. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18535. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18536. msm_routing_get_port_mixer,
  18537. msm_routing_put_port_mixer),
  18538. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18539. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18540. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18541. msm_routing_get_port_mixer,
  18542. msm_routing_put_port_mixer),
  18543. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18544. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18545. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18546. msm_routing_get_port_mixer,
  18547. msm_routing_put_port_mixer),
  18548. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18549. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18550. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18551. msm_routing_get_port_mixer,
  18552. msm_routing_put_port_mixer),
  18553. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18554. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18555. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18556. msm_routing_get_port_mixer,
  18557. msm_routing_put_port_mixer),
  18558. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18559. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18560. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18561. msm_routing_get_port_mixer,
  18562. msm_routing_put_port_mixer),
  18563. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18564. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18565. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18566. msm_routing_get_port_mixer,
  18567. msm_routing_put_port_mixer),
  18568. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18569. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18570. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18571. msm_routing_get_port_mixer,
  18572. msm_routing_put_port_mixer),
  18573. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18574. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18575. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18576. msm_routing_get_port_mixer,
  18577. msm_routing_put_port_mixer),
  18578. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18580. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18581. msm_routing_get_port_mixer,
  18582. msm_routing_put_port_mixer),
  18583. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18584. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18585. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18586. msm_routing_get_port_mixer,
  18587. msm_routing_put_port_mixer),
  18588. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18589. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18590. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18591. msm_routing_get_port_mixer,
  18592. msm_routing_put_port_mixer),
  18593. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18594. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18595. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18596. msm_routing_get_port_mixer,
  18597. msm_routing_put_port_mixer),
  18598. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18599. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18600. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18601. msm_routing_get_port_mixer,
  18602. msm_routing_put_port_mixer),
  18603. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18604. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18605. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18606. msm_routing_get_port_mixer,
  18607. msm_routing_put_port_mixer),
  18608. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18609. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18610. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18611. msm_routing_get_port_mixer,
  18612. msm_routing_put_port_mixer),
  18613. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18614. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18615. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18616. msm_routing_get_port_mixer,
  18617. msm_routing_put_port_mixer),
  18618. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18619. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  18620. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18621. msm_routing_get_port_mixer,
  18622. msm_routing_put_port_mixer),
  18623. };
  18624. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  18625. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18626. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18627. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18628. msm_routing_get_port_mixer,
  18629. msm_routing_put_port_mixer),
  18630. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18631. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18632. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18633. msm_routing_get_port_mixer,
  18634. msm_routing_put_port_mixer),
  18635. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18636. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18637. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18638. msm_routing_get_port_mixer,
  18639. msm_routing_put_port_mixer),
  18640. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18642. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18643. msm_routing_get_port_mixer,
  18644. msm_routing_put_port_mixer),
  18645. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18646. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18647. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18648. msm_routing_get_port_mixer,
  18649. msm_routing_put_port_mixer),
  18650. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18651. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18652. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18653. msm_routing_get_port_mixer,
  18654. msm_routing_put_port_mixer),
  18655. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18656. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18657. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18658. msm_routing_get_port_mixer,
  18659. msm_routing_put_port_mixer),
  18660. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18661. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18662. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18663. msm_routing_get_port_mixer,
  18664. msm_routing_put_port_mixer),
  18665. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  18666. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18667. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  18668. msm_routing_get_port_mixer,
  18669. msm_routing_put_port_mixer),
  18670. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18672. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  18673. msm_routing_get_port_mixer,
  18674. msm_routing_put_port_mixer),
  18675. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  18676. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18677. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  18678. msm_routing_get_port_mixer,
  18679. msm_routing_put_port_mixer),
  18680. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  18681. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18682. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  18683. msm_routing_get_port_mixer,
  18684. msm_routing_put_port_mixer),
  18685. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18686. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18687. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18688. msm_routing_get_port_mixer,
  18689. msm_routing_put_port_mixer),
  18690. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18692. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18693. msm_routing_get_port_mixer,
  18694. msm_routing_put_port_mixer),
  18695. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18696. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18697. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18698. msm_routing_get_port_mixer,
  18699. msm_routing_put_port_mixer),
  18700. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18701. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18702. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18703. msm_routing_get_port_mixer,
  18704. msm_routing_put_port_mixer),
  18705. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18706. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18707. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18708. msm_routing_get_port_mixer,
  18709. msm_routing_put_port_mixer),
  18710. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18711. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18712. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18713. msm_routing_get_port_mixer,
  18714. msm_routing_put_port_mixer),
  18715. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18716. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18717. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18718. msm_routing_get_port_mixer,
  18719. msm_routing_put_port_mixer),
  18720. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18721. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18722. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18723. msm_routing_get_port_mixer,
  18724. msm_routing_put_port_mixer),
  18725. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18726. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18727. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18728. msm_routing_get_port_mixer,
  18729. msm_routing_put_port_mixer),
  18730. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18731. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18732. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18733. msm_routing_get_port_mixer,
  18734. msm_routing_put_port_mixer),
  18735. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18736. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18737. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18738. msm_routing_get_port_mixer,
  18739. msm_routing_put_port_mixer),
  18740. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18741. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  18742. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18743. msm_routing_get_port_mixer,
  18744. msm_routing_put_port_mixer),
  18745. };
  18746. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  18747. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18748. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18749. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18750. msm_routing_get_port_mixer,
  18751. msm_routing_put_port_mixer),
  18752. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18754. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18755. msm_routing_get_port_mixer,
  18756. msm_routing_put_port_mixer),
  18757. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18758. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18759. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18760. msm_routing_get_port_mixer,
  18761. msm_routing_put_port_mixer),
  18762. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18763. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18764. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18765. msm_routing_get_port_mixer,
  18766. msm_routing_put_port_mixer),
  18767. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18768. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18769. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18770. msm_routing_get_port_mixer,
  18771. msm_routing_put_port_mixer),
  18772. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18773. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18774. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18775. msm_routing_get_port_mixer,
  18776. msm_routing_put_port_mixer),
  18777. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18778. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18779. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18780. msm_routing_get_port_mixer,
  18781. msm_routing_put_port_mixer),
  18782. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18784. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18785. msm_routing_get_port_mixer,
  18786. msm_routing_put_port_mixer),
  18787. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18788. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18789. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18790. msm_routing_get_port_mixer,
  18791. msm_routing_put_port_mixer),
  18792. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18793. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18794. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18795. msm_routing_get_port_mixer,
  18796. msm_routing_put_port_mixer),
  18797. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18798. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18799. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18800. msm_routing_get_port_mixer,
  18801. msm_routing_put_port_mixer),
  18802. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18804. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18805. msm_routing_get_port_mixer,
  18806. msm_routing_put_port_mixer),
  18807. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18808. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18809. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18810. msm_routing_get_port_mixer,
  18811. msm_routing_put_port_mixer),
  18812. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18813. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18814. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18815. msm_routing_get_port_mixer,
  18816. msm_routing_put_port_mixer),
  18817. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18818. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18819. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18820. msm_routing_get_port_mixer,
  18821. msm_routing_put_port_mixer),
  18822. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18823. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18824. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18825. msm_routing_get_port_mixer,
  18826. msm_routing_put_port_mixer),
  18827. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18828. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18829. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18830. msm_routing_get_port_mixer,
  18831. msm_routing_put_port_mixer),
  18832. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18834. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18835. msm_routing_get_port_mixer,
  18836. msm_routing_put_port_mixer),
  18837. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18838. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18839. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18840. msm_routing_get_port_mixer,
  18841. msm_routing_put_port_mixer),
  18842. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18843. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18844. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18845. msm_routing_get_port_mixer,
  18846. msm_routing_put_port_mixer),
  18847. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18848. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18849. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18850. msm_routing_get_port_mixer,
  18851. msm_routing_put_port_mixer),
  18852. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18853. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18854. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18855. msm_routing_get_port_mixer,
  18856. msm_routing_put_port_mixer),
  18857. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18858. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18859. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18860. msm_routing_get_port_mixer,
  18861. msm_routing_put_port_mixer),
  18862. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18863. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  18864. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18865. msm_routing_get_port_mixer,
  18866. msm_routing_put_port_mixer),
  18867. };
  18868. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  18869. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18870. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18871. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18872. msm_routing_get_port_mixer,
  18873. msm_routing_put_port_mixer),
  18874. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18875. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18876. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18877. msm_routing_get_port_mixer,
  18878. msm_routing_put_port_mixer),
  18879. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18880. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18881. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18882. msm_routing_get_port_mixer,
  18883. msm_routing_put_port_mixer),
  18884. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18885. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18886. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18887. msm_routing_get_port_mixer,
  18888. msm_routing_put_port_mixer),
  18889. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18890. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18891. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18892. msm_routing_get_port_mixer,
  18893. msm_routing_put_port_mixer),
  18894. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18895. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18896. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18897. msm_routing_get_port_mixer,
  18898. msm_routing_put_port_mixer),
  18899. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18900. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18901. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18902. msm_routing_get_port_mixer,
  18903. msm_routing_put_port_mixer),
  18904. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18905. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18906. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18907. msm_routing_get_port_mixer,
  18908. msm_routing_put_port_mixer),
  18909. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18910. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18911. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18912. msm_routing_get_port_mixer,
  18913. msm_routing_put_port_mixer),
  18914. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18915. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18916. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18917. msm_routing_get_port_mixer,
  18918. msm_routing_put_port_mixer),
  18919. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18920. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18921. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18922. msm_routing_get_port_mixer,
  18923. msm_routing_put_port_mixer),
  18924. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18925. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18926. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18927. msm_routing_get_port_mixer,
  18928. msm_routing_put_port_mixer),
  18929. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18930. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18931. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18932. msm_routing_get_port_mixer,
  18933. msm_routing_put_port_mixer),
  18934. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18935. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18936. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18937. msm_routing_get_port_mixer,
  18938. msm_routing_put_port_mixer),
  18939. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18940. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18941. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18942. msm_routing_get_port_mixer,
  18943. msm_routing_put_port_mixer),
  18944. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18945. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18946. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18947. msm_routing_get_port_mixer,
  18948. msm_routing_put_port_mixer),
  18949. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18950. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18951. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18952. msm_routing_get_port_mixer,
  18953. msm_routing_put_port_mixer),
  18954. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18955. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18956. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18957. msm_routing_get_port_mixer,
  18958. msm_routing_put_port_mixer),
  18959. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18960. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18961. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18962. msm_routing_get_port_mixer,
  18963. msm_routing_put_port_mixer),
  18964. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18965. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18966. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18967. msm_routing_get_port_mixer,
  18968. msm_routing_put_port_mixer),
  18969. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18970. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18971. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18972. msm_routing_get_port_mixer,
  18973. msm_routing_put_port_mixer),
  18974. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18975. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18976. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18977. msm_routing_get_port_mixer,
  18978. msm_routing_put_port_mixer),
  18979. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18980. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18981. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18982. msm_routing_get_port_mixer,
  18983. msm_routing_put_port_mixer),
  18984. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18985. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  18986. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18987. msm_routing_get_port_mixer,
  18988. msm_routing_put_port_mixer),
  18989. };
  18990. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  18991. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18992. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18993. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18994. msm_routing_get_port_mixer,
  18995. msm_routing_put_port_mixer),
  18996. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18997. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18998. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18999. msm_routing_get_port_mixer,
  19000. msm_routing_put_port_mixer),
  19001. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19002. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19003. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19004. msm_routing_get_port_mixer,
  19005. msm_routing_put_port_mixer),
  19006. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19007. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19008. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19009. msm_routing_get_port_mixer,
  19010. msm_routing_put_port_mixer),
  19011. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19012. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19013. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19014. msm_routing_get_port_mixer,
  19015. msm_routing_put_port_mixer),
  19016. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19017. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19018. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19019. msm_routing_get_port_mixer,
  19020. msm_routing_put_port_mixer),
  19021. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19022. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19023. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19024. msm_routing_get_port_mixer,
  19025. msm_routing_put_port_mixer),
  19026. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19027. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19028. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19029. msm_routing_get_port_mixer,
  19030. msm_routing_put_port_mixer),
  19031. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19032. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19033. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  19034. msm_routing_get_port_mixer,
  19035. msm_routing_put_port_mixer),
  19036. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19037. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19038. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  19039. msm_routing_get_port_mixer,
  19040. msm_routing_put_port_mixer),
  19041. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19042. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19043. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  19044. msm_routing_get_port_mixer,
  19045. msm_routing_put_port_mixer),
  19046. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19047. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19048. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  19049. msm_routing_get_port_mixer,
  19050. msm_routing_put_port_mixer),
  19051. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19052. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19053. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19054. msm_routing_get_port_mixer,
  19055. msm_routing_put_port_mixer),
  19056. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19057. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19058. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19059. msm_routing_get_port_mixer,
  19060. msm_routing_put_port_mixer),
  19061. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19062. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19063. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19064. msm_routing_get_port_mixer,
  19065. msm_routing_put_port_mixer),
  19066. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19067. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19068. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19069. msm_routing_get_port_mixer,
  19070. msm_routing_put_port_mixer),
  19071. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19072. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19073. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19074. msm_routing_get_port_mixer,
  19075. msm_routing_put_port_mixer),
  19076. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19077. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19078. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19079. msm_routing_get_port_mixer,
  19080. msm_routing_put_port_mixer),
  19081. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19082. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19083. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19084. msm_routing_get_port_mixer,
  19085. msm_routing_put_port_mixer),
  19086. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19087. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19088. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19089. msm_routing_get_port_mixer,
  19090. msm_routing_put_port_mixer),
  19091. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19092. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19093. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19094. msm_routing_get_port_mixer,
  19095. msm_routing_put_port_mixer),
  19096. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19097. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19098. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19099. msm_routing_get_port_mixer,
  19100. msm_routing_put_port_mixer),
  19101. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19102. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19103. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19104. msm_routing_get_port_mixer,
  19105. msm_routing_put_port_mixer),
  19106. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19107. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  19108. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19109. msm_routing_get_port_mixer,
  19110. msm_routing_put_port_mixer),
  19111. };
  19112. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  19113. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19114. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19115. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19116. msm_routing_get_port_mixer,
  19117. msm_routing_put_port_mixer),
  19118. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19119. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19120. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19121. msm_routing_get_port_mixer,
  19122. msm_routing_put_port_mixer),
  19123. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19124. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19125. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19126. msm_routing_get_port_mixer,
  19127. msm_routing_put_port_mixer),
  19128. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19129. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19130. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19131. msm_routing_get_port_mixer,
  19132. msm_routing_put_port_mixer),
  19133. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19134. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19135. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19136. msm_routing_get_port_mixer,
  19137. msm_routing_put_port_mixer),
  19138. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19139. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19140. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19141. msm_routing_get_port_mixer,
  19142. msm_routing_put_port_mixer),
  19143. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19144. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19145. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19146. msm_routing_get_port_mixer,
  19147. msm_routing_put_port_mixer),
  19148. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19149. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19150. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19151. msm_routing_get_port_mixer,
  19152. msm_routing_put_port_mixer),
  19153. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  19154. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19155. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  19156. msm_routing_get_port_mixer,
  19157. msm_routing_put_port_mixer),
  19158. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  19159. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19160. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  19161. msm_routing_get_port_mixer,
  19162. msm_routing_put_port_mixer),
  19163. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  19164. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19165. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  19166. msm_routing_get_port_mixer,
  19167. msm_routing_put_port_mixer),
  19168. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  19169. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19170. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  19171. msm_routing_get_port_mixer,
  19172. msm_routing_put_port_mixer),
  19173. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19174. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19175. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19176. msm_routing_get_port_mixer,
  19177. msm_routing_put_port_mixer),
  19178. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19179. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19180. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19181. msm_routing_get_port_mixer,
  19182. msm_routing_put_port_mixer),
  19183. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19184. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19185. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19186. msm_routing_get_port_mixer,
  19187. msm_routing_put_port_mixer),
  19188. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19189. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19190. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19191. msm_routing_get_port_mixer,
  19192. msm_routing_put_port_mixer),
  19193. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19194. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19195. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19196. msm_routing_get_port_mixer,
  19197. msm_routing_put_port_mixer),
  19198. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19199. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19200. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19201. msm_routing_get_port_mixer,
  19202. msm_routing_put_port_mixer),
  19203. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19204. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19205. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19206. msm_routing_get_port_mixer,
  19207. msm_routing_put_port_mixer),
  19208. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19209. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19210. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19211. msm_routing_get_port_mixer,
  19212. msm_routing_put_port_mixer),
  19213. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19214. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19215. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19216. msm_routing_get_port_mixer,
  19217. msm_routing_put_port_mixer),
  19218. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19219. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19220. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19221. msm_routing_get_port_mixer,
  19222. msm_routing_put_port_mixer),
  19223. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19224. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19225. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19226. msm_routing_get_port_mixer,
  19227. msm_routing_put_port_mixer),
  19228. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19229. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  19230. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19231. msm_routing_get_port_mixer,
  19232. msm_routing_put_port_mixer),
  19233. };
  19234. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  19235. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  19236. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  19237. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  19238. msm_routing_get_port_mixer,
  19239. msm_routing_put_port_mixer),
  19240. };
  19241. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  19242. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19243. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19244. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19245. msm_routing_get_port_mixer,
  19246. msm_routing_put_port_mixer),
  19247. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19248. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19249. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19250. msm_routing_get_port_mixer,
  19251. msm_routing_put_port_mixer),
  19252. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19253. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19254. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19255. msm_routing_get_port_mixer,
  19256. msm_routing_put_port_mixer),
  19257. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19258. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19259. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19260. msm_routing_get_port_mixer,
  19261. msm_routing_put_port_mixer),
  19262. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19263. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19264. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19265. msm_routing_get_port_mixer,
  19266. msm_routing_put_port_mixer),
  19267. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19268. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19269. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19270. msm_routing_get_port_mixer,
  19271. msm_routing_put_port_mixer),
  19272. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19273. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19274. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19275. msm_routing_get_port_mixer,
  19276. msm_routing_put_port_mixer),
  19277. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19278. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19279. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19280. msm_routing_get_port_mixer,
  19281. msm_routing_put_port_mixer),
  19282. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19283. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19284. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19285. msm_routing_get_port_mixer,
  19286. msm_routing_put_port_mixer),
  19287. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19288. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19289. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19290. msm_routing_get_port_mixer,
  19291. msm_routing_put_port_mixer),
  19292. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19293. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19294. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19295. msm_routing_get_port_mixer,
  19296. msm_routing_put_port_mixer),
  19297. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19298. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19299. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19300. msm_routing_get_port_mixer,
  19301. msm_routing_put_port_mixer),
  19302. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19303. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19304. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19305. msm_routing_get_port_mixer,
  19306. msm_routing_put_port_mixer),
  19307. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19308. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19309. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19310. msm_routing_get_port_mixer,
  19311. msm_routing_put_port_mixer),
  19312. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19313. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19314. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19315. msm_routing_get_port_mixer,
  19316. msm_routing_put_port_mixer),
  19317. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19318. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19319. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19320. msm_routing_get_port_mixer,
  19321. msm_routing_put_port_mixer),
  19322. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19323. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19324. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19325. msm_routing_get_port_mixer,
  19326. msm_routing_put_port_mixer),
  19327. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19328. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19329. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19330. msm_routing_get_port_mixer,
  19331. msm_routing_put_port_mixer),
  19332. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19333. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19334. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19335. msm_routing_get_port_mixer,
  19336. msm_routing_put_port_mixer),
  19337. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19338. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19339. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19340. msm_routing_get_port_mixer,
  19341. msm_routing_put_port_mixer),
  19342. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19343. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19344. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19345. msm_routing_get_port_mixer,
  19346. msm_routing_put_port_mixer),
  19347. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19348. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19349. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19350. msm_routing_get_port_mixer,
  19351. msm_routing_put_port_mixer),
  19352. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19353. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19354. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19355. msm_routing_get_port_mixer,
  19356. msm_routing_put_port_mixer),
  19357. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19358. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  19359. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19360. msm_routing_get_port_mixer,
  19361. msm_routing_put_port_mixer),
  19362. };
  19363. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  19364. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19365. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19366. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19367. msm_routing_get_port_mixer,
  19368. msm_routing_put_port_mixer),
  19369. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19370. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19371. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19372. msm_routing_get_port_mixer,
  19373. msm_routing_put_port_mixer),
  19374. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19375. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19376. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19377. msm_routing_get_port_mixer,
  19378. msm_routing_put_port_mixer),
  19379. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19380. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19381. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19382. msm_routing_get_port_mixer,
  19383. msm_routing_put_port_mixer),
  19384. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19385. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19386. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19387. msm_routing_get_port_mixer,
  19388. msm_routing_put_port_mixer),
  19389. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19390. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19391. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19392. msm_routing_get_port_mixer,
  19393. msm_routing_put_port_mixer),
  19394. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19395. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19396. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19397. msm_routing_get_port_mixer,
  19398. msm_routing_put_port_mixer),
  19399. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19400. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19401. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19402. msm_routing_get_port_mixer,
  19403. msm_routing_put_port_mixer),
  19404. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19405. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19406. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19407. msm_routing_get_port_mixer,
  19408. msm_routing_put_port_mixer),
  19409. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19410. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19411. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19412. msm_routing_get_port_mixer,
  19413. msm_routing_put_port_mixer),
  19414. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19415. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19416. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19417. msm_routing_get_port_mixer,
  19418. msm_routing_put_port_mixer),
  19419. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19420. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19421. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19422. msm_routing_get_port_mixer,
  19423. msm_routing_put_port_mixer),
  19424. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19425. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19426. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19427. msm_routing_get_port_mixer,
  19428. msm_routing_put_port_mixer),
  19429. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19430. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19431. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19432. msm_routing_get_port_mixer,
  19433. msm_routing_put_port_mixer),
  19434. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19435. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19436. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19437. msm_routing_get_port_mixer,
  19438. msm_routing_put_port_mixer),
  19439. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19440. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19441. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19442. msm_routing_get_port_mixer,
  19443. msm_routing_put_port_mixer),
  19444. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19445. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19446. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19447. msm_routing_get_port_mixer,
  19448. msm_routing_put_port_mixer),
  19449. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19450. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19451. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19452. msm_routing_get_port_mixer,
  19453. msm_routing_put_port_mixer),
  19454. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19455. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19456. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19457. msm_routing_get_port_mixer,
  19458. msm_routing_put_port_mixer),
  19459. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19460. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19461. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19462. msm_routing_get_port_mixer,
  19463. msm_routing_put_port_mixer),
  19464. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19465. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19466. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19467. msm_routing_get_port_mixer,
  19468. msm_routing_put_port_mixer),
  19469. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19470. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19471. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19472. msm_routing_get_port_mixer,
  19473. msm_routing_put_port_mixer),
  19474. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19475. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19476. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19477. msm_routing_get_port_mixer,
  19478. msm_routing_put_port_mixer),
  19479. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19480. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  19481. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19482. msm_routing_get_port_mixer,
  19483. msm_routing_put_port_mixer),
  19484. };
  19485. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  19486. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19487. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19488. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19489. msm_routing_get_port_mixer,
  19490. msm_routing_put_port_mixer),
  19491. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19492. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19493. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19494. msm_routing_get_port_mixer,
  19495. msm_routing_put_port_mixer),
  19496. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19497. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19498. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19499. msm_routing_get_port_mixer,
  19500. msm_routing_put_port_mixer),
  19501. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19502. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19503. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19504. msm_routing_get_port_mixer,
  19505. msm_routing_put_port_mixer),
  19506. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19507. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19508. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19509. msm_routing_get_port_mixer,
  19510. msm_routing_put_port_mixer),
  19511. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19512. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19513. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19514. msm_routing_get_port_mixer,
  19515. msm_routing_put_port_mixer),
  19516. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19517. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19518. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19519. msm_routing_get_port_mixer,
  19520. msm_routing_put_port_mixer),
  19521. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19522. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19523. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19524. msm_routing_get_port_mixer,
  19525. msm_routing_put_port_mixer),
  19526. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19527. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19528. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19529. msm_routing_get_port_mixer,
  19530. msm_routing_put_port_mixer),
  19531. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19532. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19533. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19534. msm_routing_get_port_mixer,
  19535. msm_routing_put_port_mixer),
  19536. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19537. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19538. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19539. msm_routing_get_port_mixer,
  19540. msm_routing_put_port_mixer),
  19541. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19542. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19543. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19544. msm_routing_get_port_mixer,
  19545. msm_routing_put_port_mixer),
  19546. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19547. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19548. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19549. msm_routing_get_port_mixer,
  19550. msm_routing_put_port_mixer),
  19551. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19552. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19553. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19554. msm_routing_get_port_mixer,
  19555. msm_routing_put_port_mixer),
  19556. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19557. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19558. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19559. msm_routing_get_port_mixer,
  19560. msm_routing_put_port_mixer),
  19561. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19562. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19563. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19564. msm_routing_get_port_mixer,
  19565. msm_routing_put_port_mixer),
  19566. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19567. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19568. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19569. msm_routing_get_port_mixer,
  19570. msm_routing_put_port_mixer),
  19571. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19572. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19573. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19574. msm_routing_get_port_mixer,
  19575. msm_routing_put_port_mixer),
  19576. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19577. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19578. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19579. msm_routing_get_port_mixer,
  19580. msm_routing_put_port_mixer),
  19581. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19582. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19583. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19584. msm_routing_get_port_mixer,
  19585. msm_routing_put_port_mixer),
  19586. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19587. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19588. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19589. msm_routing_get_port_mixer,
  19590. msm_routing_put_port_mixer),
  19591. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19592. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19593. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19594. msm_routing_get_port_mixer,
  19595. msm_routing_put_port_mixer),
  19596. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19597. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19598. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19599. msm_routing_get_port_mixer,
  19600. msm_routing_put_port_mixer),
  19601. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19602. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  19603. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19604. msm_routing_get_port_mixer,
  19605. msm_routing_put_port_mixer),
  19606. };
  19607. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  19608. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19609. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19610. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19611. msm_routing_get_port_mixer,
  19612. msm_routing_put_port_mixer),
  19613. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19614. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19615. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19616. msm_routing_get_port_mixer,
  19617. msm_routing_put_port_mixer),
  19618. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  19619. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19620. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  19621. msm_routing_get_port_mixer,
  19622. msm_routing_put_port_mixer),
  19623. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19624. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19625. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19626. msm_routing_get_port_mixer,
  19627. msm_routing_put_port_mixer),
  19628. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19629. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19630. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19631. msm_routing_get_port_mixer,
  19632. msm_routing_put_port_mixer),
  19633. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19634. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19635. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19636. msm_routing_get_port_mixer,
  19637. msm_routing_put_port_mixer),
  19638. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19639. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19640. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19641. msm_routing_get_port_mixer,
  19642. msm_routing_put_port_mixer),
  19643. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19644. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19645. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19646. msm_routing_get_port_mixer,
  19647. msm_routing_put_port_mixer),
  19648. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19649. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19650. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19651. msm_routing_get_port_mixer,
  19652. msm_routing_put_port_mixer),
  19653. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19654. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19655. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19656. msm_routing_get_port_mixer,
  19657. msm_routing_put_port_mixer),
  19658. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19659. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19660. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19661. msm_routing_get_port_mixer,
  19662. msm_routing_put_port_mixer),
  19663. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19664. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19665. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19666. msm_routing_get_port_mixer,
  19667. msm_routing_put_port_mixer),
  19668. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19669. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19670. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19671. msm_routing_get_port_mixer,
  19672. msm_routing_put_port_mixer),
  19673. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19674. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19675. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19676. msm_routing_get_port_mixer,
  19677. msm_routing_put_port_mixer),
  19678. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19679. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19680. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19681. msm_routing_get_port_mixer,
  19682. msm_routing_put_port_mixer),
  19683. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19684. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19685. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19686. msm_routing_get_port_mixer,
  19687. msm_routing_put_port_mixer),
  19688. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19689. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19690. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19691. msm_routing_get_port_mixer,
  19692. msm_routing_put_port_mixer),
  19693. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19694. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19695. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19696. msm_routing_get_port_mixer,
  19697. msm_routing_put_port_mixer),
  19698. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19699. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19700. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19701. msm_routing_get_port_mixer,
  19702. msm_routing_put_port_mixer),
  19703. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19704. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19705. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19706. msm_routing_get_port_mixer,
  19707. msm_routing_put_port_mixer),
  19708. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19709. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19710. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19711. msm_routing_get_port_mixer,
  19712. msm_routing_put_port_mixer),
  19713. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19714. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19715. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19716. msm_routing_get_port_mixer,
  19717. msm_routing_put_port_mixer),
  19718. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19719. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19720. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19721. msm_routing_get_port_mixer,
  19722. msm_routing_put_port_mixer),
  19723. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19724. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  19725. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19726. msm_routing_get_port_mixer,
  19727. msm_routing_put_port_mixer),
  19728. };
  19729. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  19730. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19731. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19732. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19733. msm_routing_get_port_mixer,
  19734. msm_routing_put_port_mixer),
  19735. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19736. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19737. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19738. msm_routing_get_port_mixer,
  19739. msm_routing_put_port_mixer),
  19740. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19741. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19742. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19743. msm_routing_get_port_mixer,
  19744. msm_routing_put_port_mixer),
  19745. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19746. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19747. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19748. msm_routing_get_port_mixer,
  19749. msm_routing_put_port_mixer),
  19750. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19751. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19752. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19753. msm_routing_get_port_mixer,
  19754. msm_routing_put_port_mixer),
  19755. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19756. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19757. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19758. msm_routing_get_port_mixer,
  19759. msm_routing_put_port_mixer),
  19760. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19761. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19762. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19763. msm_routing_get_port_mixer,
  19764. msm_routing_put_port_mixer),
  19765. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19766. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19767. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19768. msm_routing_get_port_mixer,
  19769. msm_routing_put_port_mixer),
  19770. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19771. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19772. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19773. msm_routing_get_port_mixer,
  19774. msm_routing_put_port_mixer),
  19775. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19776. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19777. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19778. msm_routing_get_port_mixer,
  19779. msm_routing_put_port_mixer),
  19780. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19781. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19782. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19783. msm_routing_get_port_mixer,
  19784. msm_routing_put_port_mixer),
  19785. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19786. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19787. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19788. msm_routing_get_port_mixer,
  19789. msm_routing_put_port_mixer),
  19790. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19791. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19792. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19793. msm_routing_get_port_mixer,
  19794. msm_routing_put_port_mixer),
  19795. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19796. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19797. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19798. msm_routing_get_port_mixer,
  19799. msm_routing_put_port_mixer),
  19800. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19801. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19802. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19803. msm_routing_get_port_mixer,
  19804. msm_routing_put_port_mixer),
  19805. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19806. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19807. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19808. msm_routing_get_port_mixer,
  19809. msm_routing_put_port_mixer),
  19810. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19811. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19812. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19813. msm_routing_get_port_mixer,
  19814. msm_routing_put_port_mixer),
  19815. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19816. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19817. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19818. msm_routing_get_port_mixer,
  19819. msm_routing_put_port_mixer),
  19820. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19821. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19822. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19823. msm_routing_get_port_mixer,
  19824. msm_routing_put_port_mixer),
  19825. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19826. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19827. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19828. msm_routing_get_port_mixer,
  19829. msm_routing_put_port_mixer),
  19830. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19831. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19832. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19833. msm_routing_get_port_mixer,
  19834. msm_routing_put_port_mixer),
  19835. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19836. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19837. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19838. msm_routing_get_port_mixer,
  19839. msm_routing_put_port_mixer),
  19840. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19841. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19842. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19843. msm_routing_get_port_mixer,
  19844. msm_routing_put_port_mixer),
  19845. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19846. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  19847. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19848. msm_routing_get_port_mixer,
  19849. msm_routing_put_port_mixer),
  19850. };
  19851. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  19852. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19853. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19854. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19855. msm_routing_get_port_mixer,
  19856. msm_routing_put_port_mixer),
  19857. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19858. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19859. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19860. msm_routing_get_port_mixer,
  19861. msm_routing_put_port_mixer),
  19862. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19863. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19864. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19865. msm_routing_get_port_mixer,
  19866. msm_routing_put_port_mixer),
  19867. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19868. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19869. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19870. msm_routing_get_port_mixer,
  19871. msm_routing_put_port_mixer),
  19872. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19873. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19874. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19875. msm_routing_get_port_mixer,
  19876. msm_routing_put_port_mixer),
  19877. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19878. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19879. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19880. msm_routing_get_port_mixer,
  19881. msm_routing_put_port_mixer),
  19882. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19883. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19884. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19885. msm_routing_get_port_mixer,
  19886. msm_routing_put_port_mixer),
  19887. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19888. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19889. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19890. msm_routing_get_port_mixer,
  19891. msm_routing_put_port_mixer),
  19892. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19893. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19894. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19895. msm_routing_get_port_mixer,
  19896. msm_routing_put_port_mixer),
  19897. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19898. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19899. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19900. msm_routing_get_port_mixer,
  19901. msm_routing_put_port_mixer),
  19902. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19903. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19904. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19905. msm_routing_get_port_mixer,
  19906. msm_routing_put_port_mixer),
  19907. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19908. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19909. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19910. msm_routing_get_port_mixer,
  19911. msm_routing_put_port_mixer),
  19912. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19913. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19914. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19915. msm_routing_get_port_mixer,
  19916. msm_routing_put_port_mixer),
  19917. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19918. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19919. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19920. msm_routing_get_port_mixer,
  19921. msm_routing_put_port_mixer),
  19922. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19923. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19924. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19925. msm_routing_get_port_mixer,
  19926. msm_routing_put_port_mixer),
  19927. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19928. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19929. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19930. msm_routing_get_port_mixer,
  19931. msm_routing_put_port_mixer),
  19932. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19933. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19934. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19935. msm_routing_get_port_mixer,
  19936. msm_routing_put_port_mixer),
  19937. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19938. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19939. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19940. msm_routing_get_port_mixer,
  19941. msm_routing_put_port_mixer),
  19942. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19943. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19944. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19945. msm_routing_get_port_mixer,
  19946. msm_routing_put_port_mixer),
  19947. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19948. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19949. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19950. msm_routing_get_port_mixer,
  19951. msm_routing_put_port_mixer),
  19952. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19953. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19954. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19955. msm_routing_get_port_mixer,
  19956. msm_routing_put_port_mixer),
  19957. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19958. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19959. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19960. msm_routing_get_port_mixer,
  19961. msm_routing_put_port_mixer),
  19962. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19963. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19964. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19965. msm_routing_get_port_mixer,
  19966. msm_routing_put_port_mixer),
  19967. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19968. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  19969. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19970. msm_routing_get_port_mixer,
  19971. msm_routing_put_port_mixer),
  19972. };
  19973. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  19974. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19975. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19976. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19977. msm_routing_get_port_mixer,
  19978. msm_routing_put_port_mixer),
  19979. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19980. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19981. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19982. msm_routing_get_port_mixer,
  19983. msm_routing_put_port_mixer),
  19984. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19985. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19986. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19987. msm_routing_get_port_mixer,
  19988. msm_routing_put_port_mixer),
  19989. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19990. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19991. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19992. msm_routing_get_port_mixer,
  19993. msm_routing_put_port_mixer),
  19994. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19995. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19996. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19997. msm_routing_get_port_mixer,
  19998. msm_routing_put_port_mixer),
  19999. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20000. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20001. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20002. msm_routing_get_port_mixer,
  20003. msm_routing_put_port_mixer),
  20004. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20005. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20006. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20007. msm_routing_get_port_mixer,
  20008. msm_routing_put_port_mixer),
  20009. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20010. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20011. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20012. msm_routing_get_port_mixer,
  20013. msm_routing_put_port_mixer),
  20014. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20015. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20016. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20017. msm_routing_get_port_mixer,
  20018. msm_routing_put_port_mixer),
  20019. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20020. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20021. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20022. msm_routing_get_port_mixer,
  20023. msm_routing_put_port_mixer),
  20024. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20025. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20026. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20027. msm_routing_get_port_mixer,
  20028. msm_routing_put_port_mixer),
  20029. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20030. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20031. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20032. msm_routing_get_port_mixer,
  20033. msm_routing_put_port_mixer),
  20034. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20035. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20036. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20037. msm_routing_get_port_mixer,
  20038. msm_routing_put_port_mixer),
  20039. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20040. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20041. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20042. msm_routing_get_port_mixer,
  20043. msm_routing_put_port_mixer),
  20044. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20045. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20046. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20047. msm_routing_get_port_mixer,
  20048. msm_routing_put_port_mixer),
  20049. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20050. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20051. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20052. msm_routing_get_port_mixer,
  20053. msm_routing_put_port_mixer),
  20054. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20055. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20056. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20057. msm_routing_get_port_mixer,
  20058. msm_routing_put_port_mixer),
  20059. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20060. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20061. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20062. msm_routing_get_port_mixer,
  20063. msm_routing_put_port_mixer),
  20064. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20065. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20066. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20067. msm_routing_get_port_mixer,
  20068. msm_routing_put_port_mixer),
  20069. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20070. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20071. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20072. msm_routing_get_port_mixer,
  20073. msm_routing_put_port_mixer),
  20074. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20075. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20076. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20077. msm_routing_get_port_mixer,
  20078. msm_routing_put_port_mixer),
  20079. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20080. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20081. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20082. msm_routing_get_port_mixer,
  20083. msm_routing_put_port_mixer),
  20084. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20085. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20086. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20087. msm_routing_get_port_mixer,
  20088. msm_routing_put_port_mixer),
  20089. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20090. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  20091. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20092. msm_routing_get_port_mixer,
  20093. msm_routing_put_port_mixer),
  20094. };
  20095. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  20096. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20097. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20098. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20099. msm_routing_get_port_mixer,
  20100. msm_routing_put_port_mixer),
  20101. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20102. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20103. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20104. msm_routing_get_port_mixer,
  20105. msm_routing_put_port_mixer),
  20106. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20107. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20108. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20109. msm_routing_get_port_mixer,
  20110. msm_routing_put_port_mixer),
  20111. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20112. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20113. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20114. msm_routing_get_port_mixer,
  20115. msm_routing_put_port_mixer),
  20116. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20117. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20118. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20119. msm_routing_get_port_mixer,
  20120. msm_routing_put_port_mixer),
  20121. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20122. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20123. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20124. msm_routing_get_port_mixer,
  20125. msm_routing_put_port_mixer),
  20126. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20127. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20128. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20129. msm_routing_get_port_mixer,
  20130. msm_routing_put_port_mixer),
  20131. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20132. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20133. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20134. msm_routing_get_port_mixer,
  20135. msm_routing_put_port_mixer),
  20136. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20137. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20138. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20139. msm_routing_get_port_mixer,
  20140. msm_routing_put_port_mixer),
  20141. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20142. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20143. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20144. msm_routing_get_port_mixer,
  20145. msm_routing_put_port_mixer),
  20146. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20147. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20148. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20149. msm_routing_get_port_mixer,
  20150. msm_routing_put_port_mixer),
  20151. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20152. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20153. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20154. msm_routing_get_port_mixer,
  20155. msm_routing_put_port_mixer),
  20156. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20157. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20158. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20159. msm_routing_get_port_mixer,
  20160. msm_routing_put_port_mixer),
  20161. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20162. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20163. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20164. msm_routing_get_port_mixer,
  20165. msm_routing_put_port_mixer),
  20166. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20167. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20168. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20169. msm_routing_get_port_mixer,
  20170. msm_routing_put_port_mixer),
  20171. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20172. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20173. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20174. msm_routing_get_port_mixer,
  20175. msm_routing_put_port_mixer),
  20176. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20177. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20178. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20179. msm_routing_get_port_mixer,
  20180. msm_routing_put_port_mixer),
  20181. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20182. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20183. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20184. msm_routing_get_port_mixer,
  20185. msm_routing_put_port_mixer),
  20186. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20187. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20188. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20189. msm_routing_get_port_mixer,
  20190. msm_routing_put_port_mixer),
  20191. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20192. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20193. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20194. msm_routing_get_port_mixer,
  20195. msm_routing_put_port_mixer),
  20196. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20197. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20198. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20199. msm_routing_get_port_mixer,
  20200. msm_routing_put_port_mixer),
  20201. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20202. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20203. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20204. msm_routing_get_port_mixer,
  20205. msm_routing_put_port_mixer),
  20206. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20207. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20208. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20209. msm_routing_get_port_mixer,
  20210. msm_routing_put_port_mixer),
  20211. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  20213. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20214. msm_routing_get_port_mixer,
  20215. msm_routing_put_port_mixer),
  20216. };
  20217. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  20218. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20219. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20220. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20221. msm_routing_get_port_mixer,
  20222. msm_routing_put_port_mixer),
  20223. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20224. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  20225. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20226. msm_routing_get_port_mixer,
  20227. msm_routing_put_port_mixer),
  20228. };
  20229. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  20230. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20231. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20232. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20233. msm_routing_get_port_mixer,
  20234. msm_routing_put_port_mixer),
  20235. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20236. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20237. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20238. msm_routing_get_port_mixer,
  20239. msm_routing_put_port_mixer),
  20240. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20241. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20242. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20243. msm_routing_get_port_mixer,
  20244. msm_routing_put_port_mixer),
  20245. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20246. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20247. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20248. msm_routing_get_port_mixer,
  20249. msm_routing_put_port_mixer),
  20250. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20251. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20252. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20253. msm_routing_get_port_mixer,
  20254. msm_routing_put_port_mixer),
  20255. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20256. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20257. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20258. msm_routing_get_port_mixer,
  20259. msm_routing_put_port_mixer),
  20260. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20261. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20262. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20263. msm_routing_get_port_mixer,
  20264. msm_routing_put_port_mixer),
  20265. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20266. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20267. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20268. msm_routing_get_port_mixer,
  20269. msm_routing_put_port_mixer),
  20270. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20271. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20272. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20273. msm_routing_get_port_mixer,
  20274. msm_routing_put_port_mixer),
  20275. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20276. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20277. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20278. msm_routing_get_port_mixer,
  20279. msm_routing_put_port_mixer),
  20280. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20281. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20282. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20283. msm_routing_get_port_mixer,
  20284. msm_routing_put_port_mixer),
  20285. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20286. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20287. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20288. msm_routing_get_port_mixer,
  20289. msm_routing_put_port_mixer),
  20290. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20291. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20292. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20293. msm_routing_get_port_mixer,
  20294. msm_routing_put_port_mixer),
  20295. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20296. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20297. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20298. msm_routing_get_port_mixer,
  20299. msm_routing_put_port_mixer),
  20300. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20301. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20302. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20303. msm_routing_get_port_mixer,
  20304. msm_routing_put_port_mixer),
  20305. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20306. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20307. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20308. msm_routing_get_port_mixer,
  20309. msm_routing_put_port_mixer),
  20310. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20311. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20312. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20313. msm_routing_get_port_mixer,
  20314. msm_routing_put_port_mixer),
  20315. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20316. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20317. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20318. msm_routing_get_port_mixer,
  20319. msm_routing_put_port_mixer),
  20320. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20321. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20322. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20323. msm_routing_get_port_mixer,
  20324. msm_routing_put_port_mixer),
  20325. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20326. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20327. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20328. msm_routing_get_port_mixer,
  20329. msm_routing_put_port_mixer),
  20330. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20331. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20332. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20333. msm_routing_get_port_mixer,
  20334. msm_routing_put_port_mixer),
  20335. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20336. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20337. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20338. msm_routing_get_port_mixer,
  20339. msm_routing_put_port_mixer),
  20340. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20341. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20342. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20343. msm_routing_get_port_mixer,
  20344. msm_routing_put_port_mixer),
  20345. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20346. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  20347. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20348. msm_routing_get_port_mixer,
  20349. msm_routing_put_port_mixer),
  20350. };
  20351. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  20352. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20354. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20355. msm_routing_get_port_mixer,
  20356. msm_routing_put_port_mixer),
  20357. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20358. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20359. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20360. msm_routing_get_port_mixer,
  20361. msm_routing_put_port_mixer),
  20362. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20364. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20365. msm_routing_get_port_mixer,
  20366. msm_routing_put_port_mixer),
  20367. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20368. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20369. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20370. msm_routing_get_port_mixer,
  20371. msm_routing_put_port_mixer),
  20372. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20373. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20374. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20375. msm_routing_get_port_mixer,
  20376. msm_routing_put_port_mixer),
  20377. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20378. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20379. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20380. msm_routing_get_port_mixer,
  20381. msm_routing_put_port_mixer),
  20382. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20384. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20385. msm_routing_get_port_mixer,
  20386. msm_routing_put_port_mixer),
  20387. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20388. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20389. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20390. msm_routing_get_port_mixer,
  20391. msm_routing_put_port_mixer),
  20392. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20393. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20394. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20395. msm_routing_get_port_mixer,
  20396. msm_routing_put_port_mixer),
  20397. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20398. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20399. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20400. msm_routing_get_port_mixer,
  20401. msm_routing_put_port_mixer),
  20402. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20404. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20405. msm_routing_get_port_mixer,
  20406. msm_routing_put_port_mixer),
  20407. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20408. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20409. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20410. msm_routing_get_port_mixer,
  20411. msm_routing_put_port_mixer),
  20412. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20413. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20414. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20415. msm_routing_get_port_mixer,
  20416. msm_routing_put_port_mixer),
  20417. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20418. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20419. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20420. msm_routing_get_port_mixer,
  20421. msm_routing_put_port_mixer),
  20422. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20423. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20424. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20425. msm_routing_get_port_mixer,
  20426. msm_routing_put_port_mixer),
  20427. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20428. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20429. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20430. msm_routing_get_port_mixer,
  20431. msm_routing_put_port_mixer),
  20432. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20434. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20435. msm_routing_get_port_mixer,
  20436. msm_routing_put_port_mixer),
  20437. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20438. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20439. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20440. msm_routing_get_port_mixer,
  20441. msm_routing_put_port_mixer),
  20442. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20443. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20444. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20445. msm_routing_get_port_mixer,
  20446. msm_routing_put_port_mixer),
  20447. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20448. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20449. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20450. msm_routing_get_port_mixer,
  20451. msm_routing_put_port_mixer),
  20452. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20453. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20454. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20455. msm_routing_get_port_mixer,
  20456. msm_routing_put_port_mixer),
  20457. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20458. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20459. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20460. msm_routing_get_port_mixer,
  20461. msm_routing_put_port_mixer),
  20462. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20463. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20464. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20465. msm_routing_get_port_mixer,
  20466. msm_routing_put_port_mixer),
  20467. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20468. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  20469. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20470. msm_routing_get_port_mixer,
  20471. msm_routing_put_port_mixer),
  20472. };
  20473. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  20474. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20475. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20476. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20477. msm_routing_get_port_mixer,
  20478. msm_routing_put_port_mixer),
  20479. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20480. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20481. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20482. msm_routing_get_port_mixer,
  20483. msm_routing_put_port_mixer),
  20484. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20485. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20486. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20487. msm_routing_get_port_mixer,
  20488. msm_routing_put_port_mixer),
  20489. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20490. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20491. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20492. msm_routing_get_port_mixer,
  20493. msm_routing_put_port_mixer),
  20494. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20495. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20496. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20497. msm_routing_get_port_mixer,
  20498. msm_routing_put_port_mixer),
  20499. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20500. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20501. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20502. msm_routing_get_port_mixer,
  20503. msm_routing_put_port_mixer),
  20504. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20505. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20506. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20507. msm_routing_get_port_mixer,
  20508. msm_routing_put_port_mixer),
  20509. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20510. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20511. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20512. msm_routing_get_port_mixer,
  20513. msm_routing_put_port_mixer),
  20514. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20515. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20516. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20517. msm_routing_get_port_mixer,
  20518. msm_routing_put_port_mixer),
  20519. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20520. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20521. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20522. msm_routing_get_port_mixer,
  20523. msm_routing_put_port_mixer),
  20524. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20525. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20526. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20527. msm_routing_get_port_mixer,
  20528. msm_routing_put_port_mixer),
  20529. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20530. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20531. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20532. msm_routing_get_port_mixer,
  20533. msm_routing_put_port_mixer),
  20534. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20535. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20536. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20537. msm_routing_get_port_mixer,
  20538. msm_routing_put_port_mixer),
  20539. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20540. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20541. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20542. msm_routing_get_port_mixer,
  20543. msm_routing_put_port_mixer),
  20544. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20545. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20546. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20547. msm_routing_get_port_mixer,
  20548. msm_routing_put_port_mixer),
  20549. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20550. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20551. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20552. msm_routing_get_port_mixer,
  20553. msm_routing_put_port_mixer),
  20554. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20555. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20556. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20557. msm_routing_get_port_mixer,
  20558. msm_routing_put_port_mixer),
  20559. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20560. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20561. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20562. msm_routing_get_port_mixer,
  20563. msm_routing_put_port_mixer),
  20564. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20565. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20566. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20567. msm_routing_get_port_mixer,
  20568. msm_routing_put_port_mixer),
  20569. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20570. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20571. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20572. msm_routing_get_port_mixer,
  20573. msm_routing_put_port_mixer),
  20574. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20575. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20576. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20577. msm_routing_get_port_mixer,
  20578. msm_routing_put_port_mixer),
  20579. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20580. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20581. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20582. msm_routing_get_port_mixer,
  20583. msm_routing_put_port_mixer),
  20584. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20585. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20586. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20587. msm_routing_get_port_mixer,
  20588. msm_routing_put_port_mixer),
  20589. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20590. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  20591. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20592. msm_routing_get_port_mixer,
  20593. msm_routing_put_port_mixer),
  20594. };
  20595. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  20596. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20597. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20598. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20599. msm_routing_get_port_mixer,
  20600. msm_routing_put_port_mixer),
  20601. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20602. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20603. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20604. msm_routing_get_port_mixer,
  20605. msm_routing_put_port_mixer),
  20606. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20607. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20608. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20609. msm_routing_get_port_mixer,
  20610. msm_routing_put_port_mixer),
  20611. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20612. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20613. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20614. msm_routing_get_port_mixer,
  20615. msm_routing_put_port_mixer),
  20616. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20617. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20618. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20619. msm_routing_get_port_mixer,
  20620. msm_routing_put_port_mixer),
  20621. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20622. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20623. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20624. msm_routing_get_port_mixer,
  20625. msm_routing_put_port_mixer),
  20626. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20627. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20628. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20629. msm_routing_get_port_mixer,
  20630. msm_routing_put_port_mixer),
  20631. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20632. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20633. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20634. msm_routing_get_port_mixer,
  20635. msm_routing_put_port_mixer),
  20636. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20637. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20638. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20639. msm_routing_get_port_mixer,
  20640. msm_routing_put_port_mixer),
  20641. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20642. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20643. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20644. msm_routing_get_port_mixer,
  20645. msm_routing_put_port_mixer),
  20646. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20647. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20648. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20649. msm_routing_get_port_mixer,
  20650. msm_routing_put_port_mixer),
  20651. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20652. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20653. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20654. msm_routing_get_port_mixer,
  20655. msm_routing_put_port_mixer),
  20656. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20657. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20658. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20659. msm_routing_get_port_mixer,
  20660. msm_routing_put_port_mixer),
  20661. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20662. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20663. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20664. msm_routing_get_port_mixer,
  20665. msm_routing_put_port_mixer),
  20666. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20667. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20668. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20669. msm_routing_get_port_mixer,
  20670. msm_routing_put_port_mixer),
  20671. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20672. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20673. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20674. msm_routing_get_port_mixer,
  20675. msm_routing_put_port_mixer),
  20676. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20677. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20678. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20679. msm_routing_get_port_mixer,
  20680. msm_routing_put_port_mixer),
  20681. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20682. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20683. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20684. msm_routing_get_port_mixer,
  20685. msm_routing_put_port_mixer),
  20686. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20687. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20688. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20689. msm_routing_get_port_mixer,
  20690. msm_routing_put_port_mixer),
  20691. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20692. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20693. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20694. msm_routing_get_port_mixer,
  20695. msm_routing_put_port_mixer),
  20696. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20697. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20698. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20699. msm_routing_get_port_mixer,
  20700. msm_routing_put_port_mixer),
  20701. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20702. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20703. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20704. msm_routing_get_port_mixer,
  20705. msm_routing_put_port_mixer),
  20706. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20707. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20708. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20709. msm_routing_get_port_mixer,
  20710. msm_routing_put_port_mixer),
  20711. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20712. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  20713. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20714. msm_routing_get_port_mixer,
  20715. msm_routing_put_port_mixer),
  20716. };
  20717. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  20718. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20719. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20720. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20721. msm_routing_get_port_mixer,
  20722. msm_routing_put_port_mixer),
  20723. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20724. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20725. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20726. msm_routing_get_port_mixer,
  20727. msm_routing_put_port_mixer),
  20728. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20729. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20730. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20731. msm_routing_get_port_mixer,
  20732. msm_routing_put_port_mixer),
  20733. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20734. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20735. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20736. msm_routing_get_port_mixer,
  20737. msm_routing_put_port_mixer),
  20738. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20739. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20740. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20741. msm_routing_get_port_mixer,
  20742. msm_routing_put_port_mixer),
  20743. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20744. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20745. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20746. msm_routing_get_port_mixer,
  20747. msm_routing_put_port_mixer),
  20748. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20749. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20750. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20751. msm_routing_get_port_mixer,
  20752. msm_routing_put_port_mixer),
  20753. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20754. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20755. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20756. msm_routing_get_port_mixer,
  20757. msm_routing_put_port_mixer),
  20758. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20759. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20760. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20761. msm_routing_get_port_mixer,
  20762. msm_routing_put_port_mixer),
  20763. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20764. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20765. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20766. msm_routing_get_port_mixer,
  20767. msm_routing_put_port_mixer),
  20768. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20769. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20770. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20771. msm_routing_get_port_mixer,
  20772. msm_routing_put_port_mixer),
  20773. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20774. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20775. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20776. msm_routing_get_port_mixer,
  20777. msm_routing_put_port_mixer),
  20778. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20779. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20780. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20781. msm_routing_get_port_mixer,
  20782. msm_routing_put_port_mixer),
  20783. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20784. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20785. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20786. msm_routing_get_port_mixer,
  20787. msm_routing_put_port_mixer),
  20788. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20789. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20790. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20791. msm_routing_get_port_mixer,
  20792. msm_routing_put_port_mixer),
  20793. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20794. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20795. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20796. msm_routing_get_port_mixer,
  20797. msm_routing_put_port_mixer),
  20798. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20799. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20800. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20801. msm_routing_get_port_mixer,
  20802. msm_routing_put_port_mixer),
  20803. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20804. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20805. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20806. msm_routing_get_port_mixer,
  20807. msm_routing_put_port_mixer),
  20808. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20809. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20810. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20811. msm_routing_get_port_mixer,
  20812. msm_routing_put_port_mixer),
  20813. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20814. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20815. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20816. msm_routing_get_port_mixer,
  20817. msm_routing_put_port_mixer),
  20818. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20819. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20820. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20821. msm_routing_get_port_mixer,
  20822. msm_routing_put_port_mixer),
  20823. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20824. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20825. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20826. msm_routing_get_port_mixer,
  20827. msm_routing_put_port_mixer),
  20828. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20829. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20830. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20831. msm_routing_get_port_mixer,
  20832. msm_routing_put_port_mixer),
  20833. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20834. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  20835. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20836. msm_routing_get_port_mixer,
  20837. msm_routing_put_port_mixer),
  20838. };
  20839. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  20840. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20841. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20842. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20843. msm_routing_get_port_mixer,
  20844. msm_routing_put_port_mixer),
  20845. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20846. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20847. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20848. msm_routing_get_port_mixer,
  20849. msm_routing_put_port_mixer),
  20850. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20851. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20852. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20853. msm_routing_get_port_mixer,
  20854. msm_routing_put_port_mixer),
  20855. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20856. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20857. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20858. msm_routing_get_port_mixer,
  20859. msm_routing_put_port_mixer),
  20860. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20861. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20862. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20863. msm_routing_get_port_mixer,
  20864. msm_routing_put_port_mixer),
  20865. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20866. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20867. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20868. msm_routing_get_port_mixer,
  20869. msm_routing_put_port_mixer),
  20870. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20871. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20872. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20873. msm_routing_get_port_mixer,
  20874. msm_routing_put_port_mixer),
  20875. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20876. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20877. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20878. msm_routing_get_port_mixer,
  20879. msm_routing_put_port_mixer),
  20880. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20881. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20882. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20883. msm_routing_get_port_mixer,
  20884. msm_routing_put_port_mixer),
  20885. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20886. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20887. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20888. msm_routing_get_port_mixer,
  20889. msm_routing_put_port_mixer),
  20890. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20891. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20892. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20893. msm_routing_get_port_mixer,
  20894. msm_routing_put_port_mixer),
  20895. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20896. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20897. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20898. msm_routing_get_port_mixer,
  20899. msm_routing_put_port_mixer),
  20900. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20901. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20902. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20903. msm_routing_get_port_mixer,
  20904. msm_routing_put_port_mixer),
  20905. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20906. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20907. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20908. msm_routing_get_port_mixer,
  20909. msm_routing_put_port_mixer),
  20910. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20911. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20912. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20913. msm_routing_get_port_mixer,
  20914. msm_routing_put_port_mixer),
  20915. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20916. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20917. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20918. msm_routing_get_port_mixer,
  20919. msm_routing_put_port_mixer),
  20920. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20921. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20922. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20923. msm_routing_get_port_mixer,
  20924. msm_routing_put_port_mixer),
  20925. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20926. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20927. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20928. msm_routing_get_port_mixer,
  20929. msm_routing_put_port_mixer),
  20930. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20931. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20932. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20933. msm_routing_get_port_mixer,
  20934. msm_routing_put_port_mixer),
  20935. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20936. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20937. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20938. msm_routing_get_port_mixer,
  20939. msm_routing_put_port_mixer),
  20940. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20941. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20942. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20943. msm_routing_get_port_mixer,
  20944. msm_routing_put_port_mixer),
  20945. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20946. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20947. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20948. msm_routing_get_port_mixer,
  20949. msm_routing_put_port_mixer),
  20950. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20951. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20952. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20953. msm_routing_get_port_mixer,
  20954. msm_routing_put_port_mixer),
  20955. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20956. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  20957. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20958. msm_routing_get_port_mixer,
  20959. msm_routing_put_port_mixer),
  20960. };
  20961. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  20962. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20963. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20964. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20965. msm_routing_get_port_mixer,
  20966. msm_routing_put_port_mixer),
  20967. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20968. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20969. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20970. msm_routing_get_port_mixer,
  20971. msm_routing_put_port_mixer),
  20972. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20973. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20974. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20975. msm_routing_get_port_mixer,
  20976. msm_routing_put_port_mixer),
  20977. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20978. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20979. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20980. msm_routing_get_port_mixer,
  20981. msm_routing_put_port_mixer),
  20982. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20983. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20984. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20985. msm_routing_get_port_mixer,
  20986. msm_routing_put_port_mixer),
  20987. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20988. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20989. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20990. msm_routing_get_port_mixer,
  20991. msm_routing_put_port_mixer),
  20992. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20993. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20994. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20995. msm_routing_get_port_mixer,
  20996. msm_routing_put_port_mixer),
  20997. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20998. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20999. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  21000. msm_routing_get_port_mixer,
  21001. msm_routing_put_port_mixer),
  21002. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21003. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21004. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  21005. msm_routing_get_port_mixer,
  21006. msm_routing_put_port_mixer),
  21007. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  21008. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21009. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  21010. msm_routing_get_port_mixer,
  21011. msm_routing_put_port_mixer),
  21012. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  21013. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21014. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  21015. msm_routing_get_port_mixer,
  21016. msm_routing_put_port_mixer),
  21017. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  21018. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21019. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  21020. msm_routing_get_port_mixer,
  21021. msm_routing_put_port_mixer),
  21022. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  21023. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21024. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  21025. msm_routing_get_port_mixer,
  21026. msm_routing_put_port_mixer),
  21027. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  21028. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21029. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  21030. msm_routing_get_port_mixer,
  21031. msm_routing_put_port_mixer),
  21032. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  21033. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21034. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  21035. msm_routing_get_port_mixer,
  21036. msm_routing_put_port_mixer),
  21037. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  21038. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21039. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  21040. msm_routing_get_port_mixer,
  21041. msm_routing_put_port_mixer),
  21042. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21043. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21044. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  21045. msm_routing_get_port_mixer,
  21046. msm_routing_put_port_mixer),
  21047. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  21048. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21049. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  21050. msm_routing_get_port_mixer,
  21051. msm_routing_put_port_mixer),
  21052. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  21053. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21054. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  21055. msm_routing_get_port_mixer,
  21056. msm_routing_put_port_mixer),
  21057. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  21058. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21059. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  21060. msm_routing_get_port_mixer,
  21061. msm_routing_put_port_mixer),
  21062. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  21063. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21064. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  21065. msm_routing_get_port_mixer,
  21066. msm_routing_put_port_mixer),
  21067. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  21068. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21069. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  21070. msm_routing_get_port_mixer,
  21071. msm_routing_put_port_mixer),
  21072. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  21073. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21074. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  21075. msm_routing_get_port_mixer,
  21076. msm_routing_put_port_mixer),
  21077. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  21078. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  21079. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  21080. msm_routing_get_port_mixer,
  21081. msm_routing_put_port_mixer),
  21082. };
  21083. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  21084. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21085. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21086. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  21087. msm_routing_get_port_mixer,
  21088. msm_routing_put_port_mixer),
  21089. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21090. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21091. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  21092. msm_routing_get_port_mixer,
  21093. msm_routing_put_port_mixer),
  21094. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21095. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21096. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  21097. msm_routing_get_port_mixer,
  21098. msm_routing_put_port_mixer),
  21099. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21100. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21101. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  21102. msm_routing_get_port_mixer,
  21103. msm_routing_put_port_mixer),
  21104. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  21105. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21106. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  21107. msm_routing_get_port_mixer,
  21108. msm_routing_put_port_mixer),
  21109. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  21110. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21111. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  21112. msm_routing_get_port_mixer,
  21113. msm_routing_put_port_mixer),
  21114. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21115. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21116. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  21117. msm_routing_get_port_mixer,
  21118. msm_routing_put_port_mixer),
  21119. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  21120. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21121. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  21122. msm_routing_get_port_mixer,
  21123. msm_routing_put_port_mixer),
  21124. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21125. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21126. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  21127. msm_routing_get_port_mixer,
  21128. msm_routing_put_port_mixer),
  21129. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  21130. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21131. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  21132. msm_routing_get_port_mixer,
  21133. msm_routing_put_port_mixer),
  21134. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  21135. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21136. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  21137. msm_routing_get_port_mixer,
  21138. msm_routing_put_port_mixer),
  21139. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  21140. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21141. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  21142. msm_routing_get_port_mixer,
  21143. msm_routing_put_port_mixer),
  21144. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  21145. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21146. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  21147. msm_routing_get_port_mixer,
  21148. msm_routing_put_port_mixer),
  21149. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  21150. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21151. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  21152. msm_routing_get_port_mixer,
  21153. msm_routing_put_port_mixer),
  21154. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  21155. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21156. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  21157. msm_routing_get_port_mixer,
  21158. msm_routing_put_port_mixer),
  21159. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  21160. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21161. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  21162. msm_routing_get_port_mixer,
  21163. msm_routing_put_port_mixer),
  21164. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21165. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21166. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  21167. msm_routing_get_port_mixer,
  21168. msm_routing_put_port_mixer),
  21169. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  21170. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21171. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  21172. msm_routing_get_port_mixer,
  21173. msm_routing_put_port_mixer),
  21174. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  21175. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21176. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  21177. msm_routing_get_port_mixer,
  21178. msm_routing_put_port_mixer),
  21179. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  21180. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21181. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  21182. msm_routing_get_port_mixer,
  21183. msm_routing_put_port_mixer),
  21184. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  21185. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21186. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  21187. msm_routing_get_port_mixer,
  21188. msm_routing_put_port_mixer),
  21189. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  21190. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21191. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  21192. msm_routing_get_port_mixer,
  21193. msm_routing_put_port_mixer),
  21194. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  21195. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21196. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  21197. msm_routing_get_port_mixer,
  21198. msm_routing_put_port_mixer),
  21199. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  21200. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  21201. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  21202. msm_routing_get_port_mixer,
  21203. msm_routing_put_port_mixer),
  21204. };
  21205. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  21206. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  21207. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21208. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  21209. msm_routing_get_port_mixer,
  21210. msm_routing_put_port_mixer),
  21211. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  21212. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21213. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  21214. msm_routing_get_port_mixer,
  21215. msm_routing_put_port_mixer),
  21216. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  21217. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  21218. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  21219. msm_routing_get_port_mixer,
  21220. msm_routing_put_port_mixer),
  21221. };
  21222. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  21223. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21224. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21225. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21226. msm_routing_put_port_mixer),
  21227. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21228. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21229. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21230. msm_routing_put_port_mixer),
  21231. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21232. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21233. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21234. msm_routing_put_port_mixer),
  21235. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21236. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21237. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21238. msm_routing_put_port_mixer),
  21239. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21240. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21241. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21242. msm_routing_put_port_mixer),
  21243. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21244. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21245. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21246. msm_routing_put_port_mixer),
  21247. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21248. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21249. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21250. msm_routing_put_port_mixer),
  21251. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21252. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  21253. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21254. msm_routing_put_port_mixer),
  21255. };
  21256. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  21257. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  21258. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21259. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21260. msm_routing_put_port_mixer),
  21261. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  21262. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21263. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21264. msm_routing_put_port_mixer),
  21265. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21266. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21267. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21268. msm_routing_put_port_mixer),
  21269. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21270. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21271. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21272. msm_routing_put_port_mixer),
  21273. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  21274. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21275. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21276. msm_routing_put_port_mixer),
  21277. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  21278. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21279. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  21280. msm_routing_put_port_mixer),
  21281. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  21282. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21283. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  21284. msm_routing_put_port_mixer),
  21285. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  21286. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21287. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  21288. msm_routing_put_port_mixer),
  21289. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  21290. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21291. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  21292. msm_routing_put_port_mixer),
  21293. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  21294. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  21295. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  21296. msm_routing_put_port_mixer),
  21297. };
  21298. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  21299. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21300. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21301. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21302. msm_routing_put_listen_mixer),
  21303. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21304. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21305. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21306. msm_routing_put_listen_mixer),
  21307. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21308. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21309. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21310. msm_routing_put_listen_mixer),
  21311. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21312. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21313. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21314. msm_routing_put_listen_mixer),
  21315. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21316. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21317. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21318. msm_routing_put_listen_mixer),
  21319. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21320. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21321. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21322. msm_routing_put_listen_mixer),
  21323. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21324. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21325. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21326. msm_routing_put_listen_mixer),
  21327. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21328. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21329. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21330. msm_routing_put_listen_mixer),
  21331. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21332. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21333. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21334. msm_routing_put_listen_mixer),
  21335. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21336. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21337. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21338. msm_routing_put_listen_mixer),
  21339. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21340. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21341. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21342. msm_routing_put_listen_mixer),
  21343. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21344. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21345. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21346. msm_routing_put_listen_mixer),
  21347. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21348. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21349. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21350. msm_routing_put_listen_mixer),
  21351. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21352. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21353. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  21354. msm_routing_put_listen_mixer),
  21355. };
  21356. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  21357. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21358. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21359. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21360. msm_routing_put_listen_mixer),
  21361. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  21362. SND_SOC_NOPM,
  21363. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21364. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21365. msm_routing_put_listen_mixer),
  21366. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21367. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21368. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21369. msm_routing_put_listen_mixer),
  21370. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21371. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21372. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21373. msm_routing_put_listen_mixer),
  21374. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21375. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21376. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21377. msm_routing_put_listen_mixer),
  21378. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21379. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21380. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21381. msm_routing_put_listen_mixer),
  21382. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21383. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21384. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21385. msm_routing_put_listen_mixer),
  21386. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21387. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21388. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21389. msm_routing_put_listen_mixer),
  21390. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21391. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21392. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21393. msm_routing_put_listen_mixer),
  21394. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21395. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21396. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21397. msm_routing_put_listen_mixer),
  21398. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21399. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21400. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21401. msm_routing_put_listen_mixer),
  21402. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21403. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21404. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21405. msm_routing_put_listen_mixer),
  21406. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21407. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21408. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21409. msm_routing_put_listen_mixer),
  21410. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21411. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21412. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  21413. msm_routing_put_listen_mixer),
  21414. };
  21415. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  21416. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21417. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21418. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21419. msm_routing_put_listen_mixer),
  21420. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21421. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21422. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21423. msm_routing_put_listen_mixer),
  21424. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21425. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21426. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21427. msm_routing_put_listen_mixer),
  21428. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21429. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21430. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21431. msm_routing_put_listen_mixer),
  21432. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21433. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21434. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21435. msm_routing_put_listen_mixer),
  21436. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21437. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21438. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21439. msm_routing_put_listen_mixer),
  21440. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21441. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21442. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21443. msm_routing_put_listen_mixer),
  21444. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21445. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21446. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21447. msm_routing_put_listen_mixer),
  21448. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21449. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21450. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21451. msm_routing_put_listen_mixer),
  21452. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21453. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21454. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21455. msm_routing_put_listen_mixer),
  21456. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21457. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21458. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21459. msm_routing_put_listen_mixer),
  21460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21462. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21463. msm_routing_put_listen_mixer),
  21464. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21465. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21466. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21467. msm_routing_put_listen_mixer),
  21468. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21469. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21470. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  21471. msm_routing_put_listen_mixer),
  21472. };
  21473. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  21474. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21475. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21476. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21477. msm_routing_put_listen_mixer),
  21478. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21479. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21480. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21481. msm_routing_put_listen_mixer),
  21482. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21483. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21484. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21485. msm_routing_put_listen_mixer),
  21486. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21487. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21488. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21489. msm_routing_put_listen_mixer),
  21490. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21491. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21492. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21493. msm_routing_put_listen_mixer),
  21494. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21495. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21496. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21497. msm_routing_put_listen_mixer),
  21498. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21499. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21500. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21501. msm_routing_put_listen_mixer),
  21502. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21503. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21504. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21505. msm_routing_put_listen_mixer),
  21506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21508. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21509. msm_routing_put_listen_mixer),
  21510. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21511. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21512. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21513. msm_routing_put_listen_mixer),
  21514. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21515. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21516. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21517. msm_routing_put_listen_mixer),
  21518. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21519. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21520. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21521. msm_routing_put_listen_mixer),
  21522. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21523. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21524. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21525. msm_routing_put_listen_mixer),
  21526. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21527. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21528. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  21529. msm_routing_put_listen_mixer),
  21530. };
  21531. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  21532. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21533. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21534. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21535. msm_routing_put_listen_mixer),
  21536. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21537. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21538. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21539. msm_routing_put_listen_mixer),
  21540. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21541. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21542. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21543. msm_routing_put_listen_mixer),
  21544. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21545. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21546. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21547. msm_routing_put_listen_mixer),
  21548. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21549. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21550. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21551. msm_routing_put_listen_mixer),
  21552. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21553. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21554. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21555. msm_routing_put_listen_mixer),
  21556. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21557. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21558. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21559. msm_routing_put_listen_mixer),
  21560. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21561. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21562. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21563. msm_routing_put_listen_mixer),
  21564. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21565. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21566. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21567. msm_routing_put_listen_mixer),
  21568. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21569. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21570. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21571. msm_routing_put_listen_mixer),
  21572. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21573. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21574. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21575. msm_routing_put_listen_mixer),
  21576. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21577. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21578. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21579. msm_routing_put_listen_mixer),
  21580. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21581. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21582. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21583. msm_routing_put_listen_mixer),
  21584. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21585. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21586. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  21587. msm_routing_put_listen_mixer),
  21588. };
  21589. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  21590. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21591. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21592. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21593. msm_routing_put_listen_mixer),
  21594. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21595. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21596. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21597. msm_routing_put_listen_mixer),
  21598. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21599. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21600. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21601. msm_routing_put_listen_mixer),
  21602. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21603. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21604. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21605. msm_routing_put_listen_mixer),
  21606. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21607. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21608. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21609. msm_routing_put_listen_mixer),
  21610. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21611. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21612. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21613. msm_routing_put_listen_mixer),
  21614. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21615. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21616. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21617. msm_routing_put_listen_mixer),
  21618. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21619. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21620. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21621. msm_routing_put_listen_mixer),
  21622. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21623. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21624. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21625. msm_routing_put_listen_mixer),
  21626. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21627. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21628. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21629. msm_routing_put_listen_mixer),
  21630. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21631. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21632. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21633. msm_routing_put_listen_mixer),
  21634. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21635. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21636. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21637. msm_routing_put_listen_mixer),
  21638. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21639. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21640. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21641. msm_routing_put_listen_mixer),
  21642. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21643. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21644. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  21645. msm_routing_put_listen_mixer),
  21646. };
  21647. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  21648. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21649. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21650. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21651. msm_routing_put_listen_mixer),
  21652. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21653. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21654. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21655. msm_routing_put_listen_mixer),
  21656. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21657. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21658. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21659. msm_routing_put_listen_mixer),
  21660. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21661. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21662. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21663. msm_routing_put_listen_mixer),
  21664. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21665. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21666. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21667. msm_routing_put_listen_mixer),
  21668. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21669. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21670. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21671. msm_routing_put_listen_mixer),
  21672. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21673. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21674. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21675. msm_routing_put_listen_mixer),
  21676. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21677. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21678. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21679. msm_routing_put_listen_mixer),
  21680. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21681. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21682. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21683. msm_routing_put_listen_mixer),
  21684. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21685. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21686. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21687. msm_routing_put_listen_mixer),
  21688. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21689. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21690. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21691. msm_routing_put_listen_mixer),
  21692. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21693. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21694. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21695. msm_routing_put_listen_mixer),
  21696. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21697. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21698. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21699. msm_routing_put_listen_mixer),
  21700. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21701. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21702. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  21703. msm_routing_put_listen_mixer),
  21704. };
  21705. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  21706. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  21707. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  21708. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21709. msm_routing_put_listen_mixer),
  21710. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  21711. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  21712. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21713. msm_routing_put_listen_mixer),
  21714. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  21715. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  21716. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21717. msm_routing_put_listen_mixer),
  21718. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  21719. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  21720. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21721. msm_routing_put_listen_mixer),
  21722. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  21723. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  21724. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21725. msm_routing_put_listen_mixer),
  21726. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  21727. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  21728. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21729. msm_routing_put_listen_mixer),
  21730. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  21731. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  21732. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21733. msm_routing_put_listen_mixer),
  21734. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  21735. MSM_BACKEND_DAI_INT3_MI2S_TX,
  21736. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21737. msm_routing_put_listen_mixer),
  21738. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  21739. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  21740. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21741. msm_routing_put_listen_mixer),
  21742. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  21743. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  21744. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21745. msm_routing_put_listen_mixer),
  21746. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  21747. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  21748. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21749. msm_routing_put_listen_mixer),
  21750. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  21751. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  21752. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21753. msm_routing_put_listen_mixer),
  21754. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  21755. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  21756. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21757. msm_routing_put_listen_mixer),
  21758. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  21759. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  21760. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  21761. msm_routing_put_listen_mixer),
  21762. };
  21763. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  21764. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21765. 0, 1, 0, msm_routing_get_switch_mixer,
  21766. msm_routing_put_switch_mixer);
  21767. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  21768. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21769. 0, 1, 0, msm_routing_get_switch_mixer,
  21770. msm_routing_put_switch_mixer);
  21771. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  21772. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21773. 0, 1, 0, msm_routing_get_switch_mixer,
  21774. msm_routing_put_switch_mixer);
  21775. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  21776. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21777. 0, 1, 0, msm_routing_get_switch_mixer,
  21778. msm_routing_put_switch_mixer);
  21779. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  21780. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21781. 0, 1, 0, msm_routing_get_switch_mixer,
  21782. msm_routing_put_switch_mixer);
  21783. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  21784. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21785. 0, 1, 0, msm_routing_get_switch_mixer,
  21786. msm_routing_put_switch_mixer);
  21787. static const struct snd_kcontrol_new cdc_dma_rx_1_switch_mixer_controls =
  21788. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21789. 0, 1, 0, msm_routing_get_switch_mixer,
  21790. msm_routing_put_switch_mixer);
  21791. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  21792. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21793. 0, 1, 0, msm_routing_get_switch_mixer,
  21794. msm_routing_put_switch_mixer);
  21795. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  21796. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21797. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  21798. msm_routing_put_fm_pcmrx_switch_mixer);
  21799. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  21800. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21801. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  21802. msm_routing_put_int0_mi2s_switch_mixer);
  21803. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  21804. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21805. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  21806. msm_routing_put_int4_mi2s_switch_mixer);
  21807. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  21808. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21809. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  21810. msm_routing_put_pri_mi2s_switch_mixer);
  21811. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  21812. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21813. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  21814. msm_routing_put_sec_mi2s_switch_mixer);
  21815. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  21816. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21817. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  21818. msm_routing_put_tert_mi2s_switch_mixer);
  21819. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  21820. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21821. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  21822. msm_routing_put_quat_mi2s_switch_mixer);
  21823. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  21824. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21825. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  21826. msm_routing_put_quin_mi2s_switch_mixer);
  21827. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  21828. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21829. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  21830. msm_routing_put_sen_mi2s_switch_mixer);
  21831. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  21832. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21833. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21834. msm_routing_put_hfp_switch_mixer);
  21835. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  21836. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21837. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21838. msm_routing_put_hfp_switch_mixer);
  21839. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  21840. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21841. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21842. msm_routing_put_hfp_switch_mixer);
  21843. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  21844. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21845. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  21846. msm_routing_put_hfp_switch_mixer);
  21847. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  21848. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21849. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  21850. msm_routing_put_usb_switch_mixer);
  21851. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  21852. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21853. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  21854. msm_routing_a2dp_switch_mixer_put);
  21855. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  21856. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  21857. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  21858. msm_routing_sco_switch_mixer_put);
  21859. static const struct soc_enum lsm_port_enum =
  21860. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  21861. static const char * const lsm_func_text[] = {
  21862. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  21863. };
  21864. static const struct soc_enum lsm_func_enum =
  21865. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  21866. static const struct snd_kcontrol_new lsm_controls[] = {
  21867. /* kcontrol of lsm_function */
  21868. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21869. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21870. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21871. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21872. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21873. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21874. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21875. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21876. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21877. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21878. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21879. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21880. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21881. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21882. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21883. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21884. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21885. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21886. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21887. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21888. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21889. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21890. SOC_ENUM_EXT(TERT_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  21891. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  21892. /* kcontrol of lsm_port */
  21893. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  21894. msm_routing_lsm_port_get,
  21895. msm_routing_lsm_port_put),
  21896. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  21897. msm_routing_lsm_port_get,
  21898. msm_routing_lsm_port_put),
  21899. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  21900. msm_routing_lsm_port_get,
  21901. msm_routing_lsm_port_put),
  21902. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  21903. msm_routing_lsm_port_get,
  21904. msm_routing_lsm_port_put),
  21905. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  21906. msm_routing_lsm_port_get,
  21907. msm_routing_lsm_port_put),
  21908. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  21909. msm_routing_lsm_port_get,
  21910. msm_routing_lsm_port_put),
  21911. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  21912. msm_routing_lsm_port_get,
  21913. msm_routing_lsm_port_put),
  21914. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  21915. msm_routing_lsm_port_get,
  21916. msm_routing_lsm_port_put),
  21917. };
  21918. static const char * const aanc_slim_0_rx_text[] = {
  21919. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  21920. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  21921. };
  21922. static const struct soc_enum aanc_slim_0_rx_enum =
  21923. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  21924. aanc_slim_0_rx_text);
  21925. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  21926. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  21927. msm_routing_slim_0_rx_aanc_mux_get,
  21928. msm_routing_slim_0_rx_aanc_mux_put)
  21929. };
  21930. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  21931. struct snd_ctl_elem_value *ucontrol)
  21932. {
  21933. ucontrol->value.integer.value[0] = aanc_level;
  21934. return 0;
  21935. }
  21936. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  21937. struct snd_ctl_elem_value *ucontrol)
  21938. {
  21939. int ret = 0;
  21940. mutex_lock(&routing_lock);
  21941. aanc_level = ucontrol->value.integer.value[0];
  21942. pr_debug("%s: value: %ld\n",
  21943. __func__, ucontrol->value.integer.value[0]);
  21944. ret = afe_set_aanc_noise_level(aanc_level);
  21945. mutex_unlock(&routing_lock);
  21946. return ret;
  21947. }
  21948. static const struct snd_kcontrol_new aanc_noise_level[] = {
  21949. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  21950. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  21951. };
  21952. static int msm_routing_get_stereo_to_custom_stereo_control(
  21953. struct snd_kcontrol *kcontrol,
  21954. struct snd_ctl_elem_value *ucontrol)
  21955. {
  21956. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  21957. return 0;
  21958. }
  21959. static int msm_routing_put_stereo_to_custom_stereo_control(
  21960. struct snd_kcontrol *kcontrol,
  21961. struct snd_ctl_elem_value *ucontrol)
  21962. {
  21963. int flag = 0, i = 0, rc = 0, idx = 0;
  21964. int be_index = 0, port_id, topo_id;
  21965. unsigned int session_id = 0;
  21966. uint16_t op_FL_ip_FL_weight = 0;
  21967. uint16_t op_FL_ip_FR_weight = 0;
  21968. uint16_t op_FR_ip_FL_weight = 0;
  21969. uint16_t op_FR_ip_FR_weight = 0;
  21970. flag = ucontrol->value.integer.value[0];
  21971. pr_debug("%s E flag %d\n", __func__, flag);
  21972. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  21973. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  21974. __func__, is_custom_stereo_on, flag);
  21975. return 0;
  21976. }
  21977. is_custom_stereo_on = flag ? true : false;
  21978. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  21979. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  21980. port_id = msm_bedais[be_index].port_id;
  21981. if (!msm_bedais[be_index].active)
  21982. continue;
  21983. if ((port_id != SLIMBUS_0_RX) &&
  21984. (port_id != RT_PROXY_PORT_001_RX) &&
  21985. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  21986. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  21987. continue;
  21988. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  21989. MSM_FRONTEND_DAI_MM_SIZE) {
  21990. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  21991. LEGACY_PCM_MODE)
  21992. goto skip_send_custom_stereo;
  21993. session_id =
  21994. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  21995. if (is_custom_stereo_on) {
  21996. op_FL_ip_FL_weight =
  21997. Q14_GAIN_ZERO_POINT_FIVE;
  21998. op_FL_ip_FR_weight =
  21999. Q14_GAIN_ZERO_POINT_FIVE;
  22000. op_FR_ip_FL_weight =
  22001. Q14_GAIN_ZERO_POINT_FIVE;
  22002. op_FR_ip_FR_weight =
  22003. Q14_GAIN_ZERO_POINT_FIVE;
  22004. } else {
  22005. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  22006. op_FL_ip_FR_weight = 0;
  22007. op_FR_ip_FL_weight = 0;
  22008. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  22009. }
  22010. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22011. unsigned long copp =
  22012. session_copp_map[i]
  22013. [SESSION_TYPE_RX][be_index];
  22014. if (!test_bit(idx, &copp))
  22015. goto skip_send_custom_stereo;
  22016. topo_id = adm_get_topology_for_port_copp_idx(
  22017. msm_bedais[be_index].port_id, idx);
  22018. if (topo_id < 0)
  22019. pr_debug("%s:Err:custom stereo topo %d",
  22020. __func__, topo_id);
  22021. pr_debug("idx %d\n", idx);
  22022. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  22023. rc = msm_ds2_dap_set_custom_stereo_onoff
  22024. (msm_bedais[be_index].port_id,
  22025. idx, is_custom_stereo_on);
  22026. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  22027. rc = dolby_dap_set_custom_stereo_onoff(
  22028. msm_bedais[be_index].port_id,
  22029. idx, is_custom_stereo_on);
  22030. else
  22031. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  22032. (msm_bedais[be_index].port_id,
  22033. idx, session_id,
  22034. op_FL_ip_FL_weight,
  22035. op_FL_ip_FR_weight,
  22036. op_FR_ip_FL_weight,
  22037. op_FR_ip_FR_weight);
  22038. if (rc < 0)
  22039. skip_send_custom_stereo:
  22040. pr_err("%s: err setting custom stereo\n",
  22041. __func__);
  22042. }
  22043. }
  22044. }
  22045. return 0;
  22046. }
  22047. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  22048. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  22049. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  22050. msm_routing_put_stereo_to_custom_stereo_control),
  22051. };
  22052. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22053. struct snd_ctl_elem_value *ucontrol)
  22054. {
  22055. return 0;
  22056. }
  22057. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  22058. struct snd_ctl_elem_value *ucontrol)
  22059. {
  22060. int i = 0, j;
  22061. int num_app_types = ucontrol->value.integer.value[i++];
  22062. pr_debug("%s\n", __func__);
  22063. memset(app_type_cfg, 0, MAX_APP_TYPES*
  22064. sizeof(struct msm_pcm_routing_app_type_data));
  22065. if (num_app_types > MAX_APP_TYPES) {
  22066. pr_err("%s: number of app types exceed the max supported\n",
  22067. __func__);
  22068. return -EINVAL;
  22069. }
  22070. for (j = 0; j < num_app_types; j++) {
  22071. app_type_cfg[j].app_type =
  22072. ucontrol->value.integer.value[i++];
  22073. app_type_cfg[j].sample_rate =
  22074. ucontrol->value.integer.value[i++];
  22075. app_type_cfg[j].bit_width =
  22076. ucontrol->value.integer.value[i++];
  22077. }
  22078. return 0;
  22079. }
  22080. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  22081. struct snd_ctl_elem_value *ucontrol)
  22082. {
  22083. int j, fe_id, be_id, port_type;
  22084. int ret = 0;
  22085. unsigned long copp;
  22086. struct msm_pcm_routing_bdai_data *bedai;
  22087. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22088. SESSION_TYPE_RX;
  22089. int app_type = ucontrol->value.integer.value[1];
  22090. int gain = (ucontrol->value.integer.value[2] +
  22091. ucontrol->value.integer.value[3])/2;
  22092. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22093. MSM_AFE_PORT_TYPE_TX;
  22094. mutex_lock(&routing_lock);
  22095. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22096. if (is_be_dai_extproc(be_id))
  22097. continue;
  22098. bedai = &msm_bedais[be_id];
  22099. if (afe_get_port_type(bedai->port_id) != port_type)
  22100. continue;
  22101. if (!bedai->active)
  22102. continue;
  22103. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22104. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22105. continue;
  22106. if (app_type !=
  22107. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22108. continue;
  22109. copp = session_copp_map[fe_id][dir][be_id];
  22110. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  22111. if (!test_bit(j, &copp))
  22112. continue;
  22113. ret |= adm_set_volume(bedai->port_id, j, gain);
  22114. }
  22115. }
  22116. }
  22117. mutex_unlock(&routing_lock);
  22118. return ret ? -EINVAL : 0;
  22119. }
  22120. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  22121. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  22122. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  22123. msm_routing_put_app_type_cfg_control),
  22124. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  22125. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  22126. };
  22127. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  22128. struct snd_ctl_elem_value *ucontrol)
  22129. {
  22130. int copp_idx, fe_id, be_id, port_type;
  22131. int ret = 0;
  22132. unsigned long copp;
  22133. struct msm_pcm_routing_bdai_data *bedai;
  22134. u8 *packed_params = NULL;
  22135. struct param_hdr_v3 param_hdr;
  22136. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  22137. sizeof(uint32_t));
  22138. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  22139. SESSION_TYPE_RX;
  22140. int app_type = ucontrol->value.integer.value[1];
  22141. int module_id = ucontrol->value.integer.value[2];
  22142. int instance_id = ucontrol->value.integer.value[3];
  22143. int param_id = ucontrol->value.integer.value[4];
  22144. int param_value = ucontrol->value.integer.value[5];
  22145. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  22146. MSM_AFE_PORT_TYPE_TX;
  22147. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  22148. __func__, app_type, module_id,
  22149. instance_id, param_id, param_value);
  22150. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  22151. if (!packed_params)
  22152. return -ENOMEM;
  22153. memset(&param_hdr, 0, sizeof(param_hdr));
  22154. param_hdr.module_id = module_id;
  22155. param_hdr.instance_id = instance_id;
  22156. param_hdr.param_id = param_id;
  22157. param_hdr.param_size = sizeof(uint32_t);
  22158. packed_param_size = 0;
  22159. mutex_lock(&routing_lock);
  22160. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  22161. if (is_be_dai_extproc(be_id))
  22162. continue;
  22163. bedai = &msm_bedais[be_id];
  22164. if (afe_get_port_type(bedai->port_id) != port_type)
  22165. continue;
  22166. if (!bedai->active)
  22167. continue;
  22168. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  22169. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  22170. continue;
  22171. if (app_type !=
  22172. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  22173. continue;
  22174. copp = session_copp_map[fe_id][dir][be_id];
  22175. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  22176. copp_idx++) {
  22177. if (!test_bit(copp_idx, &copp))
  22178. continue;
  22179. ret = q6common_pack_pp_params(packed_params,
  22180. &param_hdr,
  22181. (u8 *) &param_value,
  22182. &packed_param_size);
  22183. if (ret) {
  22184. pr_err("%s: Failed to pack params, error %d\n",
  22185. __func__, ret);
  22186. goto done;
  22187. }
  22188. ret = adm_set_pp_params(bedai->port_id,
  22189. copp_idx, NULL,
  22190. packed_params,
  22191. packed_param_size);
  22192. if (ret) {
  22193. pr_err("%s: Setting param failed with err=%d\n",
  22194. __func__, ret);
  22195. ret = -EINVAL;
  22196. goto done;
  22197. }
  22198. }
  22199. }
  22200. }
  22201. done:
  22202. mutex_unlock(&routing_lock);
  22203. kfree(packed_params);
  22204. return ret;
  22205. }
  22206. static const struct snd_kcontrol_new module_cfg_controls[] = {
  22207. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  22208. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  22209. };
  22210. static int msm_routing_get_lsm_app_type_cfg_control(
  22211. struct snd_kcontrol *kcontrol,
  22212. struct snd_ctl_elem_value *ucontrol)
  22213. {
  22214. int shift = ((struct soc_multi_mixer_control *)
  22215. kcontrol->private_value)->shift;
  22216. int i = 0, j = 0;
  22217. mutex_lock(&routing_lock);
  22218. ucontrol->value.integer.value[i] = num_app_cfg_types;
  22219. for (j = 0; j < num_app_cfg_types; ++j) {
  22220. ucontrol->value.integer.value[++i] =
  22221. lsm_app_type_cfg[j].app_type;
  22222. ucontrol->value.integer.value[++i] =
  22223. lsm_app_type_cfg[j].sample_rate;
  22224. ucontrol->value.integer.value[++i] =
  22225. lsm_app_type_cfg[j].bit_width;
  22226. if (shift == 1)
  22227. ucontrol->value.integer.value[++i] =
  22228. lsm_app_type_cfg[j].num_out_channels;
  22229. }
  22230. mutex_unlock(&routing_lock);
  22231. return 0;
  22232. }
  22233. static int msm_routing_put_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;
  22240. mutex_lock(&routing_lock);
  22241. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  22242. pr_err("%s: number of app types exceed the max supported\n",
  22243. __func__);
  22244. mutex_unlock(&routing_lock);
  22245. return -EINVAL;
  22246. }
  22247. num_app_cfg_types = ucontrol->value.integer.value[i++];
  22248. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  22249. sizeof(struct msm_pcm_routing_app_type_data));
  22250. for (j = 0; j < num_app_cfg_types; j++) {
  22251. lsm_app_type_cfg[j].app_type =
  22252. ucontrol->value.integer.value[i++];
  22253. lsm_app_type_cfg[j].sample_rate =
  22254. ucontrol->value.integer.value[i++];
  22255. lsm_app_type_cfg[j].bit_width =
  22256. ucontrol->value.integer.value[i++];
  22257. /* Shift of 1 indicates this is V2 mixer control */
  22258. if (shift == 1)
  22259. lsm_app_type_cfg[j].num_out_channels =
  22260. ucontrol->value.integer.value[i++];
  22261. }
  22262. mutex_unlock(&routing_lock);
  22263. return 0;
  22264. }
  22265. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  22266. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  22267. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22268. msm_routing_put_lsm_app_type_cfg_control),
  22269. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  22270. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  22271. msm_routing_put_lsm_app_type_cfg_control),
  22272. };
  22273. static int msm_routing_get_use_ds1_or_ds2_control(
  22274. struct snd_kcontrol *kcontrol,
  22275. struct snd_ctl_elem_value *ucontrol)
  22276. {
  22277. ucontrol->value.integer.value[0] = is_ds2_on;
  22278. return 0;
  22279. }
  22280. static int msm_routing_put_use_ds1_or_ds2_control(
  22281. struct snd_kcontrol *kcontrol,
  22282. struct snd_ctl_elem_value *ucontrol)
  22283. {
  22284. is_ds2_on = ucontrol->value.integer.value[0];
  22285. return 0;
  22286. }
  22287. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  22288. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  22289. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  22290. msm_routing_put_use_ds1_or_ds2_control),
  22291. };
  22292. static int msm_routing_get_hifi_filter_control(
  22293. struct snd_kcontrol *kcontrol,
  22294. struct snd_ctl_elem_value *ucontrol)
  22295. {
  22296. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  22297. return 0;
  22298. }
  22299. static int msm_routing_put_hifi_filter_control(
  22300. struct snd_kcontrol *kcontrol,
  22301. struct snd_ctl_elem_value *ucontrol)
  22302. {
  22303. hifi_filter_enabled = ucontrol->value.integer.value[0];
  22304. return 0;
  22305. }
  22306. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  22307. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  22308. 1, 0, msm_routing_get_hifi_filter_control,
  22309. msm_routing_put_hifi_filter_control),
  22310. };
  22311. static int msm_routing_get_ffecns_freeze_event_control(
  22312. struct snd_kcontrol *kcontrol,
  22313. struct snd_ctl_elem_value *ucontrol)
  22314. {
  22315. ucontrol->value.integer.value[0] = ffecns_freeze_event;
  22316. return 0;
  22317. }
  22318. static int msm_routing_put_ffecns_freeze_event_control(
  22319. struct snd_kcontrol *kcontrol,
  22320. struct snd_ctl_elem_value *ucontrol)
  22321. {
  22322. int ret = -EINVAL;
  22323. ffecns_freeze_event = ucontrol->value.integer.value[0];
  22324. ret = adm_set_ffecns_freeze_event(ffecns_freeze_event);
  22325. if (ret)
  22326. pr_err("%s: failed to set ffecns imc event to%d\n",
  22327. __func__, ffecns_freeze_event);
  22328. return ret;
  22329. }
  22330. static const struct snd_kcontrol_new use_ffecns_freeze_event_controls[] = {
  22331. SOC_SINGLE_EXT("FFECNS Freeze Event", SND_SOC_NOPM, 0,
  22332. 1, 0, msm_routing_get_ffecns_freeze_event_control,
  22333. msm_routing_put_ffecns_freeze_event_control),
  22334. };
  22335. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  22336. struct snd_ctl_elem_value *ucontrol) {
  22337. int rc = 0;
  22338. int be_idx = 0;
  22339. char *param_value;
  22340. int *update_param_value;
  22341. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  22342. struct param_hdr_v3 param_hdr;
  22343. param_value = kzalloc(param_size, GFP_KERNEL);
  22344. if (!param_value)
  22345. return -ENOMEM;
  22346. memset(&param_hdr, 0, sizeof(param_hdr));
  22347. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  22348. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  22349. break;
  22350. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  22351. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  22352. param_hdr.instance_id = INSTANCE_ID_0;
  22353. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  22354. param_hdr.param_size = param_size;
  22355. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  22356. NULL, &param_hdr, (u8 *) param_value);
  22357. if (rc) {
  22358. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  22359. kfree(param_value);
  22360. return -EINVAL;
  22361. }
  22362. update_param_value = (int *)param_value;
  22363. ucontrol->value.integer.value[0] = update_param_value[0];
  22364. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  22365. __func__, update_param_value[0]);
  22366. }
  22367. kfree(param_value);
  22368. return 0;
  22369. }
  22370. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  22371. struct snd_ctl_elem_value *ucontrol)
  22372. {
  22373. voc_session_id = ucontrol->value.integer.value[0];
  22374. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  22375. return 0;
  22376. }
  22377. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  22378. struct snd_ctl_elem_value *ucontrol)
  22379. {
  22380. ucontrol->value.integer.value[0] = voc_session_id;
  22381. return 0;
  22382. }
  22383. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  22384. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  22385. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  22386. msm_voc_session_id_put),
  22387. };
  22388. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  22389. struct snd_ctl_elem_info *uinfo)
  22390. {
  22391. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22392. uinfo->count = sizeof(struct sound_focus_param);
  22393. return 0;
  22394. }
  22395. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  22396. struct snd_ctl_elem_value *ucontrol)
  22397. {
  22398. int ret = 0;
  22399. struct sound_focus_param soundFocusData;
  22400. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22401. sizeof(struct sound_focus_param));
  22402. ret = voc_set_sound_focus(soundFocusData);
  22403. if (ret) {
  22404. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22405. __func__, ret);
  22406. ret = -EINVAL;
  22407. }
  22408. return ret;
  22409. }
  22410. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  22411. struct snd_ctl_elem_value *ucontrol)
  22412. {
  22413. int ret = 0;
  22414. struct sound_focus_param soundFocusData;
  22415. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  22416. ret = voc_get_sound_focus(&soundFocusData);
  22417. if (ret) {
  22418. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  22419. __func__, ret);
  22420. ret = -EINVAL;
  22421. goto done;
  22422. }
  22423. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22424. sizeof(struct sound_focus_param));
  22425. done:
  22426. return ret;
  22427. }
  22428. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  22429. struct snd_ctl_elem_info *uinfo)
  22430. {
  22431. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22432. uinfo->count = sizeof(struct source_tracking_param);
  22433. return 0;
  22434. }
  22435. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  22436. struct snd_ctl_elem_value *ucontrol)
  22437. {
  22438. int ret = 0;
  22439. struct source_tracking_param sourceTrackingData;
  22440. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  22441. ret = voc_get_source_tracking(&sourceTrackingData);
  22442. if (ret) {
  22443. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  22444. __func__, ret);
  22445. ret = -EINVAL;
  22446. goto done;
  22447. }
  22448. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22449. sizeof(struct source_tracking_param));
  22450. done:
  22451. return ret;
  22452. }
  22453. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  22454. int *copp_idx)
  22455. {
  22456. int i, idx, be_idx;
  22457. int ret = 0;
  22458. unsigned long copp;
  22459. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  22460. ret = q6audio_validate_port(port_id);
  22461. if (ret < 0) {
  22462. pr_err("%s: port validation failed id 0x%x ret %d\n",
  22463. __func__, port_id, ret);
  22464. ret = -EINVAL;
  22465. goto done;
  22466. }
  22467. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  22468. if (msm_bedais[be_idx].port_id == port_id)
  22469. break;
  22470. }
  22471. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  22472. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  22473. ret = -EINVAL;
  22474. goto done;
  22475. }
  22476. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  22477. MSM_FRONTEND_DAI_MAX) {
  22478. if (!(is_mm_lsm_fe_id(i) &&
  22479. route_check_fe_id_adm_support(i)))
  22480. continue;
  22481. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  22482. copp = session_copp_map[i]
  22483. [session_type][be_idx];
  22484. if (test_bit(idx, &copp))
  22485. break;
  22486. }
  22487. if (idx >= MAX_COPPS_PER_PORT)
  22488. continue;
  22489. else
  22490. break;
  22491. }
  22492. if (i >= MSM_FRONTEND_DAI_MAX) {
  22493. pr_debug("%s: Invalid FE, exiting\n", __func__);
  22494. ret = -EINVAL;
  22495. goto done;
  22496. }
  22497. *copp_idx = idx;
  22498. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  22499. done:
  22500. return ret;
  22501. }
  22502. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  22503. const char *prefix, int *port_id)
  22504. {
  22505. int ret = 0;
  22506. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  22507. /*
  22508. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  22509. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  22510. * and compare the string with the backend name to derive the port id.
  22511. */
  22512. if (!strcmp(kcontrol->id.name + strlen(prefix),
  22513. "SLIMBUS_0")) {
  22514. *port_id = SLIMBUS_0_TX;
  22515. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22516. "TERT_MI2S")) {
  22517. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  22518. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22519. "INT3_MI2S")) {
  22520. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  22521. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22522. "VA_CDC_DMA_TX_0")) {
  22523. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  22524. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22525. "TX_CDC_DMA_TX_3")) {
  22526. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  22527. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22528. "QUIN_TDM_TX_0")) {
  22529. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  22530. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  22531. "PRIMARY_TDM")) {
  22532. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  22533. } else {
  22534. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  22535. __func__, kcontrol->id.name);
  22536. ret = -EINVAL;
  22537. goto done;
  22538. }
  22539. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  22540. __func__, kcontrol->id.name, *port_id);
  22541. done:
  22542. return ret;
  22543. }
  22544. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  22545. struct snd_ctl_elem_value *ucontrol)
  22546. {
  22547. int ret = 0;
  22548. struct sound_focus_param soundFocusData;
  22549. int port_id, copp_idx;
  22550. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22551. "Sound Focus Audio Tx ", &port_id);
  22552. if (ret != 0) {
  22553. pr_err("%s: Error in deriving port id, err=%d\n",
  22554. __func__, ret);
  22555. ret = -EINVAL;
  22556. goto done;
  22557. }
  22558. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22559. &copp_idx);
  22560. if (ret) {
  22561. pr_err("%s: Could not get copp idx for port_id=%d\n",
  22562. __func__, port_id);
  22563. ret = -EINVAL;
  22564. goto done;
  22565. }
  22566. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  22567. sizeof(struct sound_focus_param));
  22568. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  22569. if (ret) {
  22570. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  22571. __func__, ret);
  22572. ret = -EINVAL;
  22573. goto done;
  22574. }
  22575. done:
  22576. return ret;
  22577. }
  22578. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  22579. struct snd_ctl_elem_value *ucontrol)
  22580. {
  22581. int ret = 0;
  22582. struct sound_focus_param soundFocusData;
  22583. int port_id, copp_idx;
  22584. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22585. "Sound Focus Audio Tx ", &port_id);
  22586. if (ret) {
  22587. pr_err("%s: Error in deriving port id, err=%d\n",
  22588. __func__, ret);
  22589. ret = -EINVAL;
  22590. goto done;
  22591. }
  22592. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22593. &copp_idx);
  22594. if (ret) {
  22595. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22596. __func__, port_id);
  22597. ret = -EINVAL;
  22598. goto done;
  22599. }
  22600. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  22601. if (ret) {
  22602. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  22603. __func__, ret);
  22604. ret = -EINVAL;
  22605. goto done;
  22606. }
  22607. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  22608. sizeof(struct sound_focus_param));
  22609. done:
  22610. return ret;
  22611. }
  22612. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  22613. struct snd_ctl_elem_value *ucontrol)
  22614. {
  22615. int ret = 0;
  22616. struct source_tracking_param sourceTrackingData;
  22617. int port_id, copp_idx;
  22618. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22619. "Source Tracking Audio Tx ", &port_id);
  22620. if (ret) {
  22621. pr_err("%s: Error in deriving port id, err=%d\n",
  22622. __func__, ret);
  22623. ret = -EINVAL;
  22624. goto done;
  22625. }
  22626. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22627. &copp_idx);
  22628. if (ret) {
  22629. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  22630. __func__, port_id);
  22631. ret = -EINVAL;
  22632. goto done;
  22633. }
  22634. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  22635. if (ret) {
  22636. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  22637. __func__, ret);
  22638. ret = -EINVAL;
  22639. goto done;
  22640. }
  22641. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  22642. sizeof(struct source_tracking_param));
  22643. done:
  22644. return ret;
  22645. }
  22646. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  22647. struct snd_ctl_elem_info *uinfo)
  22648. {
  22649. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  22650. uinfo->count = sizeof(struct doa_tracking_mon_param);
  22651. return 0;
  22652. }
  22653. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  22654. struct snd_ctl_elem_value *ucontrol)
  22655. {
  22656. int ret = 0;
  22657. struct doa_tracking_mon_param doa_tracking_data;
  22658. int port_id, copp_idx;
  22659. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  22660. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  22661. "Doa Tracking Monitor Listen ", &port_id);
  22662. if (ret) {
  22663. pr_err("%s: Error in deriving port id, err=%d\n",
  22664. __func__, ret);
  22665. ret = -EINVAL;
  22666. goto done;
  22667. }
  22668. /*
  22669. * If copp id exists for given port id, query adm to get doa data.
  22670. * Else query afe for doa tracking params.
  22671. * This is to support in cases where LSM directly connects to
  22672. * AFE for FFNS.
  22673. */
  22674. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  22675. &copp_idx);
  22676. if (!ret)
  22677. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  22678. &doa_tracking_data);
  22679. else
  22680. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  22681. if (ret) {
  22682. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  22683. __func__, ret);
  22684. ret = -EINVAL;
  22685. goto done;
  22686. }
  22687. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  22688. sizeof(struct doa_tracking_mon_param));
  22689. done:
  22690. return ret;
  22691. }
  22692. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  22693. {
  22694. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22695. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22696. .name = "Sound Focus Voice Tx SLIMBUS_0",
  22697. .info = msm_sound_focus_info,
  22698. .get = msm_voice_sound_focus_get,
  22699. .put = msm_voice_sound_focus_put,
  22700. },
  22701. {
  22702. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22704. .name = "Source Tracking Voice Tx SLIMBUS_0",
  22705. .info = msm_source_tracking_info,
  22706. .get = msm_voice_source_tracking_get,
  22707. },
  22708. {
  22709. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22710. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22711. .name = "Sound Focus Audio Tx SLIMBUS_0",
  22712. .info = msm_sound_focus_info,
  22713. .get = msm_audio_sound_focus_get,
  22714. .put = msm_audio_sound_focus_put,
  22715. },
  22716. {
  22717. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22718. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22719. .name = "Source Tracking Audio Tx SLIMBUS_0",
  22720. .info = msm_source_tracking_info,
  22721. .get = msm_audio_source_tracking_get,
  22722. },
  22723. {
  22724. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22725. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22726. .name = "Sound Focus Voice Tx TERT_MI2S",
  22727. .info = msm_sound_focus_info,
  22728. .get = msm_voice_sound_focus_get,
  22729. .put = msm_voice_sound_focus_put,
  22730. },
  22731. {
  22732. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22733. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22734. .name = "Source Tracking Voice Tx TERT_MI2S",
  22735. .info = msm_source_tracking_info,
  22736. .get = msm_voice_source_tracking_get,
  22737. },
  22738. {
  22739. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22740. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22741. .name = "Sound Focus Audio Tx TERT_MI2S",
  22742. .info = msm_sound_focus_info,
  22743. .get = msm_audio_sound_focus_get,
  22744. .put = msm_audio_sound_focus_put,
  22745. },
  22746. {
  22747. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22748. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22749. .name = "Source Tracking Audio Tx TERT_MI2S",
  22750. .info = msm_source_tracking_info,
  22751. .get = msm_audio_source_tracking_get,
  22752. },
  22753. {
  22754. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22755. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22756. .name = "Sound Focus Voice Tx INT3_MI2S",
  22757. .info = msm_sound_focus_info,
  22758. .get = msm_voice_sound_focus_get,
  22759. .put = msm_voice_sound_focus_put,
  22760. },
  22761. {
  22762. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22763. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22764. .name = "Source Tracking Voice Tx INT3_MI2S",
  22765. .info = msm_source_tracking_info,
  22766. .get = msm_voice_source_tracking_get,
  22767. },
  22768. {
  22769. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22770. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22771. .name = "Sound Focus Audio Tx INT3_MI2S",
  22772. .info = msm_sound_focus_info,
  22773. .get = msm_audio_sound_focus_get,
  22774. .put = msm_audio_sound_focus_put,
  22775. },
  22776. {
  22777. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22778. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22779. .name = "Source Tracking Audio Tx INT3_MI2S",
  22780. .info = msm_source_tracking_info,
  22781. .get = msm_audio_source_tracking_get,
  22782. },
  22783. {
  22784. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22785. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22786. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  22787. .info = msm_sound_focus_info,
  22788. .get = msm_voice_sound_focus_get,
  22789. .put = msm_voice_sound_focus_put,
  22790. },
  22791. {
  22792. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22793. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22794. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  22795. .info = msm_source_tracking_info,
  22796. .get = msm_voice_source_tracking_get,
  22797. },
  22798. {
  22799. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22800. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22801. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  22802. .info = msm_sound_focus_info,
  22803. .get = msm_audio_sound_focus_get,
  22804. .put = msm_audio_sound_focus_put,
  22805. },
  22806. {
  22807. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22808. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22809. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  22810. .info = msm_source_tracking_info,
  22811. .get = msm_audio_source_tracking_get,
  22812. },
  22813. {
  22814. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22816. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  22817. .info = msm_sound_focus_info,
  22818. .get = msm_voice_sound_focus_get,
  22819. .put = msm_voice_sound_focus_put,
  22820. },
  22821. {
  22822. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22823. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22824. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  22825. .info = msm_source_tracking_info,
  22826. .get = msm_voice_source_tracking_get,
  22827. },
  22828. {
  22829. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22830. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22831. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  22832. .info = msm_sound_focus_info,
  22833. .get = msm_audio_sound_focus_get,
  22834. .put = msm_audio_sound_focus_put,
  22835. },
  22836. {
  22837. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22838. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22839. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  22840. .info = msm_source_tracking_info,
  22841. .get = msm_audio_source_tracking_get,
  22842. },
  22843. {
  22844. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22845. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22846. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  22847. .info = msm_sound_focus_info,
  22848. .get = msm_voice_sound_focus_get,
  22849. .put = msm_voice_sound_focus_put,
  22850. },
  22851. {
  22852. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22853. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22854. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  22855. .info = msm_source_tracking_info,
  22856. .get = msm_voice_source_tracking_get,
  22857. },
  22858. {
  22859. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22860. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22861. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  22862. .info = msm_sound_focus_info,
  22863. .get = msm_audio_sound_focus_get,
  22864. .put = msm_audio_sound_focus_put,
  22865. },
  22866. {
  22867. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22868. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22869. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  22870. .info = msm_source_tracking_info,
  22871. .get = msm_audio_source_tracking_get,
  22872. },
  22873. {
  22874. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  22875. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22876. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  22877. .info = msm_sound_focus_info,
  22878. .get = msm_audio_sound_focus_get,
  22879. .put = msm_audio_sound_focus_put,
  22880. },
  22881. {
  22882. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22883. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22884. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  22885. .info = msm_source_tracking_info,
  22886. .get = msm_audio_source_tracking_get,
  22887. },
  22888. };
  22889. static const struct snd_kcontrol_new msm_source_doa_tracking_controls[] = {
  22890. {
  22891. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  22892. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  22893. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  22894. .info = msm_doa_tracking_mon_info,
  22895. .get = msm_doa_tracking_mon_get,
  22896. },
  22897. };
  22898. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  22899. struct snd_ctl_elem_value *ucontrol)
  22900. {
  22901. int ret = 0;
  22902. int item;
  22903. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22904. pr_debug("%s item is %d\n", __func__,
  22905. ucontrol->value.enumerated.item[0]);
  22906. mutex_lock(&routing_lock);
  22907. item = ucontrol->value.enumerated.item[0];
  22908. if (item < e->items) {
  22909. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22910. __func__, e->shift_l, e->values[item]);
  22911. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22912. e->values[item] < MSM_BACKEND_DAI_MAX)
  22913. /* Enable feedback TX path */
  22914. ret = afe_spk_prot_feed_back_cfg(
  22915. msm_bedais[e->values[item]].port_id,
  22916. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  22917. else {
  22918. pr_debug("%s values are out of range item %d\n",
  22919. __func__, e->values[item]);
  22920. /* Disable feedback TX path */
  22921. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22922. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  22923. else
  22924. ret = -EINVAL;
  22925. }
  22926. } else {
  22927. pr_err("%s item value is out of range item\n", __func__);
  22928. ret = -EINVAL;
  22929. }
  22930. mutex_unlock(&routing_lock);
  22931. return ret;
  22932. }
  22933. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  22934. struct snd_ctl_elem_value *ucontrol)
  22935. {
  22936. int ret = 0;
  22937. int item;
  22938. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  22939. pr_debug("%s item is %d\n", __func__,
  22940. ucontrol->value.enumerated.item[0]);
  22941. mutex_lock(&routing_lock);
  22942. item = ucontrol->value.enumerated.item[0];
  22943. if (item < e->items) {
  22944. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  22945. __func__, e->shift_l, e->values[item]);
  22946. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  22947. e->values[item] < MSM_BACKEND_DAI_MAX)
  22948. /* Enable feedback TX path */
  22949. ret = afe_spk_prot_feed_back_cfg(
  22950. msm_bedais[e->values[item]].port_id,
  22951. msm_bedais[e->shift_l].port_id,
  22952. 1, 1, 1);
  22953. else {
  22954. pr_debug("%s values are out of range item %d\n",
  22955. __func__, e->values[item]);
  22956. /* Disable feedback TX path */
  22957. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  22958. ret = afe_spk_prot_feed_back_cfg(0,
  22959. 0, 0, 0, 0);
  22960. else
  22961. ret = -EINVAL;
  22962. }
  22963. } else {
  22964. pr_err("%s item value is out of range item\n", __func__);
  22965. ret = -EINVAL;
  22966. }
  22967. mutex_unlock(&routing_lock);
  22968. return ret;
  22969. }
  22970. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  22971. struct snd_ctl_elem_value *ucontrol)
  22972. {
  22973. pr_debug("%s\n", __func__);
  22974. return 0;
  22975. }
  22976. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  22977. struct snd_ctl_elem_value *ucontrol)
  22978. {
  22979. pr_debug("%s\n", __func__);
  22980. ucontrol->value.enumerated.item[0] = 0;
  22981. return 0;
  22982. }
  22983. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  22984. "ZERO", "SLIM4_TX"
  22985. };
  22986. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  22987. "ZERO", "SLIM4_TX"
  22988. };
  22989. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  22990. "ZERO", "WSA_CDC_DMA_TX_0"
  22991. };
  22992. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  22993. "ZERO", "WSA_CDC_DMA_TX_0"
  22994. };
  22995. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  22996. "ZERO", "SENARY_TX"
  22997. };
  22998. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  22999. "ZERO", "INT5_MI2S_TX"
  23000. };
  23001. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  23002. "ZERO", "INT5_MI2S_TX"
  23003. };
  23004. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  23005. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23006. };
  23007. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  23008. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  23009. };
  23010. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  23011. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23012. };
  23013. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  23014. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  23015. };
  23016. static const int mi2s_rx_vi_fb_tx_value[] = {
  23017. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  23018. };
  23019. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  23020. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23021. };
  23022. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  23023. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  23024. };
  23025. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  23026. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23027. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  23028. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  23029. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  23030. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  23031. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  23032. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  23033. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  23034. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23035. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  23036. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  23037. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  23038. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  23039. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  23040. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  23041. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  23042. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  23043. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  23044. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  23045. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  23046. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23047. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  23048. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  23049. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  23050. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  23051. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  23052. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  23053. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  23054. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  23055. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  23056. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  23057. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23058. spkr_prot_put_vi_lch_port);
  23059. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  23060. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  23061. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23062. spkr_prot_put_vi_rch_port);
  23063. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  23064. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  23065. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  23066. spkr_prot_put_vi_lch_port);
  23067. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  23068. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  23069. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  23070. spkr_prot_put_vi_rch_port);
  23071. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  23072. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  23073. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  23074. spkr_prot_put_vi_lch_port);
  23075. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  23076. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  23077. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  23078. spkr_prot_put_vi_lch_port);
  23079. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  23080. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  23081. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  23082. spkr_prot_put_vi_rch_port);
  23083. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  23084. /* Frontend AIF */
  23085. /* Widget name equals to Front-End DAI name<Need confirmation>,
  23086. * Stream name must contains substring of front-end dai name
  23087. */
  23088. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  23089. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  23090. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  23091. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  23092. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  23093. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  23094. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  23095. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  23096. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  23097. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  23098. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  23099. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  23100. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  23101. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  23102. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  23103. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  23104. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  23105. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  23106. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  23107. SND_SOC_DAPM_AIF_IN("MM_DL23", "MultiMedia23 Playback", 0, 0, 0, 0),
  23108. SND_SOC_DAPM_AIF_IN("MM_DL24", "MultiMedia24 Playback", 0, 0, 0, 0),
  23109. SND_SOC_DAPM_AIF_IN("MM_DL25", "MultiMedia25 Playback", 0, 0, 0, 0),
  23110. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  23111. SND_SOC_DAPM_AIF_IN("MM_DL31", "MultiMedia31 Playback", 0, 0, 0, 0),
  23112. SND_SOC_DAPM_AIF_IN("MM_DL32", "MultiMedia32 Playback", 0, 0, 0, 0),
  23113. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  23114. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  23115. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  23116. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  23117. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  23118. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  23119. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  23120. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  23121. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  23122. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  23123. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  23124. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  23125. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  23126. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  23127. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  23128. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  23129. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  23130. SND_SOC_DAPM_AIF_OUT("MM_UL23", "MultiMedia23 Capture", 0, 0, 0, 0),
  23131. SND_SOC_DAPM_AIF_OUT("MM_UL24", "MultiMedia24 Capture", 0, 0, 0, 0),
  23132. SND_SOC_DAPM_AIF_OUT("MM_UL25", "MultiMedia25 Capture", 0, 0, 0, 0),
  23133. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  23134. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  23135. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  23136. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  23137. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  23138. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  23139. "VoiceMMode1 Playback", 0, 0, 0, 0),
  23140. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  23141. "VoiceMMode1 Capture", 0, 0, 0, 0),
  23142. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  23143. "VoiceMMode2 Playback", 0, 0, 0, 0),
  23144. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  23145. "VoiceMMode2 Capture", 0, 0, 0, 0),
  23146. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  23147. 0, 0, 0, 0),
  23148. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  23149. 0, 0, 0, 0),
  23150. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  23151. 0, 0, 0, 0),
  23152. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  23153. 0, 0, 0, 0),
  23154. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  23155. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  23156. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  23157. 0, 0, 0, 0),
  23158. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  23159. 0, 0, 0, 0),
  23160. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  23161. 0, 0, 0, 0),
  23162. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  23163. 0, 0, 0, 0),
  23164. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  23165. 0, 0, 0, 0),
  23166. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  23167. 0, 0, 0, 0),
  23168. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  23169. 0, 0, 0, 0),
  23170. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  23171. 0, 0, 0, 0),
  23172. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  23173. 0, 0, 0, 0),
  23174. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  23175. 0, 0, 0, 0),
  23176. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  23177. 0, 0, 0, 0),
  23178. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  23179. 0, 0, 0, 0),
  23180. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  23181. 0, 0, 0, 0),
  23182. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  23183. 0, 0, 0, 0),
  23184. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  23185. 0, 0, 0, 0),
  23186. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  23187. 0, 0, 0, 0),
  23188. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  23189. 0, 0, 0, 0),
  23190. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  23191. 0, 0, 0, 0),
  23192. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  23193. 0, 0, 0, 0),
  23194. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  23195. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  23196. 0, 0, 0, 0),
  23197. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  23198. "INT0 MI2S_RX Hostless Playback",
  23199. 0, 0, 0, 0),
  23200. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  23201. "INT4 MI2S_RX Hostless Playback",
  23202. 0, 0, 0, 0),
  23203. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  23204. "Primary MI2S_RX Hostless Playback",
  23205. 0, 0, 0, 0),
  23206. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  23207. "Secondary MI2S_RX Hostless Playback",
  23208. 0, 0, 0, 0),
  23209. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  23210. "Tertiary MI2S_RX Hostless Playback",
  23211. 0, 0, 0, 0),
  23212. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  23213. "Quaternary MI2S_RX Hostless Playback",
  23214. 0, 0, 0, 0),
  23215. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  23216. "Quinary MI2S_RX Hostless Playback",
  23217. 0, 0, 0, 0),
  23218. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  23219. "Senary MI2S_RX Hostless Playback",
  23220. 0, 0, 0, 0),
  23221. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  23222. 0, 0, 0, 0),
  23223. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  23224. 0, 0, 0, 0),
  23225. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  23226. 0, 0, 0, 0),
  23227. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  23228. 0, 0, 0, 0),
  23229. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  23230. 0, 0, 0, 0),
  23231. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  23232. "INT3 MI2S_TX Hostless Capture",
  23233. 0, 0, 0, 0),
  23234. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  23235. "Tertiary MI2S_TX Hostless Capture",
  23236. 0, 0, 0, 0),
  23237. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  23238. "Secondary MI2S_TX Hostless Capture",
  23239. 0, 0, 0, 0),
  23240. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  23241. "Primary MI2S_TX Hostless Capture",
  23242. 0, 0, 0, 0),
  23243. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  23244. 0, 0, 0, 0),
  23245. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  23246. 0, 0, 0, 0),
  23247. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  23248. "Quaternary MI2S_TX Hostless Capture",
  23249. 0, 0, 0, 0),
  23250. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  23251. "Quinary MI2S_TX Hostless Capture",
  23252. 0, 0, 0, 0),
  23253. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  23254. "Senary MI2S_TX Hostless Capture",
  23255. 0, 0, 0, 0),
  23256. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  23257. "Primary TDM0 Hostless Playback",
  23258. 0, 0, 0, 0),
  23259. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  23260. "Primary TDM0 Hostless Capture",
  23261. 0, 0, 0, 0),
  23262. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  23263. "Primary TDM1 Hostless Playback",
  23264. 0, 0, 0, 0),
  23265. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  23266. "Primary TDM1 Hostless Capture",
  23267. 0, 0, 0, 0),
  23268. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  23269. "Primary TDM2 Hostless Playback",
  23270. 0, 0, 0, 0),
  23271. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  23272. "Primary TDM2 Hostless Capture",
  23273. 0, 0, 0, 0),
  23274. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  23275. "Primary TDM3 Hostless Playback",
  23276. 0, 0, 0, 0),
  23277. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  23278. "Primary TDM3 Hostless Capture",
  23279. 0, 0, 0, 0),
  23280. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  23281. "Primary TDM4 Hostless Playback",
  23282. 0, 0, 0, 0),
  23283. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  23284. "Primary TDM4 Hostless Capture",
  23285. 0, 0, 0, 0),
  23286. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  23287. "Primary TDM5 Hostless Playback",
  23288. 0, 0, 0, 0),
  23289. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  23290. "Primary TDM5 Hostless Capture",
  23291. 0, 0, 0, 0),
  23292. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  23293. "Primary TDM6 Hostless Playback",
  23294. 0, 0, 0, 0),
  23295. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  23296. "Primary TDM6 Hostless Capture",
  23297. 0, 0, 0, 0),
  23298. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  23299. "Primary TDM7 Hostless Playback",
  23300. 0, 0, 0, 0),
  23301. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  23302. "Primary TDM7 Hostless Capture",
  23303. 0, 0, 0, 0),
  23304. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  23305. "Secondary TDM0 Hostless Playback",
  23306. 0, 0, 0, 0),
  23307. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  23308. "Secondary TDM0 Hostless Capture",
  23309. 0, 0, 0, 0),
  23310. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  23311. "Secondary TDM1 Hostless Playback",
  23312. 0, 0, 0, 0),
  23313. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  23314. "Secondary TDM1 Hostless Capture",
  23315. 0, 0, 0, 0),
  23316. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  23317. "Secondary TDM2 Hostless Playback",
  23318. 0, 0, 0, 0),
  23319. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  23320. "Secondary TDM2 Hostless Capture",
  23321. 0, 0, 0, 0),
  23322. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  23323. "Secondary TDM3 Hostless Playback",
  23324. 0, 0, 0, 0),
  23325. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  23326. "Secondary TDM3 Hostless Capture",
  23327. 0, 0, 0, 0),
  23328. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  23329. "Secondary TDM4 Hostless Playback",
  23330. 0, 0, 0, 0),
  23331. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  23332. "Secondary TDM4 Hostless Capture",
  23333. 0, 0, 0, 0),
  23334. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  23335. "Secondary TDM5 Hostless Playback",
  23336. 0, 0, 0, 0),
  23337. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  23338. "Secondary TDM5 Hostless Capture",
  23339. 0, 0, 0, 0),
  23340. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  23341. "Secondary TDM6 Hostless Playback",
  23342. 0, 0, 0, 0),
  23343. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  23344. "Secondary TDM6 Hostless Capture",
  23345. 0, 0, 0, 0),
  23346. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  23347. "Secondary TDM7 Hostless Playback",
  23348. 0, 0, 0, 0),
  23349. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  23350. "Secondary TDM7 Hostless Capture",
  23351. 0, 0, 0, 0),
  23352. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  23353. "Tertiary TDM0 Hostless Playback",
  23354. 0, 0, 0, 0),
  23355. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  23356. "Tertiary TDM0 Hostless Capture",
  23357. 0, 0, 0, 0),
  23358. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  23359. "Tertiary TDM1 Hostless Playback",
  23360. 0, 0, 0, 0),
  23361. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  23362. "Tertiary TDM1 Hostless Capture",
  23363. 0, 0, 0, 0),
  23364. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  23365. "Tertiary TDM2 Hostless Playback",
  23366. 0, 0, 0, 0),
  23367. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  23368. "Tertiary TDM2 Hostless Capture",
  23369. 0, 0, 0, 0),
  23370. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  23371. "Tertiary TDM3 Hostless Playback",
  23372. 0, 0, 0, 0),
  23373. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  23374. "Tertiary TDM3 Hostless Capture",
  23375. 0, 0, 0, 0),
  23376. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  23377. "Tertiary TDM4 Hostless Playback",
  23378. 0, 0, 0, 0),
  23379. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  23380. "Tertiary TDM4 Hostless Capture",
  23381. 0, 0, 0, 0),
  23382. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  23383. "Tertiary TDM5 Hostless Playback",
  23384. 0, 0, 0, 0),
  23385. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  23386. "Tertiary TDM5 Hostless Capture",
  23387. 0, 0, 0, 0),
  23388. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  23389. "Tertiary TDM6 Hostless Playback",
  23390. 0, 0, 0, 0),
  23391. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  23392. "Tertiary TDM6 Hostless Capture",
  23393. 0, 0, 0, 0),
  23394. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  23395. "Tertiary TDM7 Hostless Playback",
  23396. 0, 0, 0, 0),
  23397. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  23398. "Tertiary TDM7 Hostless Capture",
  23399. 0, 0, 0, 0),
  23400. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  23401. "Quaternary TDM0 Hostless Playback",
  23402. 0, 0, 0, 0),
  23403. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  23404. "Quaternary TDM0 Hostless Capture",
  23405. 0, 0, 0, 0),
  23406. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  23407. "Quaternary TDM1 Hostless Playback",
  23408. 0, 0, 0, 0),
  23409. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  23410. "Quaternary TDM1 Hostless Capture",
  23411. 0, 0, 0, 0),
  23412. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  23413. "Quaternary TDM2 Hostless Playback",
  23414. 0, 0, 0, 0),
  23415. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  23416. "Quaternary TDM2 Hostless Capture",
  23417. 0, 0, 0, 0),
  23418. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  23419. "Quaternary TDM3 Hostless Playback",
  23420. 0, 0, 0, 0),
  23421. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  23422. "Quaternary TDM3 Hostless Capture",
  23423. 0, 0, 0, 0),
  23424. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  23425. "Quaternary TDM4 Hostless Playback",
  23426. 0, 0, 0, 0),
  23427. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  23428. "Quaternary TDM4 Hostless Capture",
  23429. 0, 0, 0, 0),
  23430. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  23431. "Quaternary TDM5 Hostless Playback",
  23432. 0, 0, 0, 0),
  23433. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  23434. "Quaternary TDM5 Hostless Capture",
  23435. 0, 0, 0, 0),
  23436. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  23437. "Quaternary TDM6 Hostless Playback",
  23438. 0, 0, 0, 0),
  23439. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  23440. "Quaternary TDM6 Hostless Capture",
  23441. 0, 0, 0, 0),
  23442. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  23443. "Quaternary TDM7 Hostless Playback",
  23444. 0, 0, 0, 0),
  23445. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  23446. "Quaternary TDM7 Hostless Capture",
  23447. 0, 0, 0, 0),
  23448. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  23449. "Quinary TDM0 Hostless Playback",
  23450. 0, 0, 0, 0),
  23451. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  23452. "Quinary TDM0 Hostless Capture",
  23453. 0, 0, 0, 0),
  23454. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  23455. "Quinary TDM1 Hostless Playback",
  23456. 0, 0, 0, 0),
  23457. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  23458. "Quinary TDM1 Hostless Capture",
  23459. 0, 0, 0, 0),
  23460. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  23461. "Quinary TDM2 Hostless Playback",
  23462. 0, 0, 0, 0),
  23463. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  23464. "Quinary TDM2 Hostless Capture",
  23465. 0, 0, 0, 0),
  23466. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  23467. "Quinary TDM3 Hostless Playback",
  23468. 0, 0, 0, 0),
  23469. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  23470. "Quinary TDM3 Hostless Capture",
  23471. 0, 0, 0, 0),
  23472. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  23473. "Quinary TDM4 Hostless Playback",
  23474. 0, 0, 0, 0),
  23475. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  23476. "Quinary TDM4 Hostless Capture",
  23477. 0, 0, 0, 0),
  23478. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  23479. "Quinary TDM5 Hostless Playback",
  23480. 0, 0, 0, 0),
  23481. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  23482. "Quinary TDM5 Hostless Capture",
  23483. 0, 0, 0, 0),
  23484. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  23485. "Quinary TDM6 Hostless Playback",
  23486. 0, 0, 0, 0),
  23487. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  23488. "Quinary TDM6 Hostless Capture",
  23489. 0, 0, 0, 0),
  23490. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  23491. "Quinary TDM7 Hostless Playback",
  23492. 0, 0, 0, 0),
  23493. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  23494. "Quinary TDM7 Hostless Capture",
  23495. 0, 0, 0, 0),
  23496. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  23497. "Senary TDM0 Hostless Playback",
  23498. 0, 0, 0, 0),
  23499. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  23500. "Senary TDM0 Hostless Capture",
  23501. 0, 0, 0, 0),
  23502. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  23503. "Senary TDM1 Hostless Playback",
  23504. 0, 0, 0, 0),
  23505. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  23506. "Senary TDM1 Hostless Capture",
  23507. 0, 0, 0, 0),
  23508. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  23509. "Senary TDM2 Hostless Playback",
  23510. 0, 0, 0, 0),
  23511. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  23512. "Senary TDM2 Hostless Capture",
  23513. 0, 0, 0, 0),
  23514. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  23515. "Senary TDM3 Hostless Playback",
  23516. 0, 0, 0, 0),
  23517. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  23518. "Senary TDM3 Hostless Capture",
  23519. 0, 0, 0, 0),
  23520. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  23521. "Senary TDM4 Hostless Playback",
  23522. 0, 0, 0, 0),
  23523. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  23524. "Senary TDM4 Hostless Capture",
  23525. 0, 0, 0, 0),
  23526. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  23527. "Senary TDM5 Hostless Playback",
  23528. 0, 0, 0, 0),
  23529. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  23530. "Senary TDM5 Hostless Capture",
  23531. 0, 0, 0, 0),
  23532. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  23533. "Senary TDM6 Hostless Playback",
  23534. 0, 0, 0, 0),
  23535. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  23536. "Senary TDM6 Hostless Capture",
  23537. 0, 0, 0, 0),
  23538. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  23539. "Senary TDM7 Hostless Playback",
  23540. 0, 0, 0, 0),
  23541. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  23542. "Senary TDM7 Hostless Capture",
  23543. 0, 0, 0, 0),
  23544. /* LSM */
  23545. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  23546. 0, 0, 0, 0),
  23547. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  23548. 0, 0, 0, 0),
  23549. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  23550. 0, 0, 0, 0),
  23551. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  23552. 0, 0, 0, 0),
  23553. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  23554. 0, 0, 0, 0),
  23555. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  23556. 0, 0, 0, 0),
  23557. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  23558. 0, 0, 0, 0),
  23559. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  23560. 0, 0, 0, 0),
  23561. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  23562. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  23563. /* Backend AIF */
  23564. /* Stream name equals to backend dai link stream name */
  23565. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  23566. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  23567. 0, 0, 0, 0),
  23568. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  23569. 0, 0, 0, 0),
  23570. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  23571. 0, 0, 0, 0),
  23572. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  23573. 0, 0, 0, 0),
  23574. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  23575. 0, 0, 0, 0),
  23576. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  23577. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  23578. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  23579. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  23580. SND_SOC_DAPM_AIF_OUT("HDMI_MS", "HDMI MS Playback", 0, 0, 0, 0),
  23581. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  23582. 0, 0, 0, 0),
  23583. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  23584. 0, 0, 0, 0),
  23585. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  23586. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  23587. 0, 0, 0, 0),
  23588. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  23589. 0, 0, 0, 0),
  23590. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  23591. 0, 0, 0, 0),
  23592. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  23593. "Secondary MI2S Playback SD1",
  23594. 0, 0, 0, 0),
  23595. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  23596. 0, 0, 0, 0),
  23597. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  23598. 0, 0, 0, 0),
  23599. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  23600. 0, 0, 0, 0),
  23601. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  23602. 0, 0, 0, 0),
  23603. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  23604. 0, 0, 0, 0),
  23605. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  23606. 0, 0, 0, 0),
  23607. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  23608. 0, 0, 0, 0),
  23609. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  23610. 0, 0, 0, 0),
  23611. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  23612. 0, 0, 0, 0),
  23613. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  23614. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  23615. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  23616. 0, 0, 0, 0),
  23617. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  23618. 0, 0, 0, 0),
  23619. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  23620. 0, 0, 0, 0),
  23621. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  23622. 0, 0, 0, 0),
  23623. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  23624. 0, 0, 0, 0),
  23625. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  23626. 0, 0, 0, 0),
  23627. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  23628. 0, 0, 0, 0),
  23629. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  23630. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  23631. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  23632. 0, 0, 0, 0),
  23633. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  23634. 0, 0, 0, 0),
  23635. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  23636. 0, 0, 0, 0),
  23637. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  23638. 0, 0, 0, 0),
  23639. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  23640. 0, 0, 0, 0),
  23641. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  23642. 0, 0, 0, 0),
  23643. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  23644. 0, 0, 0, 0),
  23645. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  23646. 0, 0, 0, 0),
  23647. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  23648. 0, 0, 0, 0),
  23649. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  23650. 0, 0, 0, 0),
  23651. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  23652. 0, 0, 0, 0),
  23653. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  23654. 0, 0, 0, 0),
  23655. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  23656. 0, 0, 0, 0),
  23657. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  23658. 0, 0, 0, 0),
  23659. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  23660. 0, 0, 0, 0),
  23661. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  23662. 0, 0, 0, 0),
  23663. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  23664. 0, 0, 0, 0),
  23665. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  23666. 0, 0, 0, 0),
  23667. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  23668. 0, 0, 0, 0),
  23669. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  23670. 0, 0, 0, 0),
  23671. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  23672. 0, 0, 0, 0),
  23673. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  23674. 0, 0, 0, 0),
  23675. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  23676. 0, 0, 0, 0),
  23677. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  23678. 0, 0, 0, 0),
  23679. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  23680. 0, 0, 0, 0),
  23681. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  23682. 0, 0, 0, 0),
  23683. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  23684. 0, 0, 0, 0),
  23685. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  23686. 0, 0, 0, 0),
  23687. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  23688. 0, 0, 0, 0),
  23689. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  23690. 0, 0, 0, 0),
  23691. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  23692. 0, 0, 0, 0),
  23693. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  23694. 0, 0, 0, 0),
  23695. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  23696. 0, 0, 0, 0),
  23697. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  23698. 0, 0, 0, 0),
  23699. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  23700. 0, 0, 0, 0),
  23701. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  23702. 0, 0, 0, 0),
  23703. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  23704. 0, 0, 0, 0),
  23705. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  23706. 0, 0, 0, 0),
  23707. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  23708. 0, 0, 0, 0),
  23709. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  23710. 0, 0, 0, 0),
  23711. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  23712. 0, 0, 0, 0),
  23713. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  23714. 0, 0, 0, 0),
  23715. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  23716. 0, 0, 0, 0),
  23717. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  23718. 0, 0, 0, 0),
  23719. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  23720. 0, 0, 0, 0),
  23721. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  23722. 0, 0, 0, 0),
  23723. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  23724. 0, 0, 0, 0),
  23725. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  23726. 0, 0, 0, 0),
  23727. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  23728. 0, 0, 0, 0),
  23729. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  23730. 0, 0, 0, 0),
  23731. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  23732. 0, 0, 0, 0),
  23733. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  23734. 0, 0, 0, 0),
  23735. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  23736. 0, 0, 0, 0),
  23737. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  23738. 0, 0, 0, 0),
  23739. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  23740. 0, 0, 0, 0),
  23741. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  23742. 0, 0, 0, 0),
  23743. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  23744. 0, 0, 0, 0),
  23745. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  23746. 0, 0, 0, 0),
  23747. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  23748. 0, 0, 0, 0),
  23749. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  23750. 0, 0, 0, 0),
  23751. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  23752. 0, 0, 0, 0),
  23753. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  23754. 0, 0, 0, 0),
  23755. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  23756. 0, 0, 0, 0),
  23757. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  23758. 0, 0, 0, 0),
  23759. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  23760. 0, 0, 0, 0),
  23761. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  23762. 0, 0, 0, 0),
  23763. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  23764. 0, 0, 0, 0),
  23765. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  23766. 0, 0, 0, 0),
  23767. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  23768. 0, 0, 0, 0),
  23769. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  23770. 0, 0, 0, 0),
  23771. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  23772. 0, 0, 0, 0),
  23773. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  23774. 0, 0, 0, 0),
  23775. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  23776. 0, 0, 0, 0),
  23777. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  23778. 0, 0, 0, 0),
  23779. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  23780. 0, 0, 0, 0),
  23781. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  23782. 0, 0, 0, 0),
  23783. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  23784. 0, 0, 0, 0),
  23785. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  23786. 0, 0, 0, 0),
  23787. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  23788. 0, 0, 0, 0),
  23789. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  23790. 0, 0, 0, 0),
  23791. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  23792. 0, 0, 0, 0),
  23793. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  23794. 0, 0, 0, 0),
  23795. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  23796. 0, 0, 0, 0),
  23797. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  23798. 0, 0, 0, 0),
  23799. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  23800. 0, 0, 0, 0),
  23801. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  23802. 0, 0, 0, 0),
  23803. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  23804. 0, 0, 0, 0),
  23805. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  23806. 0, 0, 0, 0),
  23807. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  23808. 0, 0, 0, 0),
  23809. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  23810. 0, 0, 0, 0),
  23811. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  23812. 0, 0, 0, 0),
  23813. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  23814. 0, 0, 0, 0),
  23815. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  23816. 0, 0, 0, 0),
  23817. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  23818. 0, 0, 0, 0),
  23819. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  23820. 0, 0, 0, 0),
  23821. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  23822. 0, 0, 0, 0),
  23823. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  23824. 0, 0, 0, 0),
  23825. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  23826. 0, 0, 0, 0),
  23827. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  23828. 0, 0, 0, 0),
  23829. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  23830. 0, 0, 0, 0),
  23831. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  23832. 0, 0, 0, 0),
  23833. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  23834. 0, 0, 0, 0),
  23835. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  23836. 0, 0, 0, 0),
  23837. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  23838. 0, 0, 0, 0),
  23839. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  23840. 0, 0, 0, 0),
  23841. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  23842. 0, 0, 0, 0),
  23843. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  23844. 0, 0, 0, 0),
  23845. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  23846. 0, 0, 0, 0),
  23847. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  23848. 0, 0, 0, 0),
  23849. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  23850. 0, 0, 0, 0),
  23851. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  23852. 0, 0, 0, 0),
  23853. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  23854. 0, 0, 0, 0),
  23855. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  23856. 0, 0, 0, 0),
  23857. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  23858. 0, 0, 0, 0),
  23859. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  23860. 0, 0, 0, 0),
  23861. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  23862. 0, 0, 0, 0),
  23863. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  23864. 0, 0, 0, 0),
  23865. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  23866. 0, 0, 0, 0),
  23867. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  23868. 0, 0, 0, 0),
  23869. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  23870. 0, 0, 0, 0),
  23871. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  23872. 0, 0, 0, 0),
  23873. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  23874. 0, 0, 0, 0),
  23875. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  23876. 0, 0, 0, 0),
  23877. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  23878. 0, 0, 0, 0),
  23879. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  23880. 0, 0, 0, 0),
  23881. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  23882. 0, 0, 0, 0),
  23883. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  23884. 0, 0, 0, 0),
  23885. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  23886. 0, 0, 0, 0),
  23887. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  23888. 0, 0, 0, 0),
  23889. /* incall */
  23890. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  23891. 0, 0, 0, 0),
  23892. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  23893. 0, 0, 0, 0),
  23894. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  23895. 0, 0, 0, 0),
  23896. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  23897. 0, 0, 0, 0),
  23898. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  23899. 0, 0, 0, 0),
  23900. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  23901. 0, 0, 0, 0),
  23902. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  23903. 0, 0, 0, 0),
  23904. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  23905. 0, 0, 0, 0),
  23906. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  23907. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  23908. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  23909. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  23910. 0, 0, 0, 0),
  23911. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  23912. 0, 0, 0, 0),
  23913. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  23914. 0, 0, 0, 0),
  23915. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  23916. 0, 0, 0, 0),
  23917. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  23918. 0, 0, 0, 0),
  23919. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  23920. 0, 0, 0, 0),
  23921. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  23922. 0, 0, 0, 0),
  23923. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  23924. 0, 0, 0, 0),
  23925. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  23926. 0, 0, 0, 0),
  23927. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  23928. 0, 0, 0, 0),
  23929. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  23930. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  23931. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  23932. 0, 0, 0, 0),
  23933. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  23934. 0, 0, 0, 0),
  23935. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  23936. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  23937. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  23938. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  23939. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  23940. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  23941. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  23942. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  23943. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  23944. /* In- call recording */
  23945. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  23946. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  23947. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  23948. 0, 0, 0, 0),
  23949. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  23950. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  23951. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  23952. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  23953. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  23954. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  23955. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  23956. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  23957. SND_SOC_DAPM_AIF_OUT("PROXY_RX", "Proxy Playback", 0, 0, 0, 0),
  23958. SND_SOC_DAPM_AIF_IN("PROXY_TX", "Proxy Capture", 0, 0, 0, 0),
  23959. /* Switch Definitions */
  23960. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  23961. &slim_fm_switch_mixer_controls),
  23962. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  23963. &slim1_fm_switch_mixer_controls),
  23964. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  23965. &slim3_fm_switch_mixer_controls),
  23966. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  23967. &slim4_fm_switch_mixer_controls),
  23968. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  23969. &slim6_fm_switch_mixer_controls),
  23970. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23971. &pcm_rx_switch_mixer_controls),
  23972. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23973. &int0_mi2s_rx_switch_mixer_controls),
  23974. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23975. &int4_mi2s_rx_switch_mixer_controls),
  23976. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23977. &pri_mi2s_rx_switch_mixer_controls),
  23978. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23979. &sec_mi2s_rx_switch_mixer_controls),
  23980. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23981. &tert_mi2s_rx_switch_mixer_controls),
  23982. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23983. &quat_mi2s_rx_switch_mixer_controls),
  23984. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23985. &quin_mi2s_rx_switch_mixer_controls),
  23986. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  23987. &sco_slim7_switch_mixer_controls),
  23988. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  23989. &sen_mi2s_rx_switch_mixer_controls),
  23990. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23991. &hfp_pri_aux_switch_mixer_controls),
  23992. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  23993. &hfp_aux_switch_mixer_controls),
  23994. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  23995. &hfp_int_switch_mixer_controls),
  23996. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  23997. &hfp_slim7_switch_mixer_controls),
  23998. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  23999. &usb_switch_mixer_controls),
  24000. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  24001. &a2dp_slim7_switch_mixer_controls),
  24002. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  24003. &cdc_dma_wsa_switch_mixer_controls),
  24004. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  24005. &cdc_dma_rx_switch_mixer_controls),
  24006. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_1_DL_HL", SND_SOC_NOPM, 0, 0,
  24007. &cdc_dma_rx_1_switch_mixer_controls),
  24008. /* Mixer definitions */
  24009. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24010. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  24011. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24012. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  24013. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24014. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  24015. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24016. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  24017. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24018. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  24019. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24020. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  24021. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24022. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  24023. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  24024. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  24025. SND_SOC_DAPM_MIXER("HDMI_MS Mixer", SND_SOC_NOPM, 0, 0,
  24026. hdmi_ms_mixer_controls, ARRAY_SIZE(hdmi_ms_mixer_controls)),
  24027. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  24028. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  24029. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  24030. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  24031. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24032. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  24033. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24034. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  24035. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24036. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  24037. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24038. quaternary_mi2s_rx_mixer_controls,
  24039. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  24040. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24041. tertiary_mi2s_rx_mixer_controls,
  24042. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  24043. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24044. secondary_mi2s_rx_mixer_controls,
  24045. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  24046. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24047. secondary_mi2s_rx2_mixer_controls,
  24048. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  24049. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24050. primary_mi2s_rx_mixer_controls,
  24051. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  24052. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24053. int0_mi2s_rx_mixer_controls,
  24054. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  24055. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24056. int4_mi2s_rx_mixer_controls,
  24057. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  24058. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24059. quinary_mi2s_rx_mixer_controls,
  24060. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  24061. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24062. senary_mi2s_rx_mixer_controls,
  24063. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  24064. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24065. pri_tdm_rx_0_mixer_controls,
  24066. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  24067. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24068. pri_tdm_rx_1_mixer_controls,
  24069. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  24070. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24071. pri_tdm_rx_2_mixer_controls,
  24072. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  24073. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24074. pri_tdm_rx_3_mixer_controls,
  24075. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  24076. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24077. pri_tdm_tx_0_mixer_controls,
  24078. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  24079. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24080. sec_tdm_rx_0_mixer_controls,
  24081. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  24082. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24083. sec_tdm_rx_1_mixer_controls,
  24084. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  24085. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24086. sec_tdm_rx_2_mixer_controls,
  24087. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  24088. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24089. sec_tdm_rx_3_mixer_controls,
  24090. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  24091. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24092. sec_tdm_tx_0_mixer_controls,
  24093. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  24094. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24095. tert_tdm_rx_0_mixer_controls,
  24096. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  24097. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24098. tert_tdm_tx_0_mixer_controls,
  24099. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  24100. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24101. tert_tdm_rx_1_mixer_controls,
  24102. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  24103. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24104. tert_tdm_rx_2_mixer_controls,
  24105. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  24106. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24107. tert_tdm_rx_3_mixer_controls,
  24108. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  24109. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24110. tert_tdm_rx_4_mixer_controls,
  24111. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  24112. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24113. quat_tdm_rx_0_mixer_controls,
  24114. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  24115. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24116. quat_tdm_tx_0_mixer_controls,
  24117. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  24118. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24119. quat_tdm_rx_1_mixer_controls,
  24120. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  24121. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24122. quat_tdm_rx_2_mixer_controls,
  24123. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  24124. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24125. quat_tdm_rx_3_mixer_controls,
  24126. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  24127. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24128. quin_tdm_rx_0_mixer_controls,
  24129. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  24130. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24131. quin_tdm_tx_0_mixer_controls,
  24132. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  24133. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24134. quin_tdm_rx_1_mixer_controls,
  24135. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  24136. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24137. quin_tdm_tx_1_mixer_controls,
  24138. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  24139. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24140. quin_tdm_rx_2_mixer_controls,
  24141. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  24142. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24143. quin_tdm_tx_2_mixer_controls,
  24144. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  24145. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24146. quin_tdm_rx_3_mixer_controls,
  24147. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  24148. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24149. quin_tdm_tx_3_mixer_controls,
  24150. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  24151. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24152. sen_tdm_tx_0_mixer_controls,
  24153. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  24154. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24155. sen_tdm_rx_0_mixer_controls,
  24156. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  24157. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24158. sen_tdm_rx_1_mixer_controls,
  24159. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  24160. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24161. sen_tdm_rx_2_mixer_controls,
  24162. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  24163. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24164. sen_tdm_rx_3_mixer_controls,
  24165. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  24166. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24167. pri_meta_mi2s_rx_mixer_controls,
  24168. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  24169. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24170. sec_meta_mi2s_rx_mixer_controls,
  24171. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  24172. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24173. wsa_cdc_dma_rx_0_mixer_controls,
  24174. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  24175. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24176. wsa_cdc_dma_rx_1_mixer_controls,
  24177. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  24178. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24179. rx_cdc_dma_rx_0_mixer_controls,
  24180. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  24181. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24182. rx_cdc_dma_rx_1_mixer_controls,
  24183. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  24184. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24185. rx_cdc_dma_rx_2_mixer_controls,
  24186. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  24187. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24188. rx_cdc_dma_rx_3_mixer_controls,
  24189. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  24190. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24191. rx_cdc_dma_rx_4_mixer_controls,
  24192. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  24193. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24194. rx_cdc_dma_rx_5_mixer_controls,
  24195. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  24196. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24197. rx_cdc_dma_rx_6_mixer_controls,
  24198. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  24199. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24200. rx_cdc_dma_rx_7_mixer_controls,
  24201. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  24202. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  24203. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  24204. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  24205. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  24206. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  24207. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  24208. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  24209. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  24210. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  24211. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  24212. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  24213. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  24214. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  24215. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  24216. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  24217. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  24218. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  24219. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  24220. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  24221. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  24222. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  24223. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  24224. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  24225. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  24226. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  24227. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  24228. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  24229. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  24230. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  24231. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  24232. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  24233. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  24234. SND_SOC_DAPM_MIXER("MultiMedia23 Mixer", SND_SOC_NOPM, 0, 0,
  24235. mmul23_mixer_controls, ARRAY_SIZE(mmul23_mixer_controls)),
  24236. SND_SOC_DAPM_MIXER("MultiMedia24 Mixer", SND_SOC_NOPM, 0, 0,
  24237. mmul24_mixer_controls, ARRAY_SIZE(mmul24_mixer_controls)),
  24238. SND_SOC_DAPM_MIXER("MultiMedia25 Mixer", SND_SOC_NOPM, 0, 0,
  24239. mmul25_mixer_controls, ARRAY_SIZE(mmul25_mixer_controls)),
  24240. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  24241. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  24242. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  24243. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  24244. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  24245. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  24246. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  24247. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  24248. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24249. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  24250. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24251. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  24252. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24253. tert_auxpcm_rx_mixer_controls,
  24254. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  24255. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24256. quat_auxpcm_rx_mixer_controls,
  24257. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  24258. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24259. quin_auxpcm_rx_mixer_controls,
  24260. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  24261. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24262. sen_auxpcm_rx_mixer_controls,
  24263. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  24264. /* incall */
  24265. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  24266. incall_music_delivery_mixer_controls,
  24267. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  24268. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  24269. incall_music2_delivery_mixer_controls,
  24270. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  24271. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24272. slimbus_4_rx_mixer_controls,
  24273. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  24274. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24275. slimbus_6_rx_mixer_controls,
  24276. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  24277. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24278. usb_audio_rx_mixer_controls,
  24279. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  24280. /* Voice Mixer */
  24281. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  24282. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  24283. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  24284. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  24285. SND_SOC_NOPM, 0, 0,
  24286. sec_i2s_rx_voice_mixer_controls,
  24287. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  24288. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  24289. SND_SOC_NOPM, 0, 0,
  24290. sec_mi2s_rx_voice_mixer_controls,
  24291. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  24292. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  24293. SND_SOC_NOPM, 0, 0,
  24294. slimbus_rx_voice_mixer_controls,
  24295. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  24296. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  24297. SND_SOC_NOPM, 0, 0,
  24298. bt_sco_rx_voice_mixer_controls,
  24299. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  24300. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  24301. SND_SOC_NOPM, 0, 0,
  24302. afe_pcm_rx_voice_mixer_controls,
  24303. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  24304. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  24305. SND_SOC_NOPM, 0, 0,
  24306. aux_pcm_rx_voice_mixer_controls,
  24307. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  24308. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  24309. SND_SOC_NOPM, 0, 0,
  24310. sec_aux_pcm_rx_voice_mixer_controls,
  24311. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  24312. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  24313. SND_SOC_NOPM, 0, 0,
  24314. tert_aux_pcm_rx_voice_mixer_controls,
  24315. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  24316. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  24317. SND_SOC_NOPM, 0, 0,
  24318. quat_aux_pcm_rx_voice_mixer_controls,
  24319. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  24320. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  24321. SND_SOC_NOPM, 0, 0,
  24322. quin_aux_pcm_rx_voice_mixer_controls,
  24323. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  24324. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  24325. SND_SOC_NOPM, 0, 0,
  24326. sen_aux_pcm_rx_voice_mixer_controls,
  24327. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  24328. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  24329. SND_SOC_NOPM, 0, 0,
  24330. hdmi_rx_voice_mixer_controls,
  24331. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  24332. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  24333. SND_SOC_NOPM, 0, 0,
  24334. mi2s_rx_voice_mixer_controls,
  24335. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  24336. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  24337. SND_SOC_NOPM, 0, 0,
  24338. pri_mi2s_rx_voice_mixer_controls,
  24339. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  24340. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  24341. SND_SOC_NOPM, 0, 0,
  24342. int0_mi2s_rx_voice_mixer_controls,
  24343. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  24344. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  24345. SND_SOC_NOPM, 0, 0,
  24346. int4_mi2s_rx_voice_mixer_controls,
  24347. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  24348. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  24349. SND_SOC_NOPM, 0, 0,
  24350. tert_mi2s_rx_voice_mixer_controls,
  24351. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  24352. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  24353. SND_SOC_NOPM, 0, 0,
  24354. quat_mi2s_rx_voice_mixer_controls,
  24355. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  24356. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  24357. SND_SOC_NOPM, 0, 0,
  24358. quin_mi2s_rx_voice_mixer_controls,
  24359. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  24360. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  24361. SND_SOC_NOPM, 0, 0,
  24362. pri_tdm_rx_0_voice_mixer_controls,
  24363. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  24364. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  24365. SND_SOC_NOPM, 0, 0,
  24366. pri_tdm_rx_1_voice_mixer_controls,
  24367. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  24368. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  24369. SND_SOC_NOPM, 0, 0,
  24370. pri_tdm_rx_2_voice_mixer_controls,
  24371. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  24372. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  24373. SND_SOC_NOPM, 0, 0,
  24374. pri_tdm_rx_3_voice_mixer_controls,
  24375. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  24376. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  24377. SND_SOC_NOPM, 0, 0,
  24378. sen_mi2s_rx_voice_mixer_controls,
  24379. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  24380. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  24381. SND_SOC_NOPM, 0, 0,
  24382. quat_tdm_rx_2_voice_mixer_controls,
  24383. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  24384. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  24385. SND_SOC_NOPM, 0, 0,
  24386. quin_tdm_rx_2_voice_mixer_controls,
  24387. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  24388. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  24389. SND_SOC_NOPM, 0, 0,
  24390. wsa_cdc_dma_rx_0_voice_mixer_controls,
  24391. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  24392. SND_SOC_DAPM_MIXER("PROXY_RX_Voice Mixer",
  24393. SND_SOC_NOPM, 0, 0,
  24394. proxy_rx_voice_mixer_controls,
  24395. ARRAY_SIZE(proxy_rx_voice_mixer_controls)),
  24396. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  24397. SND_SOC_NOPM, 0, 0,
  24398. rx_cdc_dma_rx_0_voice_mixer_controls,
  24399. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  24400. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1_Voice Mixer",
  24401. SND_SOC_NOPM, 0, 0,
  24402. rx_cdc_dma_rx_1_voice_mixer_controls,
  24403. ARRAY_SIZE(rx_cdc_dma_rx_1_voice_mixer_controls)),
  24404. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  24405. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  24406. ARRAY_SIZE(tx_voip_mixer_controls)),
  24407. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  24408. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  24409. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  24410. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  24411. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  24412. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  24413. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24414. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  24415. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24416. int_bt_a2dp_rx_mixer_controls,
  24417. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  24418. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24419. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  24420. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  24421. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  24422. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24423. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  24424. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24425. tx_voice2_stub_mixer_controls,
  24426. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  24427. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  24428. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  24429. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  24430. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  24431. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  24432. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  24433. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24434. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  24435. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  24436. SND_SOC_NOPM, 0, 0,
  24437. slimbus_6_rx_voice_mixer_controls,
  24438. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  24439. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24440. slimbus_7_rx_voice_mixer_controls,
  24441. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  24442. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  24443. slimbus_8_rx_voice_mixer_controls,
  24444. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  24445. /* port mixer */
  24446. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  24447. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  24448. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  24449. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  24450. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  24451. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  24452. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  24453. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  24454. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  24455. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  24456. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  24457. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  24458. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  24459. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  24460. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  24461. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  24462. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  24463. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  24464. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  24465. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  24466. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  24467. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24468. sbus_1_rx_port_mixer_controls,
  24469. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  24470. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24471. bt_sco_rx_port_mixer_controls,
  24472. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  24473. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  24474. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  24475. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  24476. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  24477. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  24478. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  24479. SND_SOC_DAPM_MIXER("HDMI_RX_MS Port Mixer",
  24480. SND_SOC_NOPM, 0, 0, hdmi_rx_ms_port_mixer_controls,
  24481. ARRAY_SIZE(hdmi_rx_ms_port_mixer_controls)),
  24482. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  24483. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  24484. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  24485. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  24486. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  24487. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  24488. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  24489. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  24490. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  24491. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  24492. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  24493. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  24494. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  24495. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  24496. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  24497. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24498. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  24499. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24500. primary_mi2s_rx_port_mixer_controls,
  24501. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  24502. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24503. sec_mi2s_rx_port_mixer_controls,
  24504. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  24505. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24506. tert_mi2s_rx_port_mixer_controls,
  24507. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  24508. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24509. quat_mi2s_rx_port_mixer_controls,
  24510. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  24511. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24512. quin_mi2s_rx_port_mixer_controls,
  24513. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  24514. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24515. sen_mi2s_rx_port_mixer_controls,
  24516. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  24517. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24518. pri_tdm_rx_0_port_mixer_controls,
  24519. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  24520. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24521. pri_tdm_rx_1_port_mixer_controls,
  24522. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  24523. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24524. pri_tdm_rx_2_port_mixer_controls,
  24525. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  24526. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24527. pri_tdm_rx_3_port_mixer_controls,
  24528. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  24529. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24530. sec_tdm_rx_0_port_mixer_controls,
  24531. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  24532. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24533. sec_tdm_rx_1_port_mixer_controls,
  24534. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  24535. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24536. sec_tdm_rx_2_port_mixer_controls,
  24537. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  24538. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24539. sec_tdm_rx_3_port_mixer_controls,
  24540. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  24541. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24542. sec_tdm_rx_7_port_mixer_controls,
  24543. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  24544. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24545. tert_tdm_rx_0_port_mixer_controls,
  24546. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  24547. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24548. tert_tdm_rx_1_port_mixer_controls,
  24549. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  24550. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24551. tert_tdm_rx_2_port_mixer_controls,
  24552. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  24553. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24554. tert_tdm_rx_3_port_mixer_controls,
  24555. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  24556. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24557. quat_tdm_rx_0_port_mixer_controls,
  24558. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  24559. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24560. quat_tdm_rx_1_port_mixer_controls,
  24561. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  24562. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24563. quat_tdm_rx_2_port_mixer_controls,
  24564. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  24565. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24566. quat_tdm_rx_3_port_mixer_controls,
  24567. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  24568. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24569. quat_tdm_rx_7_port_mixer_controls,
  24570. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  24571. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24572. quin_tdm_rx_0_port_mixer_controls,
  24573. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  24574. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24575. quin_tdm_rx_1_port_mixer_controls,
  24576. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  24577. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24578. quin_tdm_rx_2_port_mixer_controls,
  24579. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  24580. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24581. quin_tdm_rx_3_port_mixer_controls,
  24582. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  24583. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  24584. quin_tdm_rx_7_port_mixer_controls,
  24585. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  24586. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24587. sen_tdm_rx_0_port_mixer_controls,
  24588. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  24589. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24590. sen_tdm_rx_1_port_mixer_controls,
  24591. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  24592. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  24593. sen_tdm_rx_2_port_mixer_controls,
  24594. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  24595. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  24596. sen_tdm_rx_3_port_mixer_controls,
  24597. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  24598. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24599. int0_mi2s_rx_port_mixer_controls,
  24600. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  24601. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  24602. int4_mi2s_rx_port_mixer_controls,
  24603. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  24604. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24605. wsa_cdc_dma_rx_0_port_mixer_controls,
  24606. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  24607. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  24608. rx_cdc_dma_rx_0_port_mixer_controls,
  24609. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  24610. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  24611. rx_cdc_dma_rx_1_port_mixer_controls,
  24612. ARRAY_SIZE(rx_cdc_dma_rx_1_port_mixer_controls)),
  24613. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  24614. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  24615. ARRAY_SIZE(tx_qchat_mixer_controls)),
  24616. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  24617. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  24618. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  24619. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  24620. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  24621. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  24622. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  24623. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  24624. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  24625. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  24626. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  24627. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  24628. /* lsm mixer definitions */
  24629. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  24630. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  24631. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  24632. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  24633. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  24634. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  24635. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  24636. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  24637. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  24638. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  24639. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  24640. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  24641. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  24642. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  24643. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  24644. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  24645. /* Virtual Pins to force backends ON atm */
  24646. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  24647. SND_SOC_DAPM_INPUT("BE_IN"),
  24648. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24649. &slim0_rx_vi_fb_lch_mux),
  24650. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24651. &slim0_rx_vi_fb_rch_mux),
  24652. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  24653. &wsa_rx_0_vi_fb_lch_mux),
  24654. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  24655. &wsa_rx_0_vi_fb_rch_mux),
  24656. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  24657. &mi2s_rx_vi_fb_mux),
  24658. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24659. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  24660. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  24661. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  24662. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  24663. &voc_ext_ec_mux),
  24664. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  24665. &ext_ec_ref_mux_ul1),
  24666. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  24667. &ext_ec_ref_mux_ul2),
  24668. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  24669. &ext_ec_ref_mux_ul3),
  24670. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  24671. &ext_ec_ref_mux_ul4),
  24672. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  24673. &ext_ec_ref_mux_ul5),
  24674. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  24675. &ext_ec_ref_mux_ul6),
  24676. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  24677. &ext_ec_ref_mux_ul8),
  24678. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  24679. &ext_ec_ref_mux_ul9),
  24680. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  24681. &ext_ec_ref_mux_ul10),
  24682. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  24683. &ext_ec_ref_mux_ul16),
  24684. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  24685. &ext_ec_ref_mux_ul17),
  24686. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  24687. &ext_ec_ref_mux_ul18),
  24688. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  24689. &ext_ec_ref_mux_ul19),
  24690. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  24691. &ext_ec_ref_mux_ul28),
  24692. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  24693. &ext_ec_ref_mux_ul29),
  24694. };
  24695. static const struct snd_soc_dapm_route intercon[] = {
  24696. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24697. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24698. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24699. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24700. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24701. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24702. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24703. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24704. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24705. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24706. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24707. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24708. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24709. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24710. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24711. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24712. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24713. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  24714. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24715. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24716. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24717. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24718. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24719. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24720. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24721. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24722. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24723. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24724. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24725. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24726. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24727. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24728. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24729. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24730. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24731. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  24732. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24733. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24734. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24735. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24736. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24737. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24738. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24739. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24740. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24741. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24742. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24743. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24744. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24745. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24746. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24747. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24748. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24749. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  24750. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24751. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24752. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24753. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24754. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24755. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24756. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24757. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24758. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24759. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24760. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24761. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24762. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24763. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24764. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24765. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24766. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24767. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  24768. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24769. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24770. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24771. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24772. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24773. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24774. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24775. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24776. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24777. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24778. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24779. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24780. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24781. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24782. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24783. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24784. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24785. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  24786. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24787. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24788. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24789. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24790. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24791. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24792. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24793. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24794. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24795. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24796. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24797. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24798. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24799. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24800. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24801. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24802. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24803. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24804. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24805. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  24806. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24807. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24808. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24809. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24810. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24811. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24812. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24813. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24814. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24815. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24816. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24817. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24818. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24819. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24820. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24821. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24822. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24823. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24824. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24825. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  24826. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24827. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24828. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24829. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24830. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24831. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24832. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24833. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24834. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24835. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24836. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24837. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24838. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24839. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24840. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24841. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24842. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24843. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24844. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24845. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  24846. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24847. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24848. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24849. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24850. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24851. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24852. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24853. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24854. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24855. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24856. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24857. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24858. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24859. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24860. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24861. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24862. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24863. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24864. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24865. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  24866. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24867. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24868. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24869. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24870. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24871. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24872. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24873. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24874. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24875. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24876. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24877. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24878. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24879. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24880. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24881. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24882. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24883. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24884. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24885. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  24886. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24887. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24888. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24889. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24890. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24891. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24892. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24893. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24894. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24895. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24896. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24897. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24898. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24899. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24900. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24901. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24902. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24903. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24904. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24905. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  24906. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24907. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24908. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24909. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24910. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24911. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24912. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24913. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24914. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24915. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24916. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24917. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24918. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24919. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24920. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24921. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24922. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24923. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24924. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24925. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  24926. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24927. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24928. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24929. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24930. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24931. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24932. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24933. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24934. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24935. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24936. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24937. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24938. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24939. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24940. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24941. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24942. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24943. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24944. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24945. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  24946. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24947. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24948. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24949. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24950. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24951. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24952. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24953. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24954. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24955. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24956. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24957. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24958. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24959. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24960. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24961. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24962. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24963. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24964. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24965. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  24966. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24967. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24968. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24969. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24970. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24971. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24972. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24973. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24974. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24975. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24976. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24977. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24978. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24979. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24980. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24981. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24982. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  24983. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia31", "MM_DL31"},
  24984. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia32", "MM_DL32"},
  24985. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  24986. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  24987. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  24988. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  24989. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  24990. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  24991. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  24992. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  24993. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  24994. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  24995. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  24996. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  24997. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  24998. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  24999. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  25000. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  25001. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  25002. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  25003. {"HDMI", NULL, "HDMI Mixer"},
  25004. {"HDMI_MS Mixer", "MultiMedia1", "MM_DL1"},
  25005. {"HDMI_MS Mixer", "MultiMedia2", "MM_DL2"},
  25006. {"HDMI_MS Mixer", "MultiMedia3", "MM_DL3"},
  25007. {"HDMI_MS Mixer", "MultiMedia4", "MM_DL4"},
  25008. {"HDMI_MS Mixer", "MultiMedia5", "MM_DL5"},
  25009. {"HDMI_MS Mixer", "MultiMedia6", "MM_DL6"},
  25010. {"HDMI_MS Mixer", "MultiMedia7", "MM_DL7"},
  25011. {"HDMI_MS Mixer", "MultiMedia8", "MM_DL8"},
  25012. {"HDMI_MS Mixer", "MultiMedia9", "MM_DL9"},
  25013. {"HDMI_MS Mixer", "MultiMedia10", "MM_DL10"},
  25014. {"HDMI_MS Mixer", "MultiMedia11", "MM_DL11"},
  25015. {"HDMI_MS Mixer", "MultiMedia12", "MM_DL12"},
  25016. {"HDMI_MS Mixer", "MultiMedia13", "MM_DL13"},
  25017. {"HDMI_MS Mixer", "MultiMedia14", "MM_DL14"},
  25018. {"HDMI_MS Mixer", "MultiMedia15", "MM_DL15"},
  25019. {"HDMI_MS Mixer", "MultiMedia16", "MM_DL16"},
  25020. {"HDMI_MS Mixer", "MultiMedia26", "MM_DL26"},
  25021. {"HDMI_MS", NULL, "HDMI_MS Mixer"},
  25022. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  25023. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  25024. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  25025. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  25026. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  25027. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  25028. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  25029. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  25030. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  25031. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  25032. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  25033. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  25034. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  25035. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  25036. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  25037. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  25038. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  25039. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  25040. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  25041. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  25042. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  25043. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  25044. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  25045. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  25046. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  25047. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  25048. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  25049. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  25050. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  25051. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  25052. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  25053. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  25054. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  25055. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  25056. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  25057. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  25058. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25059. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25060. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25061. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25062. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25063. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25064. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25065. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25066. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25067. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25068. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25069. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25070. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25071. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25072. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25073. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25074. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25075. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  25076. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25077. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25078. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25079. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25080. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25081. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25082. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25083. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25084. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25085. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25086. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25087. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25088. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25089. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25090. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25091. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25092. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25093. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  25094. /* incall */
  25095. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  25096. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  25097. {"Incall_Music Audio Mixer", "MultiMedia4", "MM_DL4"},
  25098. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  25099. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  25100. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  25101. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25102. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25103. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25104. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25105. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  25106. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25107. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25108. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25109. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25110. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  25111. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25112. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25113. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25114. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25115. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25116. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25117. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25118. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25119. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25120. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25121. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25122. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25123. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25124. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25125. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25126. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25127. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25128. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  25129. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25130. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25131. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25132. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25133. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25134. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25135. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25136. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25137. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25138. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25139. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25140. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25141. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25142. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25143. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25144. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25145. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25146. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  25147. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25148. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25149. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25150. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25151. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25152. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25153. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25154. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25155. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25156. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25157. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25158. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25159. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25160. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25161. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25162. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25163. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25164. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  25165. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25166. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25167. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25168. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25169. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25170. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25171. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25172. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25173. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25174. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25175. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25176. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25177. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25178. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25179. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25180. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25181. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25182. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  25183. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25184. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25185. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25186. {"MultiMedia9 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  25187. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25188. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25189. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25190. {"MultiMedia9 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  25191. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  25192. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25193. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25194. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25195. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25196. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25197. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25198. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25199. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25200. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25201. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25202. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25203. {"MultiMedia17 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25204. {"MultiMedia17 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25205. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25206. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25207. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25208. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25209. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25210. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25211. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25212. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25213. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25214. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25215. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25216. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25217. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25218. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25219. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25220. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25221. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25222. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25223. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25224. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25225. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25226. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25227. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25228. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25229. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25230. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25231. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25232. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25233. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25234. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25235. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25236. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25237. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25238. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25239. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25240. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25241. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25242. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25243. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25244. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25245. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25246. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25247. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25248. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25249. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25250. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25251. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25252. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25253. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25254. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25255. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25256. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25257. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25258. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25259. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25260. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25261. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25262. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25263. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25264. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25265. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25266. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25267. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25268. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25269. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25270. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25271. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25272. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25273. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25274. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25275. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25276. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25277. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25278. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25279. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25280. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25281. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25282. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25283. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25284. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  25285. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25286. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25287. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25288. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25289. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25290. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25291. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25292. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25293. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25294. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25295. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25296. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25297. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25298. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25299. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25300. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25301. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25302. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  25303. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25304. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25305. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25306. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25307. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25308. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25309. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25310. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25311. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25312. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25313. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25314. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25315. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25316. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25317. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25318. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  25319. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25320. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25321. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25322. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25323. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25324. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25325. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25326. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25327. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25328. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25329. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25330. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25331. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25332. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25333. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25334. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  25335. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25336. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  25337. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25338. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25339. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25340. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25341. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25342. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25343. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25344. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25345. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25346. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25347. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25348. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25349. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25350. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25351. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25352. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25353. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25354. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25355. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25356. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  25357. {"PRI_MI2S_RX Audio Mixer", "DTMF", "DTMF_DL_HL"},
  25358. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25359. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25360. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25361. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25362. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25363. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25364. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25365. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25366. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25367. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25368. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25369. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25370. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25371. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25372. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25373. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  25374. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25375. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25376. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25377. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25378. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25379. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25380. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25381. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25382. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25383. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25384. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25385. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25386. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25387. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25388. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25389. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  25390. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25391. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25392. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25393. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25394. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25395. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25396. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25397. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25398. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25399. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25400. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25401. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25402. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25403. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25404. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25405. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25406. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25407. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  25408. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25409. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25410. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25411. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25412. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25413. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25414. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25415. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25416. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25417. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25418. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25419. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25420. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25421. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25422. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25423. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  25424. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25425. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25426. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25427. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25428. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25429. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25430. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25431. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25432. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25433. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25434. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25435. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25436. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25437. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25438. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25439. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25440. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25441. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  25442. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25443. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25444. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25445. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25446. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25447. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25448. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25449. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25450. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25451. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25452. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25453. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25454. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25455. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25456. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25457. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25458. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  25459. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  25460. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25461. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25462. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25463. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25464. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25465. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25466. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25467. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25468. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25469. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25470. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25471. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25472. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25473. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25474. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25475. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25476. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25477. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25478. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25479. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25480. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25481. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  25482. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25483. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25484. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25485. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25486. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25487. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25488. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25489. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25490. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25491. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25492. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25493. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25494. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25495. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25496. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25497. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25498. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25499. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25500. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25501. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25502. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25503. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  25504. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25505. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25506. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25507. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25508. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25509. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25510. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25511. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25512. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25513. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25514. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25515. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25516. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25517. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25518. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25519. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25520. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25521. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25522. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25523. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25524. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25525. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  25526. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25527. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25528. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25529. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25530. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25531. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25532. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25533. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25534. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25535. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25536. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25537. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25538. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25539. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25540. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25541. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25542. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25543. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25544. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25545. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25546. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25547. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  25548. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25549. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25550. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25551. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25552. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25553. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25554. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25555. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25556. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25557. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25558. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25559. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25560. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25561. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25562. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25563. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25564. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25565. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25566. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25567. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  25568. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25569. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25570. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25571. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25572. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25573. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25574. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25575. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25576. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25577. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25578. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25579. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25580. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25581. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25582. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25583. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25584. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25585. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25586. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25587. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25588. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25589. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  25590. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25591. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25592. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25593. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25594. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25595. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25596. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25597. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25598. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25599. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25600. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25601. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25602. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25603. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25604. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25605. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25606. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25607. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25608. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25609. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25610. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25611. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  25612. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25613. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25614. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25615. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25616. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25617. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25618. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25619. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25620. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25621. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25622. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25623. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25624. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25625. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25626. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25627. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25628. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25629. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25630. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25631. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25632. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25633. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  25634. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25635. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25636. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25637. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25638. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25639. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25640. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25641. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25642. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25643. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25644. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25645. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25646. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25647. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25648. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25649. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25650. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25651. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25652. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25653. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25654. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25655. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  25656. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25657. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25658. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25659. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25660. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25661. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25662. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25663. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25664. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25665. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25666. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25667. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25668. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25669. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25670. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25671. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25672. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25673. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25674. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25675. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  25676. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25677. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25678. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25679. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25680. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25681. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25682. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25683. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25684. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25685. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25686. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25687. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25688. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25689. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25690. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25691. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25692. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25693. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25694. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25695. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25696. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25697. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  25698. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25699. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25700. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25701. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25702. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25703. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25704. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25705. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25706. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25707. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25708. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25709. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25710. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25711. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25712. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25713. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25714. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25715. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25716. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25717. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  25718. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25719. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25720. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25721. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25722. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25723. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25724. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25725. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25726. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25727. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25728. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25729. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25730. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25731. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25732. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25733. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25734. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25735. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25736. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25737. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25738. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25739. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  25740. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25741. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25742. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25743. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25744. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25745. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25746. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25747. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25748. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25749. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25750. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25751. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25752. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25753. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25754. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25755. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25756. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25757. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25758. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25759. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25760. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25761. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  25762. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25763. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25764. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25765. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25766. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25767. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25768. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25769. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25770. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25771. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25772. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25773. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25774. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25775. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25776. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25777. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25778. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25779. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25780. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25781. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25782. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25783. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  25784. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25785. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25786. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25787. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25788. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25789. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25790. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25791. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25792. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25793. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25794. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25795. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25796. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25797. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25798. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25799. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25800. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25801. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25802. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25803. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25804. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25805. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  25806. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25807. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25808. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25809. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25810. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25811. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25812. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25813. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25814. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25815. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25816. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25817. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25818. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25819. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25820. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25821. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25822. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25823. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25824. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25825. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25826. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25827. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25828. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  25829. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25830. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25831. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25832. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25833. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25834. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25835. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25836. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25837. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25838. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25839. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25840. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25841. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25842. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25843. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25844. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25845. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25846. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25847. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25848. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  25849. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25850. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25851. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25852. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25853. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25854. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25855. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25856. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25857. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25858. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25859. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25860. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25861. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25862. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25863. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25864. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25865. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25866. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25867. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25868. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25869. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25870. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25871. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  25872. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25873. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25874. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25875. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25876. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25877. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25878. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25879. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25880. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25881. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25882. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25883. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25884. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25885. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25886. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25887. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25888. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25889. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25890. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25891. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25892. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25893. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25894. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  25895. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25896. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25897. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25898. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25899. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25900. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25901. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25902. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25903. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25904. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25905. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25906. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25907. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25908. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25909. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25910. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25911. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25912. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25913. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25914. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25915. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25916. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25917. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  25918. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25919. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25920. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25921. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25922. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25923. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25924. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25925. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25926. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25927. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25928. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25929. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25930. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25931. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25932. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25933. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25934. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25935. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25936. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25937. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25938. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25939. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25940. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  25941. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25942. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25943. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25944. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25945. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25946. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25947. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25948. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25949. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25950. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25951. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25952. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25953. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25954. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25955. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25956. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25957. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25958. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25959. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25960. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  25961. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25962. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25963. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25964. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25965. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25966. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25967. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25968. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25969. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25970. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25971. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25972. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25973. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25974. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25975. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25976. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  25977. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  25978. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  25979. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  25980. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia23", "MM_DL23"},
  25981. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia24", "MM_DL24"},
  25982. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia25", "MM_DL25"},
  25983. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  25984. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  25985. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  25986. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  25987. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  25988. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  25989. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  25990. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  25991. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  25992. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  25993. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  25994. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  25995. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  25996. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  25997. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  25998. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  25999. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26000. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26001. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26002. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26003. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26004. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26005. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26006. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  26007. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26008. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26009. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26010. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26011. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26012. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26013. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26014. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26015. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26016. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26017. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26018. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26019. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26020. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26021. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26022. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26023. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26024. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26025. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  26026. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia23", "MM_DL23"},
  26027. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia24", "MM_DL24"},
  26028. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia25", "MM_DL25"},
  26029. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  26030. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26031. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26032. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26033. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26034. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26035. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26036. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26037. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26038. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26039. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26040. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26041. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26042. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26043. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26044. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26045. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26046. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26047. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26048. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  26049. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26050. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26051. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26052. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26053. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26054. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26055. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26056. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26057. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26058. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26059. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26060. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26061. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26062. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26063. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26064. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26065. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  26066. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26067. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26068. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26069. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26070. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26071. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26072. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26073. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26074. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26075. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26076. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26077. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26078. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26079. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26080. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26081. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26082. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26083. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26084. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  26085. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26086. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26087. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26088. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26089. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26090. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26091. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26092. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26093. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26094. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26095. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26096. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26097. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26098. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26099. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26100. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26101. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26102. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26103. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  26104. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  26105. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  26106. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  26107. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  26108. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  26109. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  26110. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  26111. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  26112. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  26113. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  26114. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  26115. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  26116. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  26117. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  26118. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  26119. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  26120. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  26121. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  26122. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  26123. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  26124. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  26125. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  26126. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  26127. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  26128. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  26129. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  26130. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26131. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26132. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26133. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26134. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26135. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26136. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26137. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26138. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26139. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26140. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26141. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26142. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26143. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26144. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26145. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26146. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26147. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26148. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26149. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26150. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26151. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26152. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26153. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26154. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  26155. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  26156. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26157. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26158. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26159. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  26160. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26161. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26162. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26163. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26164. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  26165. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26166. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26167. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  26168. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26169. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26170. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  26171. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26172. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26173. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26174. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26175. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26176. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26177. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26178. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26179. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26180. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26181. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26182. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26183. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26184. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26185. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26186. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26187. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26188. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  26189. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26190. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26191. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26192. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26193. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26194. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26195. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26196. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26197. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26198. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26199. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26200. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26201. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26202. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26203. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26204. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26205. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26206. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26207. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26208. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26209. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26210. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26211. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26212. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26213. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26214. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26215. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26216. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26217. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26218. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26219. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26220. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26221. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26222. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26223. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26224. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26225. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26226. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26227. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26228. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26229. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26230. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26231. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26232. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26233. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26234. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26235. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26236. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26237. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26238. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26239. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26240. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26241. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26242. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26243. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26244. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26245. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26246. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26247. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26248. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26249. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26250. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26251. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26252. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26253. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26254. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26255. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26256. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26257. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26258. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26259. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26260. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26261. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26262. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26263. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26264. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26265. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26266. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26267. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26268. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26269. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26270. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26271. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26272. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26273. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26274. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26275. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26276. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26277. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26278. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26279. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26280. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26281. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26282. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26283. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26284. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26285. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26286. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26287. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26288. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26289. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26290. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26291. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26292. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26293. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26294. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26295. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26296. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26297. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26298. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26299. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26300. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26301. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26302. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26303. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26304. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26305. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26306. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26307. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26308. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26309. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26310. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26311. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26312. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26313. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26314. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26315. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26316. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26317. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26318. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26319. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26320. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26321. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26322. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26323. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26324. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26325. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26326. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26327. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26328. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26329. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26330. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26331. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26332. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26333. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26334. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26335. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26336. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26337. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26338. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26339. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26340. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26341. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26342. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26343. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26344. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26345. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26346. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26347. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26348. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26349. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26350. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26351. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26352. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26353. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26354. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26355. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26356. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26357. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26358. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26359. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26360. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26361. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26362. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26363. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26364. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26365. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26366. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26367. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26368. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26369. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26370. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26371. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26372. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26373. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26374. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26375. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26376. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26377. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26378. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26379. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26380. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26381. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26382. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26383. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26384. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26385. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26386. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26387. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26388. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26389. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26390. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26391. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26392. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26393. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26394. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26395. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26396. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26397. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26398. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26399. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26400. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26401. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26402. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26403. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26404. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26405. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26406. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26407. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26408. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26409. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26410. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26411. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26412. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26413. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26414. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26415. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26416. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26417. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26418. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26419. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26420. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26421. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26422. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26423. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26424. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26425. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26426. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26427. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26428. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26429. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26430. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26431. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26432. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26433. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26434. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26435. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26436. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26437. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26438. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26439. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26440. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26441. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26442. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26443. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26444. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26445. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26446. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26447. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26448. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26449. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26450. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26451. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26452. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26453. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26454. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26455. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26456. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26457. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26458. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26459. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26460. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26461. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26462. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26463. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26464. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26465. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26466. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26467. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26468. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26469. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26470. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26471. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26472. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26473. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26474. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26475. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26476. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26477. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26478. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26479. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26480. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26481. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26482. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26483. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26484. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26485. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26486. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26487. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26488. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26489. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26490. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26491. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26492. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26493. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26494. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26495. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26496. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26497. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26498. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26499. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26500. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26501. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26502. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26503. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26504. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26505. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26506. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26507. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26508. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26509. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26510. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26511. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26512. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26513. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26514. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26515. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26516. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26517. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26518. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26519. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26520. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26521. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26522. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26523. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26524. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26525. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26526. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26527. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26528. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26529. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26530. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26531. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26532. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26533. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26534. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26535. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26536. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26537. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26538. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26539. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26540. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26541. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26542. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26543. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26544. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26545. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26546. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26547. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26548. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26549. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26550. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26551. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26552. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26553. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26554. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26555. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26556. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26557. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26558. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26559. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26560. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26561. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26562. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26563. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26564. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26565. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26566. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26567. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26568. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26569. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26570. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26571. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26572. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26573. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26574. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26575. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26576. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26577. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26578. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26579. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26580. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26581. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26582. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26583. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26584. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26585. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26586. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26587. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26588. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26589. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26590. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26591. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26592. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26593. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26594. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26595. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26596. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26597. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26598. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26599. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26600. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26601. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26602. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26603. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26604. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26605. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26606. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26607. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26608. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26609. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26610. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26611. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26612. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26613. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26614. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26615. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26616. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26617. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26618. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26619. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26620. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26621. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26622. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26623. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26624. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26625. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26626. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26627. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26628. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26629. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26630. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26631. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26632. {"MultiMedia23 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26633. {"MultiMedia23 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26634. {"MultiMedia23 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26635. {"MultiMedia23 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26636. {"MultiMedia23 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26637. {"MultiMedia23 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26638. {"MultiMedia23 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26639. {"MultiMedia23 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26640. {"MultiMedia23 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26641. {"MultiMedia23 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26642. {"MultiMedia23 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26643. {"MultiMedia23 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26644. {"MultiMedia23 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26645. {"MultiMedia23 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26646. {"MultiMedia23 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26647. {"MultiMedia23 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26648. {"MultiMedia23 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26649. {"MultiMedia23 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26650. {"MultiMedia23 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26651. {"MultiMedia23 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26652. {"MultiMedia24 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26653. {"MultiMedia24 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26654. {"MultiMedia24 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26655. {"MultiMedia24 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26656. {"MultiMedia24 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26657. {"MultiMedia24 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26658. {"MultiMedia24 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26659. {"MultiMedia24 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26660. {"MultiMedia24 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26661. {"MultiMedia24 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26662. {"MultiMedia24 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26663. {"MultiMedia24 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26664. {"MultiMedia24 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26665. {"MultiMedia24 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26666. {"MultiMedia24 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26667. {"MultiMedia24 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26668. {"MultiMedia24 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26669. {"MultiMedia24 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26670. {"MultiMedia24 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26671. {"MultiMedia24 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26672. {"MultiMedia25 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26673. {"MultiMedia25 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26674. {"MultiMedia25 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26675. {"MultiMedia25 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26676. {"MultiMedia25 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26677. {"MultiMedia25 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26678. {"MultiMedia25 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26679. {"MultiMedia25 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26680. {"MultiMedia25 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26681. {"MultiMedia25 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26682. {"MultiMedia25 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26683. {"MultiMedia25 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26684. {"MultiMedia25 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26685. {"MultiMedia25 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26686. {"MultiMedia25 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26687. {"MultiMedia25 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26688. {"MultiMedia25 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26689. {"MultiMedia25 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26690. {"MultiMedia25 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26691. {"MultiMedia25 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26692. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26693. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26694. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  26695. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26696. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26697. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26698. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26699. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26700. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26701. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26702. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26703. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26704. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26705. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26706. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26707. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26708. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26709. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26710. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26711. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26712. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26713. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26714. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26715. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26716. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26717. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26718. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26719. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26720. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26721. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26722. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26723. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26724. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26725. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26726. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26727. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26728. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26729. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  26730. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  26731. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  26732. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  26733. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26734. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26735. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26736. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26737. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26738. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26739. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26740. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26741. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26742. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  26743. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  26744. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26745. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26746. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26747. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26748. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26749. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26750. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26751. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26752. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26753. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26754. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26755. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26756. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26757. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26758. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26759. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26760. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26761. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26762. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26763. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26764. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26765. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26766. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26767. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26768. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26769. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26770. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26771. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26772. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26773. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26774. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26775. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26776. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26777. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26778. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26779. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26780. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26781. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26782. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26783. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26784. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26785. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26786. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26787. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26788. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  26789. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  26790. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  26791. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26792. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  26793. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  26794. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  26795. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26796. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26797. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26798. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26799. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26800. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26801. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26802. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26803. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26804. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26805. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26806. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26807. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26808. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26809. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26810. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26811. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26812. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26813. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26814. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  26815. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26816. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26817. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26818. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26819. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26820. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26821. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26822. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26823. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26824. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26825. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26826. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26827. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26828. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26829. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26830. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26831. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  26832. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  26833. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26834. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26835. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26836. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26837. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26838. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26839. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26840. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26841. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26842. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26843. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26844. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26845. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26846. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26847. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26848. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26849. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  26850. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26851. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26852. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26853. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26854. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26855. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26856. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26857. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26858. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26859. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26860. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26861. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26862. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26863. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26864. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26865. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26866. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  26867. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26868. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26869. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26870. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26871. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26872. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26873. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26874. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26875. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26876. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26877. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26878. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26879. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26880. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26881. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26882. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26883. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26884. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26885. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26886. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26887. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26888. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26889. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26890. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26891. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26892. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26893. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26894. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26895. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26896. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26897. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26898. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26899. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26900. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26901. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26902. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26903. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26904. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  26905. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  26906. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26907. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  26908. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  26909. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  26910. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  26911. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  26912. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  26913. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  26914. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  26915. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  26916. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  26917. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  26918. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  26919. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  26920. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  26921. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  26922. {"MM_UL23", NULL, "MultiMedia23 Mixer"},
  26923. {"MM_UL24", NULL, "MultiMedia24 Mixer"},
  26924. {"MM_UL25", NULL, "MultiMedia25 Mixer"},
  26925. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  26926. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  26927. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  26928. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  26929. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26930. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26931. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26932. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26933. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26934. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26935. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26936. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26937. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26938. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26939. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26940. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26941. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26942. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26943. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26944. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26945. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26946. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  26947. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26948. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26949. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26950. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26951. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26952. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26953. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26954. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26955. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26956. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26957. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26958. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26959. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26960. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26961. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26962. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26963. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  26964. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  26965. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26966. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26967. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26968. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26969. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26970. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26971. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26972. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26973. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26974. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26975. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26976. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26977. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26978. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26979. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26980. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26981. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  26982. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  26983. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  26984. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  26985. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  26986. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  26987. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  26988. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  26989. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  26990. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  26991. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  26992. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  26993. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  26994. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  26995. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  26996. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  26997. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  26998. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  26999. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  27000. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  27001. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  27002. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  27003. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  27004. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  27005. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  27006. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27007. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27008. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27009. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27010. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27011. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27012. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27013. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27014. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27015. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  27016. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  27017. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  27018. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  27019. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  27020. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  27021. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  27022. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  27023. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  27024. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  27025. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  27026. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  27027. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  27028. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  27029. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  27030. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  27031. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  27032. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  27033. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27034. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27035. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27036. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27037. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27038. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  27039. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27040. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27041. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27042. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  27043. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27044. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27045. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27046. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27047. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27048. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27049. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27050. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  27051. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27052. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27053. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27054. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27055. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27056. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  27057. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27058. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27059. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27060. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27061. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27062. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  27063. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27064. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27065. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27066. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27067. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27068. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  27069. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27070. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27071. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27072. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27073. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27074. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  27075. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  27076. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27077. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27078. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27079. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27080. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  27081. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27082. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27083. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27084. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27085. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27086. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  27087. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27088. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27089. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27090. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27091. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27092. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  27093. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27094. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27095. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27096. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27097. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27098. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  27099. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27100. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27101. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27102. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27103. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27104. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  27105. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27106. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27107. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27108. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27109. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27110. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  27111. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27112. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27113. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27114. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27115. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27116. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  27117. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27118. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27119. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27120. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27121. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27122. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  27123. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27124. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27125. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27126. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27127. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27128. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  27129. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27130. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27131. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27132. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27133. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27134. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  27135. {"HDMI", NULL, "HDMI_DL_HL"},
  27136. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27137. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27138. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27139. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27140. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27141. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27142. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27143. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  27144. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27145. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27146. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27147. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27148. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27149. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27150. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27151. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  27152. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27153. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27154. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27155. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27156. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27157. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  27158. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27159. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27160. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27161. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27162. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27163. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  27164. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27165. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27166. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27167. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27168. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27169. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27170. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27171. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  27172. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27173. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27174. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27175. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27176. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27177. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27178. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  27179. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27180. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27181. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27182. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27183. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27184. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27185. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  27186. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27187. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27188. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27189. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27190. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27191. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27192. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27193. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27194. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  27195. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27196. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27197. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27198. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27199. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27200. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27201. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27202. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27203. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  27204. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  27205. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27206. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27207. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27208. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27209. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27210. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27211. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27212. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  27213. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  27214. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  27215. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  27216. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  27217. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27218. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27219. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27220. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27221. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  27222. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27223. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27224. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27225. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27226. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  27227. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27228. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  27229. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27230. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  27231. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27232. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27233. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27234. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  27235. {"PROXY_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27236. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27237. {"PROXY_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27238. {"PROXY_RX", NULL, "PROXY_RX_Voice Mixer"},
  27239. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  27240. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27241. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27242. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  27243. {"RX_CDC_DMA_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  27244. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27245. {"RX_CDC_DMA_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27246. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_Voice Mixer"},
  27247. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27248. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27249. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27250. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27251. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27252. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27253. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  27254. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  27255. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  27256. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  27257. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  27258. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27259. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27260. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27261. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27262. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27263. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27264. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27265. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27266. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27267. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27268. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27269. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27270. {"AUDIO_REF_EC_UL1 MUX", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27271. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27272. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27273. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27274. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27275. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27276. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27277. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27278. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27279. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27280. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27281. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27282. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27283. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27284. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27285. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27286. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27287. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27288. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27289. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27290. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27291. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27292. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27293. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27294. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27295. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27296. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27297. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27298. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27299. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27300. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27301. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27302. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27303. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27304. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27305. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  27306. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  27307. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  27308. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27309. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  27310. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27311. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27312. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27313. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27314. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27315. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27316. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27317. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27318. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27319. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27320. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27321. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27322. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27323. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27324. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27325. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27326. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27327. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27328. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27329. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27330. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27331. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27332. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27333. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27334. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27335. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27336. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27337. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27338. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27339. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27340. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27341. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27342. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27343. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  27344. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  27345. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  27346. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  27347. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  27348. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  27349. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  27350. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  27351. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  27352. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  27353. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  27354. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  27355. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  27356. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  27357. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  27358. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  27359. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  27360. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  27361. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  27362. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  27363. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  27364. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  27365. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  27366. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  27367. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  27368. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  27369. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  27370. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  27371. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  27372. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  27373. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  27374. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  27375. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  27376. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  27377. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  27378. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  27379. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  27380. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  27381. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  27382. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  27383. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  27384. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  27385. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  27386. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  27387. {"VoiceMMode1_Tx Mixer", "PROXY_TX_MMode1", "PROXY_TX"},
  27388. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  27389. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  27390. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  27391. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  27392. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  27393. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  27394. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  27395. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  27396. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  27397. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  27398. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  27399. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  27400. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  27401. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  27402. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  27403. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  27404. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  27405. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  27406. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  27407. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  27408. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  27409. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  27410. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  27411. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  27412. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  27413. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  27414. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  27415. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  27416. {"VoiceMMode2_Tx Mixer", "PROXY_TX_MMode2", "PROXY_TX"},
  27417. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  27418. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  27419. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  27420. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  27421. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  27422. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  27423. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  27424. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  27425. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  27426. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  27427. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  27428. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  27429. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  27430. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  27431. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  27432. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  27433. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  27434. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  27435. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  27436. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  27437. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  27438. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  27439. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  27440. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  27441. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  27442. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  27443. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  27444. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  27445. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  27446. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  27447. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  27448. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  27449. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  27450. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  27451. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  27452. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  27453. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  27454. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  27455. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  27456. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  27457. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  27458. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  27459. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  27460. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  27461. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27462. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  27463. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  27464. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27465. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  27466. {"RX_CDC_DMA_RX_1_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  27467. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1_DL_HL"},
  27468. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  27469. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27470. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27471. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27472. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27473. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27474. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27475. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27476. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27477. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27478. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27479. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27480. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27481. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27482. {"LSM1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27483. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  27484. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27485. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27486. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27487. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27488. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27489. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27490. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27491. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27492. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27493. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27494. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27495. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27496. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27497. {"LSM2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27498. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  27499. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27500. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27501. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27502. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27503. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27504. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27505. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27506. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27507. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27508. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27509. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27510. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27511. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27512. {"LSM3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27513. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  27514. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27515. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27516. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27517. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27518. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27519. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27520. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27521. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27522. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27523. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27524. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27525. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27526. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27527. {"LSM4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27528. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  27529. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27530. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27531. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27532. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27533. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27534. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27535. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27536. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27537. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27538. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27539. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27540. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27541. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27542. {"LSM5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27543. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  27544. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27545. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27546. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27547. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27548. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27549. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27550. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27551. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27552. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27553. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27554. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27555. {"LSM6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27556. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  27557. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27558. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27559. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27560. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27561. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27562. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27563. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27564. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27565. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27566. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27567. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27568. {"LSM7 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27569. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  27570. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  27571. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  27572. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  27573. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  27574. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  27575. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27576. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  27577. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  27578. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  27579. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  27580. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27581. {"LSM8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27582. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  27583. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  27584. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  27585. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  27586. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  27587. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  27588. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  27589. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  27590. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  27591. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  27592. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  27593. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  27594. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  27595. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  27596. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  27597. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  27598. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  27599. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  27600. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  27601. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  27602. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  27603. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  27604. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  27605. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  27606. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  27607. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  27608. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  27609. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  27610. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  27611. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27612. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  27613. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  27614. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  27615. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  27616. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  27617. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  27618. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  27619. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  27620. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  27621. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  27622. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  27623. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  27624. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27625. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  27626. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  27627. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  27628. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  27629. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  27630. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  27631. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  27632. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  27633. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  27634. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  27635. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  27636. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  27637. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  27638. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  27639. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  27640. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27641. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  27642. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  27643. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  27644. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  27645. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  27646. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  27647. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  27648. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  27649. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  27650. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  27651. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  27652. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  27653. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  27654. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  27655. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  27656. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  27657. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  27658. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  27659. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  27660. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  27661. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  27662. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  27663. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  27664. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  27665. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  27666. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  27667. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  27668. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  27669. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  27670. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  27671. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  27672. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  27673. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  27674. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  27675. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  27676. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  27677. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  27678. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  27679. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  27680. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  27681. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  27682. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  27683. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  27684. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  27685. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  27686. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  27687. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  27688. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  27689. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  27690. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  27691. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  27692. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  27693. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  27694. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  27695. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  27696. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  27697. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  27698. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  27699. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  27700. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  27701. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  27702. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  27703. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  27704. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27705. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27706. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27707. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27708. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27709. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27710. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27711. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27712. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27713. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27714. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27715. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27716. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27717. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27718. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27719. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27720. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27721. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27722. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27723. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27724. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27725. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27726. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27727. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27728. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  27729. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27730. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27731. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27732. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27733. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27734. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27735. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27736. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27737. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27738. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27739. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27740. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27741. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27742. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27743. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27744. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27745. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27746. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27747. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27748. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27749. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27750. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27751. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27752. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27753. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  27754. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27755. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27756. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27757. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27758. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27759. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27760. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27761. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27762. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27763. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27764. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27765. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27766. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27767. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27768. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27769. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27770. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27771. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27772. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27773. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27774. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27775. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27776. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27777. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27778. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  27779. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27780. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27781. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27782. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27783. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27784. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27785. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27786. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27787. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  27788. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  27789. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  27790. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  27791. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27792. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27793. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27794. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27795. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27796. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27797. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27798. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27799. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27800. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27801. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27802. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27803. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  27804. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27805. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27806. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27807. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27808. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27809. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27810. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27811. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27812. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27813. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27814. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27815. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27816. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27817. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27818. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27819. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27820. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27821. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27822. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27823. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27824. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27825. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27826. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27827. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27828. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  27829. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27830. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27831. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27832. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27833. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27834. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27835. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27836. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27837. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27838. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27839. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27840. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27841. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27842. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27843. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27844. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27845. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27846. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27847. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27848. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27849. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27850. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27851. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27852. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27853. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  27854. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27855. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27856. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27857. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27858. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27859. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27860. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27861. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27862. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27863. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27864. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27865. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27866. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27867. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27868. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27869. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27870. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27871. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27872. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27873. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27874. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27875. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27876. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27877. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27878. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  27879. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27880. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27881. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27882. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27883. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27884. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27885. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27886. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27887. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  27888. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  27889. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  27890. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  27891. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27892. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27893. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27894. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27895. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27896. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27897. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27898. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27899. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27900. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27901. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27902. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27903. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  27904. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  27905. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  27906. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27907. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27908. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27909. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27910. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27911. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27912. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27913. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27914. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27915. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27916. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27917. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27918. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27919. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27920. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27921. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27922. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27923. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27924. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27925. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27926. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27927. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27928. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27929. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27930. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  27931. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27932. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27933. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27934. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27935. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27936. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27937. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27938. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27939. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27940. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27941. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27942. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27943. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27944. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27945. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27946. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27947. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27948. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27949. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27950. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27951. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27952. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27953. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27954. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27955. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  27956. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27957. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27958. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27959. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27960. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27961. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27962. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27963. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27964. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27965. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27966. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27967. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27968. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27969. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27970. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27971. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27972. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27973. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27974. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  27975. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  27976. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  27977. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  27978. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  27979. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  27980. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  27981. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27982. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27983. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27984. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27985. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27986. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27987. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27988. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27989. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27990. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  27991. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  27992. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  27993. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27994. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  27995. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  27996. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  27997. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  27998. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  27999. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28000. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28001. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28002. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28003. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28004. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28005. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  28006. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28007. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28008. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28009. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28010. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28011. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28012. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28013. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28014. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28015. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28016. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28017. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28018. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28019. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28020. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28021. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28022. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28023. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28024. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28025. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28026. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28027. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28028. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28029. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28030. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  28031. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28032. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28033. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28034. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28035. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28036. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28037. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28038. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28039. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28040. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28041. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28042. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28043. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28044. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28045. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28046. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28047. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28048. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28049. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28050. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28051. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28052. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28053. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28054. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28055. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  28056. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28057. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28058. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28059. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28060. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28061. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28062. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28063. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28064. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28065. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28066. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28067. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28068. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28069. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28070. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28071. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28072. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28073. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28074. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28075. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28076. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28077. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28078. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28079. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28080. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  28081. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28082. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28083. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28084. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28085. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28086. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28087. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28088. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28089. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28090. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28091. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28092. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28093. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28094. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28095. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28096. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28097. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28098. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28099. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28100. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28101. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28102. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28103. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28104. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28105. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  28106. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28107. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28108. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  28109. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28110. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28111. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28112. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28113. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28114. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28115. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28116. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28117. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28118. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28119. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28120. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28121. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28122. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28123. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28124. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28125. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28126. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28127. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28128. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28129. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28130. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28131. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28132. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28133. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  28134. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28135. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28136. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28137. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28138. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28139. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28140. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28141. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28142. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28143. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28144. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28145. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28146. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28147. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28148. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28149. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28150. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28151. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28152. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28153. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28154. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28155. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28156. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28157. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28158. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  28159. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28160. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28161. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28162. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28163. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28164. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28165. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28166. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28167. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28168. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28169. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28170. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28171. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28172. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28173. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28174. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28175. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28176. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28177. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28178. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28179. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28180. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28181. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28182. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28183. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  28184. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28185. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28186. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28187. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28188. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28189. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28190. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28191. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28192. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28193. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28194. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28195. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28196. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28197. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28198. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28199. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28200. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  28201. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  28202. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  28203. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  28204. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28205. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28206. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28207. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28208. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  28209. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  28210. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  28211. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  28212. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  28213. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28214. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28215. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28216. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28217. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28218. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28219. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28220. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28221. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28222. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28223. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28224. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28225. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28226. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28227. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28228. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28229. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28230. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28231. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28232. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28233. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  28234. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28235. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28236. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28237. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28238. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28239. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28240. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28241. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28242. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28243. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28244. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28245. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28246. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28247. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28248. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28249. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28250. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28251. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28252. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28253. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28254. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  28255. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28256. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28257. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28258. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28259. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28260. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28261. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28262. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28263. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28264. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28265. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28266. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28267. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28268. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28269. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28270. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28271. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28272. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28273. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28274. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28275. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  28276. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28277. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28278. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28279. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28280. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28281. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28282. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28283. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28284. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28285. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  28286. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  28287. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  28288. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28289. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  28290. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  28291. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  28292. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  28293. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  28294. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  28295. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  28296. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  28297. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28298. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28299. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28300. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28301. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28302. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28303. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28304. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28305. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28306. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28307. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28308. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28309. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  28310. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28311. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28312. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28313. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28314. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28315. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28316. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28317. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28318. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28319. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28320. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28321. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28322. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  28323. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28324. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28325. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28326. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28327. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  28328. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28329. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28330. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28331. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  28332. {"RX_CDC_DMA_RX_1 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  28333. {"RX_CDC_DMA_RX_1 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  28334. {"RX_CDC_DMA_RX_1 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28335. {"RX_CDC_DMA_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28336. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Port Mixer"},
  28337. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28338. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28339. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28340. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28341. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28342. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28343. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28344. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28345. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28346. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28347. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28348. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28349. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28350. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28351. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28352. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28353. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28354. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28355. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28356. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28357. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  28358. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28359. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28360. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  28361. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  28362. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  28363. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  28364. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  28365. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  28366. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28367. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28368. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28369. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28370. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  28371. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  28372. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28373. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  28374. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28375. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28376. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28377. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28378. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  28379. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28380. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28381. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28382. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  28383. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28384. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28385. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28386. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  28387. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28388. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28389. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28390. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  28391. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28392. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28393. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28394. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28395. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28396. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28397. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  28398. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  28399. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  28400. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  28401. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  28402. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28403. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28404. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  28405. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28406. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28407. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28408. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28409. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28410. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28411. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  28412. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28413. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28414. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28415. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28416. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28417. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28418. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28419. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28420. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28421. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28422. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28423. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  28424. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  28425. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28426. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  28427. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28428. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28429. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  28430. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28431. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28432. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  28433. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28434. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28435. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28436. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  28437. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28438. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28439. {"STUB_RX", NULL, "STUB_RX Mixer"},
  28440. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28441. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28442. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  28443. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28444. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28445. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  28446. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28447. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28448. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28449. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28450. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28451. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  28452. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  28453. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  28454. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  28455. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  28456. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  28457. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  28458. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28459. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  28460. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28461. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  28462. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28463. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28464. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  28465. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  28466. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28467. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  28468. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  28469. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  28470. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  28471. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28472. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28473. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28474. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  28475. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28476. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  28477. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28478. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28479. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28480. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28481. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28482. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28483. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28484. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  28485. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28486. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  28487. {"HDMI_RX_MS Port Mixer", "MI2S_TX", "MI2S_TX"},
  28488. {"HDMI_MS", NULL, "HDMI_RX_MS Port Mixer"},
  28489. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28490. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  28491. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  28492. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  28493. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28494. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  28495. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  28496. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  28497. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  28498. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28499. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28500. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28501. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28502. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28503. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28504. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28505. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28506. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  28507. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28508. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  28509. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  28510. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28511. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28512. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28513. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28514. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28515. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28516. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28517. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28518. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28519. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28520. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  28521. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28522. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28523. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28524. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28525. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28526. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28527. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28528. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28529. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  28530. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28531. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28532. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28533. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28534. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28535. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28536. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28537. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  28538. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  28539. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28540. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  28541. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28542. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28543. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28544. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28545. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28546. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  28547. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28548. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28549. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  28550. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  28551. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  28552. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  28553. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  28554. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  28555. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  28556. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  28557. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  28558. /* Backend Enablement */
  28559. {"BE_OUT", NULL, "PRI_I2S_RX"},
  28560. {"BE_OUT", NULL, "SEC_I2S_RX"},
  28561. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  28562. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  28563. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  28564. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28565. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  28566. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  28567. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  28568. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  28569. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  28570. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  28571. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  28572. {"BE_OUT", NULL, "HDMI"},
  28573. {"BE_OUT", NULL, "HDMI_MS"},
  28574. {"BE_OUT", NULL, "DISPLAY_PORT"},
  28575. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  28576. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  28577. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  28578. {"BE_OUT", NULL, "MI2S_RX"},
  28579. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  28580. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  28581. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  28582. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  28583. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  28584. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  28585. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  28586. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  28587. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  28588. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  28589. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  28590. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  28591. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28592. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  28593. {"BE_OUT", NULL, "INT_FM_RX"},
  28594. {"BE_OUT", NULL, "PCM_RX"},
  28595. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28596. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28597. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  28598. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  28599. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  28600. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  28601. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  28602. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  28603. {"BE_OUT", NULL, "INT_FM_RX"},
  28604. {"BE_OUT", NULL, "PCM_RX"},
  28605. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28606. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  28607. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  28608. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  28609. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  28610. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  28611. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  28612. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  28613. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  28614. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  28615. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  28616. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  28617. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  28618. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  28619. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  28620. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  28621. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  28622. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  28623. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  28624. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  28625. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  28626. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  28627. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  28628. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  28629. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  28630. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  28631. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  28632. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  28633. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  28634. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  28635. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  28636. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  28637. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  28638. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  28639. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  28640. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  28641. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  28642. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  28643. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  28644. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  28645. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  28646. {"BE_OUT", NULL, "PROXY_RX"},
  28647. {"PRI_I2S_TX", NULL, "BE_IN"},
  28648. {"MI2S_TX", NULL, "BE_IN"},
  28649. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  28650. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  28651. {"PRI_MI2S_TX", NULL, "BE_IN"},
  28652. {"TERT_MI2S_TX", NULL, "BE_IN"},
  28653. {"INT0_MI2S_TX", NULL, "BE_IN"},
  28654. {"INT2_MI2S_TX", NULL, "BE_IN"},
  28655. {"INT3_MI2S_TX", NULL, "BE_IN"},
  28656. {"INT4_MI2S_TX", NULL, "BE_IN"},
  28657. {"INT5_MI2S_TX", NULL, "BE_IN"},
  28658. {"SEC_MI2S_TX", NULL, "BE_IN"},
  28659. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  28660. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  28661. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  28662. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  28663. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  28664. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  28665. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  28666. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  28667. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  28668. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  28669. {"USB_AUDIO_TX", NULL, "BE_IN" },
  28670. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  28671. {"INT_FM_TX", NULL, "BE_IN"},
  28672. {"PCM_TX", NULL, "BE_IN"},
  28673. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  28674. {"BE_OUT", NULL, "STUB_RX"},
  28675. {"STUB_TX", NULL, "BE_IN"},
  28676. {"STUB_1_TX", NULL, "BE_IN"},
  28677. {"BE_OUT", NULL, "AUX_PCM_RX"},
  28678. {"AUX_PCM_TX", NULL, "BE_IN"},
  28679. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  28680. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  28681. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  28682. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  28683. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  28684. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  28685. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  28686. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28687. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  28688. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28689. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  28690. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  28691. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28692. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  28693. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  28694. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  28695. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  28696. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  28697. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  28698. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  28699. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  28700. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  28701. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  28702. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  28703. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  28704. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  28705. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  28706. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  28707. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  28708. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  28709. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  28710. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  28711. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  28712. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  28713. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  28714. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  28715. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  28716. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  28717. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  28718. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  28719. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  28720. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  28721. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  28722. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  28723. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  28724. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  28725. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  28726. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  28727. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  28728. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28729. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28730. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28731. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  28732. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  28733. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  28734. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  28735. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  28736. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  28737. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  28738. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  28739. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  28740. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  28741. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  28742. {"PROXY_TX", NULL, "BE_IN"},
  28743. };
  28744. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  28745. struct snd_pcm_hw_params *params)
  28746. {
  28747. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28748. unsigned int be_id = rtd->dai_link->id;
  28749. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28750. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28751. return -EINVAL;
  28752. }
  28753. mutex_lock(&routing_lock);
  28754. msm_bedais[be_id].sample_rate = params_rate(params);
  28755. msm_bedais[be_id].channel = params_channels(params);
  28756. msm_bedais[be_id].format = params_format(params);
  28757. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  28758. __func__, msm_bedais[be_id].sample_rate,
  28759. msm_bedais[be_id].format, be_id);
  28760. mutex_unlock(&routing_lock);
  28761. return 0;
  28762. }
  28763. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  28764. {
  28765. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28766. unsigned int be_id = rtd->dai_link->id;
  28767. int i, session_type, path_type, topology;
  28768. struct msm_pcm_routing_bdai_data *bedai;
  28769. struct msm_pcm_routing_fdai_data *fdai;
  28770. pr_debug("%s: substream->pcm->id:%s\n",
  28771. __func__, substream->pcm->id);
  28772. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28773. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28774. return -EINVAL;
  28775. }
  28776. bedai = &msm_bedais[be_id];
  28777. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  28778. 0 : 1);
  28779. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28780. path_type = ADM_PATH_PLAYBACK;
  28781. else
  28782. path_type = ADM_PATH_LIVE_REC;
  28783. mutex_lock(&routing_lock);
  28784. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28785. if (!is_mm_lsm_fe_id(i))
  28786. continue;
  28787. fdai = &fe_dai_map[i][session_type];
  28788. if (fdai->strm_id != INVALID_SESSION) {
  28789. int idx;
  28790. int port_id;
  28791. unsigned long copp =
  28792. session_copp_map[i][session_type][be_id];
  28793. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  28794. if (test_bit(idx, &copp))
  28795. break;
  28796. if (idx >= MAX_COPPS_PER_PORT) {
  28797. pr_debug("%s: copp idx is invalid, exiting\n",
  28798. __func__);
  28799. continue;
  28800. }
  28801. fdai->be_srate = bedai->sample_rate;
  28802. port_id = get_port_id(bedai->port_id);
  28803. topology = adm_get_topology_for_port_copp_idx(port_id,
  28804. idx);
  28805. msm_routing_unload_topology(topology);
  28806. adm_close(port_id, fdai->perf_mode, idx);
  28807. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  28808. __func__, copp, i, session_type, be_id,
  28809. topology);
  28810. clear_bit(idx,
  28811. &session_copp_map[i][session_type][be_id]);
  28812. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28813. (fdai->passthr_mode == LEGACY_PCM))
  28814. msm_pcm_routing_deinit_pp(port_id,
  28815. topology);
  28816. }
  28817. }
  28818. bedai->active = 0;
  28819. bedai->sample_rate = 0;
  28820. bedai->channel = 0;
  28821. mutex_unlock(&routing_lock);
  28822. return 0;
  28823. }
  28824. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  28825. {
  28826. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  28827. unsigned int be_id = rtd->dai_link->id;
  28828. int i, path_type, topology;
  28829. int session_type = INVALID_SESSION;
  28830. struct msm_pcm_routing_bdai_data *bedai;
  28831. u32 channels, sample_rate;
  28832. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  28833. struct msm_pcm_routing_fdai_data *fdai;
  28834. u32 session_id;
  28835. struct media_format_info voc_be_media_format;
  28836. bool is_lsm;
  28837. pr_debug("%s: substream->pcm->id:%s\n",
  28838. __func__, substream->pcm->id);
  28839. if (be_id >= MSM_BACKEND_DAI_MAX) {
  28840. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  28841. return -EINVAL;
  28842. }
  28843. bedai = &msm_bedais[be_id];
  28844. mutex_lock(&routing_lock);
  28845. if (bedai->active == 1)
  28846. goto done; /* Ignore prepare if back-end already active */
  28847. /* AFE port is not active at this point. However, still
  28848. * go ahead setting active flag under the notion that
  28849. * QDSP6 is able to handle ADM starting before AFE port
  28850. * is started.
  28851. */
  28852. bedai->active = 1;
  28853. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28854. if (!(is_mm_lsm_fe_id(i) &&
  28855. route_check_fe_id_adm_support(i)))
  28856. continue;
  28857. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  28858. SESSION_TYPE_RX : SESSION_TYPE_TX;
  28859. fdai = &fe_dai_map[i][session_type];
  28860. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  28861. if (fdai->passthr_mode != LEGACY_PCM)
  28862. path_type = ADM_PATH_COMPRESSED_RX;
  28863. else
  28864. path_type = ADM_PATH_PLAYBACK;
  28865. } else {
  28866. if ((fdai->passthr_mode != LEGACY_PCM) &&
  28867. (fdai->passthr_mode != LISTEN))
  28868. path_type = ADM_PATH_COMPRESSED_TX;
  28869. else
  28870. path_type = ADM_PATH_LIVE_REC;
  28871. }
  28872. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  28873. (i <= MSM_FRONTEND_DAI_LSM8);
  28874. if (fdai->strm_id != INVALID_SESSION) {
  28875. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  28876. int port_id = get_port_id(bedai->port_id);
  28877. if (session_type == SESSION_TYPE_TX &&
  28878. fdai->be_srate &&
  28879. (fdai->be_srate != bedai->sample_rate)) {
  28880. pr_debug("%s: flush strm %d diff BE rates\n",
  28881. __func__,
  28882. fdai->strm_id);
  28883. if (fdai->event_info.event_func)
  28884. fdai->event_info.event_func(
  28885. MSM_PCM_RT_EVT_BUF_RECFG,
  28886. fdai->event_info.priv_data);
  28887. fdai->be_srate = 0; /* might not need it */
  28888. }
  28889. bits_per_sample = msm_routing_get_bit_width(
  28890. bedai->format);
  28891. app_type =
  28892. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  28893. if (app_type && is_lsm) {
  28894. app_type_idx =
  28895. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  28896. sample_rate =
  28897. fe_dai_app_type_cfg[i][session_type][be_id]
  28898. .sample_rate;
  28899. bits_per_sample =
  28900. lsm_app_type_cfg[app_type_idx].bit_width;
  28901. } else if (app_type) {
  28902. app_type_idx =
  28903. msm_pcm_routing_get_app_type_idx(app_type);
  28904. sample_rate =
  28905. fe_dai_app_type_cfg[i][session_type]
  28906. [be_id].sample_rate;
  28907. bits_per_sample =
  28908. app_type_cfg[app_type_idx].bit_width;
  28909. } else
  28910. sample_rate = bedai->sample_rate;
  28911. /*
  28912. * check if ADM needs to be configured with different
  28913. * channel mapping than backend
  28914. */
  28915. if (!bedai->adm_override_ch)
  28916. channels = bedai->channel;
  28917. else
  28918. channels = bedai->adm_override_ch;
  28919. acdb_dev_id =
  28920. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  28921. topology = msm_routing_get_adm_topology(i, session_type,
  28922. be_id);
  28923. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  28924. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  28925. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  28926. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  28927. be_bit_width = msm_routing_get_bit_width(
  28928. bedai->format);
  28929. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  28930. || bedai->sample_rate == 352800) &&
  28931. be_bit_width == 32)
  28932. bits_per_sample = msm_routing_get_bit_width(
  28933. SNDRV_PCM_FORMAT_S32_LE);
  28934. copp_idx = adm_open(port_id, path_type,
  28935. sample_rate, channels, topology,
  28936. fdai->perf_mode, bits_per_sample,
  28937. app_type, acdb_dev_id,
  28938. session_type, fdai->passthr_mode);
  28939. if ((copp_idx < 0) ||
  28940. (copp_idx >= MAX_COPPS_PER_PORT)) {
  28941. pr_err("%s: adm open failed\n", __func__);
  28942. mutex_unlock(&routing_lock);
  28943. return -EINVAL;
  28944. }
  28945. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  28946. __func__, i, session_type, be_id);
  28947. set_bit(copp_idx,
  28948. &session_copp_map[i][session_type][be_id]);
  28949. if (msm_is_resample_needed(
  28950. sample_rate,
  28951. bedai->sample_rate))
  28952. adm_copp_mfc_cfg(port_id, copp_idx,
  28953. bedai->sample_rate);
  28954. msm_pcm_routing_build_matrix(i, session_type, path_type,
  28955. fdai->perf_mode, fdai->passthr_mode);
  28956. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  28957. (fdai->passthr_mode == LEGACY_PCM))
  28958. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  28959. topology, channels);
  28960. }
  28961. }
  28962. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  28963. session_id = msm_pcm_routing_get_voc_sessionid(i);
  28964. if (session_id) {
  28965. pr_debug("%s voice session_id: 0x%x\n", __func__,
  28966. session_id);
  28967. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  28968. voc_path_type = RX_PATH;
  28969. else
  28970. voc_path_type = TX_PATH;
  28971. voc_set_route_flag(session_id, voc_path_type, 1);
  28972. memset(&voc_be_media_format, 0,
  28973. sizeof(struct media_format_info));
  28974. voc_be_media_format.port_id = bedai->port_id;
  28975. voc_be_media_format.num_channels = bedai->channel;
  28976. voc_be_media_format.sample_rate = bedai->sample_rate;
  28977. voc_be_media_format.bits_per_sample = bedai->format;
  28978. /* Defaulting this to 1 for voice call usecases */
  28979. voc_be_media_format.channel_mapping[0] = 1;
  28980. voc_set_device_config(session_id, voc_path_type,
  28981. &voc_be_media_format);
  28982. if (voc_get_route_flag(session_id, RX_PATH) &&
  28983. voc_get_route_flag(session_id, TX_PATH))
  28984. voc_enable_device(session_id);
  28985. }
  28986. }
  28987. /* Check if backend is an external ec ref port and set as needed */
  28988. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  28989. memset(&voc_be_media_format, 0,
  28990. sizeof(struct media_format_info));
  28991. /* Get format info for ec ref port from msm_bedais[] */
  28992. voc_be_media_format.port_id = bedai->port_id;
  28993. voc_be_media_format.num_channels = bedai->channel;
  28994. voc_be_media_format.bits_per_sample = bedai->format;
  28995. voc_be_media_format.sample_rate = bedai->sample_rate;
  28996. /* Defaulting this to 1 for voice call usecases */
  28997. voc_be_media_format.channel_mapping[0] = 1;
  28998. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  28999. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  29000. __func__, voc_be_media_format.port_id,
  29001. voc_be_media_format.num_channels,
  29002. voc_be_media_format.bits_per_sample,
  29003. voc_be_media_format.sample_rate);
  29004. }
  29005. done:
  29006. mutex_unlock(&routing_lock);
  29007. return 0;
  29008. }
  29009. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  29010. int fe_id)
  29011. {
  29012. int index, topo_id, be_idx;
  29013. unsigned long pp_config = 0;
  29014. bool mute_on;
  29015. int latency, session_type;
  29016. bool compr_passthr_mode = true;
  29017. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  29018. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX
  29019. && port_id != HDMI_RX_MS) {
  29020. pr_err("%s: Device pp params on invalid port %d, copp_idx %d, fe_id %d\n",
  29021. __func__, port_id, copp_idx, fe_id);
  29022. return -EINVAL;
  29023. }
  29024. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29025. if (port_id == msm_bedais[be_idx].port_id)
  29026. break;
  29027. }
  29028. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29029. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29030. return -EINVAL;
  29031. }
  29032. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29033. if (msm_bedais_pp_params[index].port_id == port_id)
  29034. break;
  29035. }
  29036. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29037. pr_err("%s: Invalid backend pp params index %d\n",
  29038. __func__, index);
  29039. return -EINVAL;
  29040. }
  29041. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  29042. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  29043. pr_err("%s: Invalid passthrough topology 0x%x\n",
  29044. __func__, topo_id);
  29045. return -EINVAL;
  29046. }
  29047. session_type =
  29048. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29049. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29050. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  29051. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  29052. compr_passthr_mode = false;
  29053. pp_config = msm_bedais_pp_params[index].pp_params_config;
  29054. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  29055. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29056. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  29057. mute_on = msm_bedais_pp_params[index].mute_on;
  29058. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29059. adm_send_compressed_device_mute(port_id,
  29060. copp_idx,
  29061. mute_on);
  29062. }
  29063. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  29064. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29065. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  29066. &pp_config);
  29067. latency = msm_bedais_pp_params[index].latency;
  29068. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29069. adm_send_compressed_device_latency(port_id,
  29070. copp_idx,
  29071. latency);
  29072. }
  29073. return 0;
  29074. }
  29075. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  29076. {
  29077. uint32_t topology = NULL_COPP_TOPOLOGY;
  29078. void *cal_info = NULL;
  29079. uint32_t size = 0;
  29080. /* Retrieve cal_info size from cal data*/
  29081. if (data_size < sizeof(struct audio_cal_type_basic) +
  29082. sizeof(struct audio_cal_info_adm_top)) {
  29083. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  29084. goto done;
  29085. }
  29086. size = data_size - sizeof(struct audio_cal_type_basic);
  29087. cal_info = kzalloc(size, GFP_KERNEL);
  29088. if (!cal_info)
  29089. goto done;
  29090. memcpy(cal_info,
  29091. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  29092. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  29093. kfree(cal_info);
  29094. cal_info = NULL;
  29095. done:
  29096. pr_debug("%s: Using topology %d\n", __func__, topology);
  29097. return topology;
  29098. }
  29099. static void msm_routing_load_topology(size_t data_size, void *data)
  29100. {
  29101. uint32_t topology_id;
  29102. int ret = -EINVAL;
  29103. topology_id = msm_routing_get_topology(data_size, data);
  29104. if (topology_id != NULL_COPP_TOPOLOGY)
  29105. ret = q6core_load_unload_topo_modules(topology_id,
  29106. CORE_LOAD_TOPOLOGY);
  29107. if (ret < 0)
  29108. pr_debug("%s %d load topology failed\n",
  29109. __func__, topology_id);
  29110. }
  29111. static void msm_routing_unload_topology(uint32_t topology_id)
  29112. {
  29113. int ret = -EINVAL;
  29114. if (topology_id != NULL_COPP_TOPOLOGY)
  29115. ret = q6core_load_unload_topo_modules(topology_id,
  29116. CORE_UNLOAD_TOPOLOGY);
  29117. if (ret < 0)
  29118. pr_debug("%s %d unload topology failed\n",
  29119. __func__, topology_id);
  29120. }
  29121. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29122. struct snd_ctl_elem_value *ucontrol)
  29123. {
  29124. int pp_id = ucontrol->value.integer.value[0];
  29125. int port_id = 0;
  29126. int index, be_idx, i, topo_id, idx;
  29127. bool mute;
  29128. int latency, session_type;
  29129. bool compr_passthr_mode = true;
  29130. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  29131. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  29132. port_id = msm_bedais[be_idx].port_id;
  29133. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX
  29134. || port_id == HDMI_RX_MS)
  29135. break;
  29136. }
  29137. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29138. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  29139. return -EINVAL;
  29140. }
  29141. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  29142. if (msm_bedais_pp_params[index].port_id == port_id)
  29143. break;
  29144. }
  29145. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  29146. pr_err("%s: Invalid pp params backend index %d\n",
  29147. __func__, index);
  29148. return -EINVAL;
  29149. }
  29150. session_type =
  29151. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  29152. SESSION_TYPE_RX : SESSION_TYPE_TX;
  29153. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  29154. MSM_FRONTEND_DAI_MM_SIZE) {
  29155. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  29156. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  29157. compr_passthr_mode = false;
  29158. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29159. unsigned long copp =
  29160. session_copp_map[i]
  29161. [SESSION_TYPE_RX][be_idx];
  29162. if (!test_bit(idx, &copp))
  29163. continue;
  29164. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  29165. idx);
  29166. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  29167. continue;
  29168. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  29169. __func__, port_id, copp, msm_bedais[be_idx].active,
  29170. fe_dai_map[i][session_type].passthr_mode);
  29171. switch (pp_id) {
  29172. case ADM_PP_PARAM_MUTE_ID:
  29173. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  29174. mute = ucontrol->value.integer.value[1] ? true : false;
  29175. msm_bedais_pp_params[index].mute_on = mute;
  29176. set_bit(ADM_PP_PARAM_MUTE_BIT,
  29177. &msm_bedais_pp_params[index].pp_params_config);
  29178. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29179. adm_send_compressed_device_mute(port_id,
  29180. idx, mute);
  29181. break;
  29182. case ADM_PP_PARAM_LATENCY_ID:
  29183. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  29184. msm_bedais_pp_params[index].latency =
  29185. ucontrol->value.integer.value[1];
  29186. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  29187. &msm_bedais_pp_params[index].pp_params_config);
  29188. latency = msm_bedais_pp_params[index].latency =
  29189. ucontrol->value.integer.value[1];
  29190. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  29191. adm_send_compressed_device_latency(port_id,
  29192. idx, latency);
  29193. break;
  29194. default:
  29195. pr_info("%s, device pp param %d not supported\n",
  29196. __func__, pp_id);
  29197. break;
  29198. }
  29199. }
  29200. }
  29201. return 0;
  29202. }
  29203. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  29204. struct snd_ctl_elem_value *ucontrol)
  29205. {
  29206. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  29207. return 0;
  29208. }
  29209. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  29210. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29211. 0, 3, msm_routing_get_device_pp_params_mixer,
  29212. msm_routing_put_device_pp_params_mixer),
  29213. };
  29214. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  29215. struct snd_ctl_elem_value *ucontrol)
  29216. {
  29217. ucontrol->value.integer.value[0] =
  29218. core_get_license_status(ASM_MEDIA_FMT_APTX);
  29219. pr_debug("%s: status %ld\n", __func__,
  29220. ucontrol->value.integer.value[0]);
  29221. return 0;
  29222. }
  29223. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  29224. struct snd_ctl_elem_value *ucontrol)
  29225. {
  29226. int32_t status = 0;
  29227. status = core_set_license(ucontrol->value.integer.value[0],
  29228. APTX_CLASSIC_DEC_LICENSE_ID);
  29229. pr_debug("%s: status %d\n", __func__, status);
  29230. return status;
  29231. }
  29232. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  29233. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  29234. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  29235. msm_aptx_dec_license_control_put),
  29236. };
  29237. static int msm_routing_get_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29238. struct snd_ctl_elem_value *ucontrol)
  29239. {
  29240. return 0;
  29241. }
  29242. static int msm_routing_put_pll_clk_drift(struct snd_kcontrol *kcontrol,
  29243. struct snd_ctl_elem_value *ucontrol)
  29244. {
  29245. u16 port_id = 0;
  29246. int32_t clk_drift = 0;
  29247. uint32_t clk_reset = 0;
  29248. int be_idx, ret = -EINVAL;
  29249. be_idx = ucontrol->value.integer.value[0];
  29250. clk_drift = ucontrol->value.integer.value[1];
  29251. clk_reset = ucontrol->value.integer.value[2];
  29252. if (be_idx < 0 && be_idx >= MSM_BACKEND_DAI_MAX) {
  29253. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  29254. return -EINVAL;
  29255. }
  29256. if (!msm_bedais[be_idx].active && !clk_reset) {
  29257. pr_err("%s:BE is not active %d, cannot set clock drift\n",
  29258. __func__, be_idx);
  29259. return -EINVAL;
  29260. }
  29261. port_id = msm_bedais[be_idx].port_id;
  29262. pr_debug("%s: clk drift %d be idx %d clk reset %d port id 0x%x\n",
  29263. __func__, clk_drift, be_idx, clk_reset, port_id);
  29264. ret = afe_set_pll_clk_drift(port_id, clk_drift, clk_reset);
  29265. if (ret < 0)
  29266. pr_err("%s: failed to set pll clk drift\n", __func__);
  29267. return ret;
  29268. }
  29269. static const struct snd_kcontrol_new pll_clk_drift_controls[] = {
  29270. SOC_SINGLE_MULTI_EXT("PLL config data", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  29271. 0, 128, msm_routing_get_pll_clk_drift, msm_routing_put_pll_clk_drift),
  29272. };
  29273. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  29274. struct snd_ctl_elem_value *ucontrol)
  29275. {
  29276. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  29277. uint32_t be_idx = ucontrol->value.integer.value[0];
  29278. int i;
  29279. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  29280. pr_err("%s: Invalid Backend index %d\n", __func__, be_idx);
  29281. return -EINVAL;
  29282. }
  29283. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  29284. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  29285. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  29286. pr_err("%s: Invalid channel map %d\n",
  29287. __func__, channel_map[i]);
  29288. return -EINVAL;
  29289. }
  29290. }
  29291. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  29292. return 0;
  29293. }
  29294. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  29295. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  29296. MSM_BACKEND_DAI_MAX, 0,
  29297. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  29298. msm_routing_put_port_chmap_mixer),
  29299. };
  29300. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  29301. struct snd_ctl_elem_info *uinfo)
  29302. {
  29303. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  29304. uinfo->count = sizeof(be_dai_name_table);
  29305. return 0;
  29306. }
  29307. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  29308. unsigned int __user *bytes,
  29309. unsigned int size)
  29310. {
  29311. int i;
  29312. int ret = 0;
  29313. if (size < sizeof(be_dai_name_table)) {
  29314. pr_err("%s: invalid size %d requested, returning\n",
  29315. __func__, size);
  29316. ret = -EINVAL;
  29317. goto done;
  29318. }
  29319. /*
  29320. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  29321. * needed when adding new backends
  29322. */
  29323. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29324. be_dai_name_table[i].be_id = i;
  29325. strlcpy(be_dai_name_table[i].be_name,
  29326. msm_bedais[i].name,
  29327. LPASS_BE_NAME_MAX_LENGTH);
  29328. }
  29329. ret = copy_to_user(bytes, &be_dai_name_table,
  29330. sizeof(be_dai_name_table));
  29331. if (ret) {
  29332. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  29333. ret = -EFAULT;
  29334. }
  29335. done:
  29336. return ret;
  29337. }
  29338. static const struct snd_kcontrol_new
  29339. msm_routing_be_dai_name_table_mixer_controls[] = {
  29340. {
  29341. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  29342. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  29343. .info = msm_routing_be_dai_name_table_info,
  29344. .name = "Backend DAI Name Table",
  29345. .tlv.c = snd_soc_bytes_tlv_callback,
  29346. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  29347. .max = sizeof(be_dai_name_table),
  29348. .get = msm_routing_be_dai_name_table_tlv_get,
  29349. }
  29350. },
  29351. };
  29352. static int msm_routing_stereo_channel_reverse_control_get(
  29353. struct snd_kcontrol *kcontrol,
  29354. struct snd_ctl_elem_value *ucontrol)
  29355. {
  29356. ucontrol->value.integer.value[0] = swap_ch;
  29357. pr_debug("%s: Swap channel value: %ld\n", __func__,
  29358. ucontrol->value.integer.value[0]);
  29359. return 0;
  29360. }
  29361. static int msm_routing_stereo_channel_reverse_control_put(
  29362. struct snd_kcontrol *kcontrol,
  29363. struct snd_ctl_elem_value *ucontrol)
  29364. {
  29365. int i, idx, be_index, port_id;
  29366. int ret = 0;
  29367. unsigned long copp;
  29368. pr_debug("%s Swap channel value:%ld\n", __func__,
  29369. ucontrol->value.integer.value[0]);
  29370. swap_ch = ucontrol->value.integer.value[0];
  29371. mutex_lock(&routing_lock);
  29372. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  29373. port_id = msm_bedais[be_index].port_id;
  29374. if (!msm_bedais[be_index].active)
  29375. continue;
  29376. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  29377. MSM_FRONTEND_DAI_MM_SIZE) {
  29378. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  29379. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  29380. if (!test_bit(idx, &copp))
  29381. continue;
  29382. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  29383. __func__, port_id, idx);
  29384. ret = adm_swap_speaker_channels(
  29385. port_id, idx,
  29386. msm_bedais[be_index].sample_rate,
  29387. swap_ch);
  29388. if (ret) {
  29389. pr_err("%s:Swap_channel failed, err=%d\n",
  29390. __func__, ret);
  29391. goto done;
  29392. }
  29393. }
  29394. }
  29395. }
  29396. done:
  29397. mutex_unlock(&routing_lock);
  29398. return ret;
  29399. }
  29400. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  29401. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  29402. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  29403. msm_routing_stereo_channel_reverse_control_put),
  29404. };
  29405. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  29406. struct snd_ctl_elem_info *uinfo)
  29407. {
  29408. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  29409. uinfo->count = 1;
  29410. return 0;
  29411. }
  29412. static int msm_routing_instance_id_support_put(
  29413. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29414. {
  29415. bool supported = ucontrol->value.integer.value[0] ? true : false;
  29416. q6common_update_instance_id_support(supported);
  29417. return 0;
  29418. }
  29419. static int msm_routing_instance_id_support_get(
  29420. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  29421. {
  29422. bool supported = false;
  29423. supported = q6common_is_instance_id_supported();
  29424. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  29425. return 0;
  29426. }
  29427. static const struct snd_kcontrol_new
  29428. msm_routing_feature_support_mixer_controls[] = {
  29429. {
  29430. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  29431. SNDRV_CTL_ELEM_ACCESS_WRITE,
  29432. .info = msm_routing_instance_id_support_info,
  29433. .name = "Instance ID Support",
  29434. .put = msm_routing_instance_id_support_put,
  29435. .get = msm_routing_instance_id_support_get,
  29436. },
  29437. };
  29438. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  29439. .hw_params = msm_pcm_routing_hw_params,
  29440. .close = msm_pcm_routing_close,
  29441. .prepare = msm_pcm_routing_prepare,
  29442. };
  29443. #ifdef CONFIG_DOA_PARAMS_ENABLED
  29444. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29445. {
  29446. snd_soc_add_component_controls(component,
  29447. msm_source_doa_tracking_controls,
  29448. ARRAY_SIZE(msm_source_doa_tracking_controls));
  29449. }
  29450. #else
  29451. void msm_routing_add_doa_control(struct snd_soc_component *component)
  29452. {
  29453. return;
  29454. }
  29455. #endif
  29456. /* Not used but frame seems to require it */
  29457. static int msm_routing_probe(struct snd_soc_component *component)
  29458. {
  29459. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  29460. ARRAY_SIZE(msm_qdsp6_widgets));
  29461. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  29462. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  29463. snd_soc_dapm_add_routes(&component->dapm, intercon,
  29464. ARRAY_SIZE(intercon));
  29465. snd_soc_dapm_new_widgets(component->dapm.card);
  29466. snd_soc_add_component_controls(component, lsm_controls,
  29467. ARRAY_SIZE(lsm_controls));
  29468. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  29469. ARRAY_SIZE(aanc_slim_0_rx_mux));
  29470. snd_soc_add_component_controls(component, aanc_noise_level,
  29471. ARRAY_SIZE(aanc_noise_level));
  29472. snd_soc_add_component_controls(component, msm_voc_session_controls,
  29473. ARRAY_SIZE(msm_voc_session_controls));
  29474. snd_soc_add_component_controls(component, app_type_cfg_controls,
  29475. ARRAY_SIZE(app_type_cfg_controls));
  29476. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  29477. ARRAY_SIZE(lsm_app_type_cfg_controls));
  29478. snd_soc_add_component_controls(component, module_cfg_controls,
  29479. ARRAY_SIZE(module_cfg_controls));
  29480. snd_soc_add_component_controls(component,
  29481. stereo_to_custom_stereo_controls,
  29482. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  29483. snd_soc_add_component_controls(component, ec_ref_param_controls,
  29484. ARRAY_SIZE(ec_ref_param_controls));
  29485. snd_soc_add_component_controls(component, channel_mixer_controls,
  29486. ARRAY_SIZE(channel_mixer_controls));
  29487. msm_qti_pp_add_controls(component);
  29488. msm_dts_srs_tm_add_controls(component);
  29489. msm_dolby_dap_add_controls(component);
  29490. snd_soc_add_component_controls(component,
  29491. use_ds1_or_ds2_controls,
  29492. ARRAY_SIZE(use_ds1_or_ds2_controls));
  29493. snd_soc_add_component_controls(component,
  29494. hifi_filter_controls,
  29495. ARRAY_SIZE(hifi_filter_controls));
  29496. snd_soc_add_component_controls(component,
  29497. use_ffecns_freeze_event_controls,
  29498. ARRAY_SIZE(use_ffecns_freeze_event_controls));
  29499. snd_soc_add_component_controls(component,
  29500. device_pp_params_mixer_controls,
  29501. ARRAY_SIZE(device_pp_params_mixer_controls));
  29502. snd_soc_add_component_controls(component,
  29503. msm_routing_be_dai_name_table_mixer_controls,
  29504. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  29505. /* Add doa control based on config */
  29506. msm_routing_add_doa_control(component);
  29507. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  29508. ARRAY_SIZE(msm_source_tracking_controls));
  29509. snd_soc_add_component_controls(component, adm_channel_config_controls,
  29510. ARRAY_SIZE(adm_channel_config_controls));
  29511. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  29512. ARRAY_SIZE(aptx_dec_license_controls));
  29513. snd_soc_add_component_controls(component,
  29514. stereo_channel_reverse_control,
  29515. ARRAY_SIZE(stereo_channel_reverse_control));
  29516. snd_soc_add_component_controls(
  29517. component, msm_routing_feature_support_mixer_controls,
  29518. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  29519. snd_soc_add_component_controls(component,
  29520. port_multi_channel_map_mixer_controls,
  29521. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  29522. snd_soc_add_component_controls(component, pll_clk_drift_controls,
  29523. ARRAY_SIZE(pll_clk_drift_controls));
  29524. return 0;
  29525. }
  29526. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  29527. {
  29528. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  29529. }
  29530. void msm_routing_pcm_free(struct snd_pcm *pcm)
  29531. {
  29532. msm_pcm_routing_hwdep_free(pcm);
  29533. }
  29534. static struct snd_soc_component_driver msm_soc_routing_component = {
  29535. .name = DRV_NAME,
  29536. .ops = &msm_routing_pcm_ops,
  29537. .probe = msm_routing_probe,
  29538. .pcm_new = msm_routing_pcm_new,
  29539. .pcm_free = msm_routing_pcm_free,
  29540. };
  29541. static int msm_routing_pcm_probe(struct platform_device *pdev)
  29542. {
  29543. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  29544. return snd_soc_register_component(&pdev->dev,
  29545. &msm_soc_routing_component,
  29546. NULL, 0);
  29547. }
  29548. static int msm_routing_pcm_remove(struct platform_device *pdev)
  29549. {
  29550. snd_soc_unregister_component(&pdev->dev);
  29551. return 0;
  29552. }
  29553. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  29554. {.compatible = "qcom,msm-pcm-routing"},
  29555. {}
  29556. };
  29557. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  29558. static struct platform_driver msm_routing_pcm_driver = {
  29559. .driver = {
  29560. .name = "msm-pcm-routing",
  29561. .owner = THIS_MODULE,
  29562. .of_match_table = msm_pcm_routing_dt_match,
  29563. .suppress_bind_attrs = true,
  29564. },
  29565. .probe = msm_routing_pcm_probe,
  29566. .remove = msm_routing_pcm_remove,
  29567. };
  29568. int msm_routing_check_backend_enabled(int fedai_id)
  29569. {
  29570. int i;
  29571. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  29572. /* bad ID assigned in machine driver */
  29573. pr_err("%s: bad MM ID\n", __func__);
  29574. return 0;
  29575. }
  29576. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  29577. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  29578. return msm_bedais[i].active;
  29579. }
  29580. return 0;
  29581. }
  29582. static int get_cal_type_index(int32_t cal_type)
  29583. {
  29584. int ret = -EINVAL;
  29585. switch (cal_type) {
  29586. case ADM_TOPOLOGY_CAL_TYPE:
  29587. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  29588. break;
  29589. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  29590. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  29591. break;
  29592. default:
  29593. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  29594. }
  29595. return ret;
  29596. }
  29597. static int msm_routing_set_cal(int32_t cal_type,
  29598. size_t data_size, void *data)
  29599. {
  29600. int ret = 0;
  29601. int cal_index;
  29602. pr_debug("%s\n", __func__);
  29603. cal_index = get_cal_type_index(cal_type);
  29604. if (cal_index < 0) {
  29605. pr_err("%s: Could not get cal index %d\n",
  29606. __func__, cal_index);
  29607. ret = -EINVAL;
  29608. goto done;
  29609. }
  29610. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  29611. if (ret < 0) {
  29612. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  29613. __func__, ret, cal_type);
  29614. ret = -EINVAL;
  29615. goto done;
  29616. }
  29617. /* Pre-load if it is ADM topology */
  29618. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  29619. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  29620. msm_routing_load_topology(data_size, data);
  29621. }
  29622. done:
  29623. return ret;
  29624. }
  29625. static void msm_routing_delete_cal_data(void)
  29626. {
  29627. pr_debug("%s\n", __func__);
  29628. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  29629. }
  29630. static int msm_routing_init_cal_data(void)
  29631. {
  29632. int ret = 0;
  29633. struct cal_type_info cal_type_info[] = {
  29634. {{ADM_TOPOLOGY_CAL_TYPE,
  29635. {NULL, NULL, NULL,
  29636. msm_routing_set_cal, NULL, NULL} },
  29637. {NULL, NULL, cal_utils_match_buf_num} },
  29638. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  29639. {NULL, NULL, NULL,
  29640. msm_routing_set_cal, NULL, NULL} },
  29641. {NULL, NULL, cal_utils_match_buf_num} },
  29642. };
  29643. pr_debug("%s\n", __func__);
  29644. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  29645. &cal_type_info[0]);
  29646. if (ret < 0) {
  29647. pr_err("%s: could not create cal type!\n",
  29648. __func__);
  29649. ret = -EINVAL;
  29650. goto err;
  29651. }
  29652. return ret;
  29653. err:
  29654. msm_routing_delete_cal_data();
  29655. return ret;
  29656. }
  29657. int __init msm_soc_routing_platform_init(void)
  29658. {
  29659. mutex_init(&routing_lock);
  29660. if (msm_routing_init_cal_data())
  29661. pr_err("%s: could not init cal data!\n", __func__);
  29662. afe_set_routing_callback(
  29663. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  29664. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29665. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  29666. return platform_driver_register(&msm_routing_pcm_driver);
  29667. }
  29668. void msm_soc_routing_platform_exit(void)
  29669. {
  29670. msm_routing_delete_cal_data();
  29671. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  29672. mutex_destroy(&routing_lock);
  29673. platform_driver_unregister(&msm_routing_pcm_driver);
  29674. }
  29675. MODULE_DESCRIPTION("MSM routing platform driver");
  29676. MODULE_LICENSE("GPL v2");